<?php // ClanSphere 2010 - www.clansphere.net // $Id$ $cs_lang = cs_translate('cups'); $cs_post = cs_post('fid'); $cs_get = cs_get('id'); $fid = empty($cs_post['fid']) ? 0 : $cs_post['fid']; $quote_id = empty($cs_get['id']) ? 0 : $cs_get['id']; $tables = 'cupmatches cm LEFT JOIN {pre}_cups cu ON cu.cups_id = cm.cups_id'; $cup = cs_sql_select(__FILE__, $tables, 'cm.cupmatches_id, cm.cups_id, cu.cups_access', 'cm.cupmatches_id = ' . $fid); if (empty($fid) || empty($cup['cups_access']) || $account['access_cups'] < $cup['cups_access']) { cs_redirect($cs_lang['access_denied'], 'cups', 'list'); } require_once 'mods/comments/functions.php'; cs_commments_create($fid, 'cups', 'match', $quote_id, $cs_lang['mod_name']);
<?php // ClanSphere 2010 - www.clansphere.net // $Id$ $cs_lang = cs_translate('files'); $cs_post = cs_post('fid'); $cs_get = cs_get('id'); $fid = empty($cs_post['fid']) ? 0 : $cs_post['fid']; $quote_id = empty($cs_get['id']) ? 0 : $cs_get['id']; $cs_files = cs_sql_select(__FILE__, 'files', 'files_close', "files_id = '" . $fid . "'"); require_once 'mods/comments/functions.php'; cs_commments_create($fid, 'files', 'view', $quote_id, $cs_lang['mod_name'], $cs_files['files_close']);
<?php // ClanSphere 2010 - www.clansphere.net // $Id$ $cs_lang = cs_translate('news'); $cs_post = cs_post('fid'); $cs_get = cs_get('id'); $fid = empty($cs_post['fid']) ? 0 : $cs_post['fid']; $quote_id = empty($cs_get['id']) ? 0 : $cs_get['id']; $cs_news = cs_sql_select(__FILE__, 'news', 'news_close', "news_id = '" . $fid . "'"); require_once 'mods/comments/functions.php'; cs_commments_create($fid, 'news', 'view', $quote_id, $cs_lang['mod_name'], $cs_news['news_close']);
<?php // ClanSphere 2010 - www.clansphere.net // $Id$ $cs_lang = cs_translate('static'); $cs_post = cs_post('fid'); $cs_get = cs_get('id'); $fid = empty($cs_post['fid']) ? 0 : $cs_post['fid']; $quote_id = empty($cs_get['id']) ? 0 : $cs_get['id']; $cs_static = cs_sql_select(__FILE__, 'static', 'static_comments', "static_id = '" . $fid . "'"); $close = empty($cs_static['static_comments']) ? 1 : 0; require_once 'mods/comments/functions.php'; cs_commments_create($fid, 'static', 'view', $quote_id, $cs_lang['mod_name'], $close);
<?php // ClanSphere 2010 - www.clansphere.net // $Id$ $cs_lang = cs_translate('replays'); $cs_post = cs_post('fid'); $cs_get = cs_get('id'); $fid = empty($cs_post['fid']) ? 0 : $cs_post['fid']; $quote_id = empty($cs_get['id']) ? 0 : $cs_get['id']; $cs_replays = cs_sql_select(__FILE__, 'replays', 'replays_close', "replays_id = '" . $fid . "'"); require_once 'mods/comments/functions.php'; cs_commments_create($fid, 'replays', 'view', $quote_id, $cs_lang['mod_name'], $cs_replays['replays_close']);
<?php // ClanSphere 2010 - www.clansphere.net // $Id$ $cs_lang = cs_translate('gallery', 1); $cs_post = cs_post('fid'); $cs_get = cs_get('id'); $fid = empty($cs_post['fid']) ? 0 : $cs_post['fid']; $quote_id = empty($cs_get['id']) ? 0 : $cs_get['id']; $cs_gallery = cs_sql_select(__FILE__, 'usersgallery', 'usersgallery_close,folders_id,users_id', "usersgallery_id = '" . $fid . "'"); $more = 'cat_id=' . $cs_gallery['folders_id'] . '&more=1&id=' . $cs_gallery['users_id'] . '&pic_id'; require_once 'mods/comments/functions.php'; cs_commments_create($fid, 'usersgallery', 'com_view', $quote_id, $cs_lang['mod_name'], $cs_gallery['usersgallery_close'], $more);
<?php // ClanSphere 2010 - www.clansphere.net // $Id$ $cs_lang = cs_translate('wars'); $cs_post = cs_post('fid'); $cs_get = cs_get('id'); $fid = empty($cs_post['fid']) ? 0 : $cs_post['fid']; $quote_id = empty($cs_get['id']) ? 0 : $cs_get['id']; $cs_wars = cs_sql_select(__FILE__, 'wars', 'wars_close', "wars_id = '" . $fid . "'"); require_once 'mods/comments/functions.php'; cs_commments_create($fid, 'wars', 'view', $quote_id, $cs_lang['mod_name'], $cs_wars['wars_close']);
<?php // ClanSphere 2010 - www.clansphere.net // $Id$ $cs_lang = cs_translate('quotes'); $cs_post = cs_post('fid'); $cs_get = cs_get('id'); $fid = empty($cs_post['fid']) ? 0 : $cs_post['fid']; $quote_id = empty($cs_get['id']) ? 0 : $cs_get['id']; require_once 'mods/comments/functions.php'; cs_commments_create($fid, 'quotes', 'view', $quote_id, $cs_lang['mod_name']);
<?php // ClanSphere 2010 - www.clansphere.net // $Id$ $cs_lang = cs_translate('articles'); $cs_post = cs_post('fid'); $cs_get = cs_get('id'); $fid = empty($cs_post['fid']) ? 0 : $cs_post['fid']; $quote_id = empty($cs_get['id']) ? 0 : $cs_get['id']; $cs_articles = cs_sql_select(__FILE__, 'articles', 'articles_com', "articles_id = '" . $fid . "'"); require_once 'mods/comments/functions.php'; cs_commments_create($fid, 'articles', 'view', $quote_id, $cs_lang['mod_name'], $cs_articles['articles_com']);
<?php // ClanSphere 2010 - www.clansphere.net // $Id$ $cs_lang = cs_translate('events'); $cs_post = cs_post('fid'); $cs_get = cs_get('id'); $fid = empty($cs_post['fid']) ? 0 : $cs_post['fid']; $quote_id = empty($cs_get['id']) ? 0 : $cs_get['id']; $cs_events = cs_sql_select(__FILE__, 'events', 'events_close', "events_id = '" . $fid . "'"); require_once 'mods/comments/functions.php'; cs_commments_create($fid, 'events', 'view', $quote_id, $cs_lang['mod_name'], $cs_events['events_close']);
<?php // ClanSphere 2010 - www.clansphere.net // $Id$ $cs_lang = cs_translate('gallery'); $cs_post = cs_post('fid'); $cs_get = cs_get('id'); $fid = empty($cs_post['fid']) ? 0 : $cs_post['fid']; $quote_id = empty($cs_get['id']) ? 0 : $cs_get['id']; $gallery = cs_sql_select(__FILE__, 'gallery', 'folders_id', "gallery_id = '" . $fid . "'"); $where = "folders_mod = 'gallery' AND folders_id = '" . $gallery['folders_id'] . "'"; $cs_folders = cs_sql_select(__FILE__, 'folders', 'folders_advanced', $where); $advanced = empty($cs_folders['folders_advanced']) ? '0,0,0,0' : $cs_folders['folders_advanced']; $advanced = explode(",", $advanced); require_once 'mods/comments/functions.php'; cs_commments_create($fid, 'gallery', 'com_view', $quote_id, $cs_lang['mod_name'], $advanced[1], 'where');