gallery.php
переменная -
Код: Выделить всё
'NO_IMAGES_LONG'Но потом поймете зачем эта надпись...
Код: Выделить всё
'NO_IMAGES_LONG'неправильная фраза...вот не правильная...Loky писал(а):можно было загружать фото с файлообменников
Код: Выделить всё
* @param string $new_name the new username
*/
function user_update_name($old_name, $new_name)
{
global $config, $db, $cache;
$update_ary = array(
FORUMS_TABLE => array('forum_last_poster_name'),
MODERATOR_CACHE_TABLE => array('username'),
POSTS_TABLE => array('post_username'),
TOPICS_TABLE => array('topic_first_poster_name', 'topic_last_poster_name'),
);
foreach ($update_ary as $table => $field_ary)
{
foreach ($field_ary as $field)
{
$sql = "UPDATE $table
SET $field = '" . $db->sql_escape($new_name) . "'
WHERE $field = '" . $db->sql_escape($old_name) . "'";
$db->sql_query($sql);
}
}
// Because some tables/caches use username-specific data we need to purge this here.Код: Выделить всё
* @param string $new_name the new username
*/
function user_update_name($old_name, $new_name)
{
global $config, $db, $cache;
$update_ary = array(
FORUMS_TABLE => array('forum_last_poster_name'),
MODERATOR_CACHE_TABLE => array('username'),
POSTS_TABLE => array('post_username'),
TOPICS_TABLE => array('topic_first_poster_name', 'topic_last_poster_name'),
);
foreach ($update_ary as $table => $field_ary)
{
foreach ($field_ary as $field)
{
$sql = "UPDATE $table
SET $field = '" . $db->sql_escape($new_name) . "'
WHERE $field = '" . $db->sql_escape($old_name) . "'";
$db->sql_query($sql);
}
}
if ($config['newest_username'] == $old_name)
{
set_config('newest_username', $new_name, true);
}
// Because some tables/caches use username-specific data we need to purge this here.Как лечить?SQL ERROR [ mysql4 ]
Unknown column 'album_auth_access' in 'field list' [1054]
SQL
SELECT album_id, parent_id, album_name, album_type, left_id, right_id, album_user_id, display_in_rrc, album_auth_access FROM phpbb_gallery_albums ORDER BY album_user_id ASC, left_id ASC
BACKTRACE
FILE: [ROOT]/includes/db/mysql.php
LINE: 175
CALL: dbal->sql_error()
FILE: [ROOT]/includes/gallery/integration.php
LINE: 224
CALL: dbal_mysql->sql_query()
FILE: [ROOT]/includes/cache.php
LINE: 451
CALL: phpbb_gallery_integration::cache()
FILE: [ROOT]/includes/gallery/auth/auth.php
LINE: 91
CALL: cache->obtain_album_list()
FILE: [ROOT]/includes/gallery/auth/auth.php
LINE: 81
CALL: phpbb_gallery_auth->query_auth_data()
FILE: [ROOT]/includes/gallery/gallery.php
LINE: 72
CALL: phpbb_gallery_auth->phpbb_gallery_auth()
FILE: [ROOT]/gallery/index.php
LINE: 20
CALL: phpbb_gallery::setup()
Код: Выделить всё
ALTER TABLE phpbb_gallery_albums ADD album_auth_access tinyint(1) NOT NULL default '0';Пчелкин писал(а):/includes/gallery
права на все четыре папки внутри вместе с содержимым пробуйте 777