Переезжаю с R300 на R375

aamlin

Пользователь
обновился до последней ревизии, в админке лезит
Parse error: syntax error, unexpected T_STRING in /www/ххх/htdocs/admin/admin_disallow.php on line 40

HTML:
$message .= "<br /><br />" . sprintf($lang['CLICK_RETURN_DISALLOWADMIN'], "<a href=\""admin_disallow.php\">", "</a>") . "<br /><br />" . sprintf($lang['CLICK_RETURN_ADMIN_INDEX'], "<a href=\"index.php?pane=right\">", "</a>");
 

aamlin

Пользователь
фикс admin_user_search.php

PHP:
 'U_LASTVISIT' => ($sort == 'lastvisit') ? "$base_url&sort=$sort&order=$o_order") : "$base_url&sort=lastvisit&order=$order",



нужно
PHP:
'U_LASTVISIT' => ($sort == 'lastvisit') ? "$base_url&sort=$sort&order=$o_order" : "$base_url&sort=lastvisit&order=$order",
 

aamlin

Пользователь
Запрещённые имена
Fatal error: Call to undefined function append_sid() in /www/ххх/htdocs/admin/admin_disallow.php on line 111

PHP:
"S_FORM_ACTION" => append_sid("admin_disallow.php"),
 

aamlin

Пользователь
добавлю
 

Вложения

  • Безымянный.png
    Безымянный.png
    15.2 KB · Просмотры: 52

aamlin

Пользователь
upd:

FAQ для "новичков"

15. Если вылазят подобные ошибки Strict Standards: Declaration of

Заходим в php.ini или пишем хостеру чтобы закоментировали error_reporting.

Добавьте в FAQ для "новичков"
PHP:
--- a/common.php 2012-01-17 23:34:44.979993002 +0400
+++ b/common.php 2012-01-18 11:53:13.219993001 +0400
@@ -354,7 +353,7 @@
$this->cur_query = null;
}
 
- function get ($name)
+ function get ($name, $get_miss_key_callback = '', $prefix = '', $ttl = 0)
{
if (!$this->connected) $this->connect();
 
@@ -367,7 +366,7 @@
return ($this->connected) ? $this->memcache->get($name) : false;
}
 
- function set ($name, $value, $ttl = 0)
+ function set ($name, $value, $ttl = 0, $prefix = '')
{
if (!$this->connected) $this->connect();
 
@@ -380,7 +379,7 @@
return ($this->connected) ? $this->memcache->set($name, $value, false, $ttl) : false;
}
 
- function rm ($name)
+ function rm ($name, $prefix = '')
{
if (!$this->connected) $this->connect();
 
@@ -688,7 +687,7 @@
$this->cur_query = null;
}
 
- function get ($name)
+ function get ($name, $get_miss_key_callback = '', $prefix = '', $ttl = 0)
{
if (!$this->connected) $this->connect();
 
@@ -701,7 +700,7 @@
return ($this->connected) ? unserialize($this->redis->get($name)) : false;
}
 
- function set ($name, $value, $ttl = 0)
+ function set ($name, $value, $ttl = 0, $prefix = '')
{
if (!$this->connected) $this->connect();
 
@@ -727,7 +726,7 @@
}
}
 
- function rm ($name)
+ function rm ($name, $prefix = '')
{
if (!$this->connected) $this->connect();
 
@@ -760,7 +759,7 @@
$this->dbg_enabled = sql_dbg_enabled();
}
 
- function get ($name)
+ function get ($name, $get_miss_key_callback = '', $prefix = '', $ttl = 0)
{
$this->cur_query = "cache->get('$name')";
$this->debug('start');
@@ -771,7 +770,7 @@
return eaccelerator_get($name);
}
 
- function set ($name, $value, $ttl = 0)
+ function set ($name, $value, $ttl = 0, $prefix = '')
{
$this->cur_query = "cache->set('$name')";
$this->debug('start');
@@ -782,7 +781,7 @@
return eaccelerator_put($name, $value, $ttl);
}
 
- function rm ($name)
+ function rm ($name, $prefix = '')
{
$this->cur_query = "cache->rm('$name')";
$this->debug('start');
@@ -813,7 +812,7 @@
$this->dbg_enabled = sql_dbg_enabled();
}
 
- function get ($name)
+ function get ($name, $get_miss_key_callback = '', $prefix = '', $ttl = 0)
{
$this->cur_query = "cache->get('$name')";
$this->debug('start');
@@ -824,7 +823,7 @@
return apc_fetch($name);
}
 
- function set ($name, $value, $ttl = 0)
+ function set ($name, $value, $ttl = 0, $prefix = '')
{
$this->cur_query = "cache->set('$name')";
$this->debug('start');
@@ -835,7 +834,7 @@
return apc_store($name, $value, $ttl);
}
 
- function rm ($name)
+ function rm ($name, $prefix = '')
{
$this->cur_query = "cache->rm('$name')";
$this->debug('start');
@@ -866,7 +865,7 @@
$this->dbg_enabled = sql_dbg_enabled();
}
 
- function get ($name)
+ function get ($name, $get_miss_key_callback = '', $prefix = '', $ttl = 0)
{
$this->cur_query = "cache->get('$name')";
$this->debug('start');
@@ -877,7 +876,7 @@
return xcache_get($name);
}
 
- function set ($name, $value, $ttl = 0)
+ function set ($name, $value, $ttl = 0, $prefix = '')
{
$this->cur_query = "cache->set('$name')";
$this->debug('start');
@@ -888,7 +887,7 @@
return xcache_set($name, $value, $ttl);
}
 
- function rm ($name)
+ function rm ($name, $prefix = '')
{
$this->cur_query = "cache->rm('$name')";
$this->debug('start');
@@ -917,7 +916,7 @@
$this->dbg_enabled = sql_dbg_enabled();
}
 
- function get ($name)
+ function get ($name, $get_miss_key_callback = '', $prefix = '', $ttl = 0)
{
$filename = $this->dir . clean_filename($name) . '.php';
 
@@ -935,7 +934,7 @@
return (!empty($filecache['value'])) ? $filecache['value'] : false;
}
 
- function set ($name, $value, $ttl = 86400)
+ function set ($name, $value, $ttl = 86400, $prefix = '')
{
if (!function_exists('var_export'))
{
@@ -964,7 +963,7 @@
return (bool) file_write($filecache, $filename, false, true, true);
}
 
- function rm ($name)
+ function rm ($name, $prefix = '')
{
$filename = $this->dir . clean_filename($name) . '.php';
if (file_exists($filename))
 
Сверху