Мод заказов для трекера ppkbb3cker.
Yes i use Notepad++ab00 писал(а):Файлы можно легко конвертировать в UTF8 с помощью вот этого редактора.aymanghost писал(а):Спасибо за скрипт @ ab00, но вы можете установить PHP файлов UTF8 кодировку. Не только lnaguage файлы?
Извините за мой плохой русский
Код: Выделить всё
$orders_threshold = 5; // Êîëè÷åñòâî ãîëîñîâ äëÿ âûïîëíåíèÿ çàêàçà.
$orders_on_page = 20; // Êîëè÷åñòâî çàêàçîâ íà ñòðàíèöå.
$comments_on_page = 20;
$show_rules = 0; // Ïîêàçûâàòü ïðàâèëà: 1 - Äà, 0 - Íåò
$comments_del = 0; // Ïîëüçîâàòåëè ìîãóò óäàëÿòü ñâîè êîìåíòðàèè: 1 - Äà, 0 - Íåò.
$show_stats = 1; // Ïîêàçûâàòü ñòàòèñòèêó: 1 - Äà, 0 - Íåò.
$cache_block_on_portal = 5; // Âðåìÿ êýøèðîâàíèÿ áëîêà ñòàòèñòèêè íà ïîðòàëå. Â ìèíóòàõ.
$cache_block_on_orders_page = 1; // Âðåìÿ êýøèðîâàíèÿ áëîêà ñòàòèñòèêè íà ñòðàíèöå çàêàçîâ. Â ìèíóòàõ.
$send_info_pm_to = array(2, 83, 307, 3602, 5597, 6225); // Ñþäà âïèñàòü ID ìîäåðàòîðîâ çàêàçîâ. Èì áóäóò ïðèõîäèòü ñëóæåáíûå ñîîáùåíèÿ.
aymanghost
stepan83
Код: Выделить всё
phpBB Debug] PHP Notice: in file [ROOT]/portal/includes/functions_upload.php on line 167: Undefined variable: mod_dir
Warning: Cannot modify header information - headers already sent by (output started at /home/cp940623/public_html/includes/functions.php:4487) in /home/cp940623/public_html/adm/index.php on line 157
Warning: Cannot modify header information - headers already sent by (output started at /home/cp940623/public_html/includes/functions.php:4487) in /home/cp940623/public_html/adm/index.php on line 159
Warning: Cannot modify header information - headers already sent by (output started at /home/cp940623/public_html/includes/functions.php:4487) in /home/cp940623/public_html/adm/index.php on line 160
Warning: Cannot modify header information - headers already sent by (output started at /home/cp940623/public_html/includes/functions.php:4487) in /home/cp940623/public_html/adm/index.php on line 161
Код: Выделить всё
// application/xhtml+xml not used because of IE
header('Content-type: text/html; charset=UTF-8');
header('Cache-Control: private, no-cache="set-cookie"');
header('Expires: 0');
header('Pragma: no-cache');
return;
Kirkus
aymanghost
Kirkus
Darkelita
Код: Выделить всё
SQL ERROR [ mysql4 ]
Unknown column 'category_id' in 'field list' [1054]
Darkelita
Darkelita
Код: Выделить всё
$sql = "SELECT
COUNT(order_id) AS all_orders,
(SELECT COUNT(order_id) FROM ".ORDERS_TABLE." WHERE status = '1') AS done_orders,
(SELECT COUNT(order_id) FROM ".ORDERS_TABLE." WHERE status = '0') AS not_done_orders,
(SELECT COUNT(order_id) FROM ".ORDERS_TABLE." WHERE status = '2') AS canceled_orders
FROM ".ORDERS_TABLE." WHERE user_id = '".$user->data['user_id']."'";
Код: Выделить всё
$sql = "SELECT
COUNT(order_id) AS all_orders,
(SELECT COUNT(order_id) FROM ".ORDERS_TABLE." WHERE status = '1' AND user_id = '".$user->data['user_id']."') AS done_orders,
(SELECT COUNT(order_id) FROM ".ORDERS_TABLE." WHERE status = '0' AND user_id = '".$user->data['user_id']."') AS not_done_orders,
(SELECT COUNT(order_id) FROM ".ORDERS_TABLE." WHERE status = '2' AND user_id = '".$user->data['user_id']."') AS canceled_orders
FROM ".ORDERS_TABLE." WHERE user_id = '".$user->data['user_id']."'";
Код: Выделить всё
ALTER TABLE `phpbb_orders` ADD INDEX `user_id` ( `user_id` )
aymanghost
Код: Выделить всё
Общая ошибка
SQL ERROR [ mysql4 ]
Unknown column 'category_id' in 'where clause' [1054]
SQL
SELECT COUNT(*) as count FROM phpbb_orders WHERE category_id = '0' ORDER BY date DESC
BACKTRACE
Код: Выделить всё
SQL ERROR [ mysql4 ]
Unknown column 'category_id' in 'field list' [1054]
SQL
INSERT INTO phpbb_orders (category_id, title, bbcode_bitfield, bbcode_uid, desc_text, mod_comm, topic_id, status, date, user, user_id, worker, votes, votes_list, comments ) values ('7', 'Тест', '', '1rcxd27q', 'Тест', '', '0', '0', '2012-04-16 12:48:34', 'Gabriil', '2', '', '0', '', '0')
BACKTRACE
Gabriil