When I click on add / edit news I get this error:
Parse error: syntax error, unexpected '(', expecting T_NS_SEPARATOR in /customers/mysite.net/mysite.net/httpd.www/x/inc/mod/addnews.mdu on line 114
Parse error: syntax error, unexpected '(', expecting T_NS_SEPARATOR in /customers/mysite.net/mysite.net/httpd.www/x/inc/mod/addnews.mdu on line 114
Parse error: syntax error, unexpected '(', expecting T_NS_SEPARATOR in /home/domainuser/public_html/news/inc/mod/addnews.mdu on line 114mangomonkey wrote:Hi, I have carried out the procedure listed in the first post, and everything is working well except for when I am in the admin panel. When I go to add news, or edit news, I get the following error. Any help appreciated!
- Code: Select all
Parse error: syntax error, unexpected '(', expecting T_NS_SEPARATOR in /home/domainuser/public_html/news/inc/mod/addnews.mdu on line 114
Deprecated: Function eregi() is deprecated in /customers/mysite.net/mysite.net/httpd.www/x/inc/mod/syscon.mdu on line 12
Deprecated: Function eregi() is deprecated in /customers/mysite.net/mysite.net/httpd.www/x/inc/mod/syscon.mdu on line 12
ilyas_88 wrote:Thnx marcusmagalhaes. I can add/edit news nowbut in admin panel when i klikk on Options/System settings, I get the following error:
Deprecated: Function eregi() is deprecated in /customers/mysite.net/mysite.net/httpd.www/x/inc/mod/syscon.mdu on line 12
Deprecated: Function eregi() is deprecated in /customers/mysite.net/mysite.net/httpd.www/x/inc/mod/syscon.mdu on line 12
mangomonkey wrote:Thats perfect, thanks, what did you change? Sorry to be a bother but do you have one for edit news please? Thanks again.
Deprecated: Function eregi() is deprecated in /customers/mysite.net/mysite.net/httpd.www/x/inc/mod/syscon.mdu on line 12
Deprecated: Function eregi() is deprecated in /customers/mysite.net/mysite.net/httpd.www/x/inc/mod/syscon.mdu on line 12
ilyas_88 wrote:I have edited the Add, edit.mdu inc/mod/ . add news and edit News works perfectly now. but when I open the Admin Panel /Options/System settings so I get the Following error:Deprecated: Function eregi() is deprecated in /customers/mysite.net/mysite.net/httpd.www/x/inc/mod/syscon.mdu on line 12
Deprecated: Function eregi() is deprecated in /customers/mysite.net/mysite.net/httpd.www/x/inc/mod/syscon.mdu on line 12
if you meant it?
ilyas_88 wrote:in the admin panel when I change samthing or edit the news I gett error inn functions.inc.php file line 744
something is wrong in this code?////////////////////////////////////////////////////////
// Function: cache_remover
// Description: ??????????????
function cache_remover($alone = ''){
$fdir = opendir(rootpath.'/cache');
while ($file = readdir($fdir)){
if ($file != '.' and $file != '..' and $file != '.htaccess'){
if ($alone){
if (preg_match($alone.'(.*).(short|full).', $file)){
@unlink(rootpath.'/cache/'.$file);
}
if (!preg_match('.(short|full).', $file)){
@unlink(rootpath.'/cache/'.$file);
}
}
if (!$alone){
@unlink(rootpath.'/cache/'.$file);
}
}
}
return true;
}
////////////////////////////////////////////////////////
// Function: cache_remover
// Description: ??????????????
function cache_remover($alone = ''){
$fdir = opendir(rootpath.'/cache');
while ($file = readdir($fdir)){
if ($file != '.' and $file != '..' and $file != '.htaccess'){
if ($alone){
if (preg_match($alone.'(.*).(short|full).', $file)){
@unlink(rootpath.'/cache/'.$file);
}
if (!preg_match('.(short|full).', $file)){
@unlink(rootpath.'/cache/'.$file);
}
}
if (!$alone){
@unlink(rootpath.'/cache/'.$file);
}
}
}
return true;
}
Users browsing this forum: No registered users and 3 guests