( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKBase.class.php on line 114
Call Stack
#TimeMemoryFunctionLocation
10.0003415952{main}( ).../index.php:0
20.07354721384Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.361514252520Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.361714252464Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.361714252840Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.361714252840Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.361914252936Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.362314292856require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.367614590544GKTemplate->__construct( ).../component.php:31
100.374614759920GKTemplateMenu->getMenuType( ).../gk.framework.php:84
110.375414804776require_once( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKMenu.php' ).../helper.menu.php:19

( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKHandheld.php on line 76
Call Stack
#TimeMemoryFunctionLocation
10.0003415952{main}( ).../index.php:0
20.07354721384Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.361514252520Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.361714252464Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.361714252840Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.361714252840Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.361914252936Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.362314292856require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.367614590544GKTemplate->__construct( ).../component.php:31
100.377814932720GKTemplateMenu->getMenuType( ).../gk.framework.php:85
Sed在匹配行前后加入一行
Logo
Print this page

Sed在匹配行前后加入一行

a 追加内容 sed ‘/匹配词/a\要加入的内容’ example.file(将内容追加到匹配的目标行的下一行位置)
i 插入内容 sed ‘/匹配词/i\要加入的内容’ example.file 将内容插入到匹配的行目标的上一行位置)
示例:
#我要把文件的包含“chengyongxu.com”这个关键词的行前或行后加入一行,内容为“allow chengyongxu.cn”

1#行前加
2sed -i '/allow chengyongxu.com/i\allow chengyongxu.cn' the.conf.file
3#行前后
4sed -i '/allow chengyongxu.com/a\allow chengyongxu.cn' the.conf.file

( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169
Call Stack
#TimeMemoryFunctionLocation
10.0004415968{main}( ).../index.php:0
20.07634721400Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.07634721400Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.240312449712Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.240912474296Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.241512529624Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.241812558448require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.248912993856K2ControllerItem->execute( ).../k2.php:64
90.248912993856K2ControllerItem->display( ).../BaseController.php:710
100.257713719056K2ControllerItem->display( ).../item.php:78
110.257713719056K2ControllerItem->display( ).../controller.php:19
120.262414115424Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.263914135792K2ViewItem->display( ).../ViewController.php:102
140.323817078528K2ViewItem->display( ).../view.html.php:742
150.323817078528K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.325317258728include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701

( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
Call Stack
#TimeMemoryFunctionLocation
10.0004415968{main}( ).../index.php:0
20.07634721400Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.07634721400Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.240312449712Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.240912474296Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.241512529624Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.241812558448require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.248912993856K2ControllerItem->execute( ).../k2.php:64
90.248912993856K2ControllerItem->display( ).../BaseController.php:710
100.257713719056K2ControllerItem->display( ).../item.php:78
110.257713719056K2ControllerItem->display( ).../controller.php:19
120.262414115424Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.263914135792K2ViewItem->display( ).../ViewController.php:102
140.323817078528K2ViewItem->display( ).../view.html.php:742
150.323817078528K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.325317258728include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
Template Design © Joomla Templates | GavickPro. All rights reserved.