当前位置: 首页>>代码示例>>PHP>>正文


PHP cs_abcode_smileys函数代码示例

本文整理汇总了PHP中cs_abcode_smileys函数的典型用法代码示例。如果您正苦于以下问题:PHP cs_abcode_smileys函数的具体用法?PHP cs_abcode_smileys怎么用?PHP cs_abcode_smileys使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了cs_abcode_smileys函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: cs_html_img

        $data['country'][$run]['full'] = $full;
        $run++;
    }
    $data['join']['games_url'] = cs_html_img('uploads/games/0.gif', 0, 0, 'id="game"');
    $data['games'] = array();
    $cs_games = cs_sql_select(__FILE__, 'games', 'games_name,games_id', 0, 'games_name', 0, 0);
    for ($run = 0; $run < count($cs_games); $run++) {
        $data['games'][$run]['short'] = $cs_games[$run]['games_id'];
        $data['games'][$run]['selection'] = $cs_games[$run]['games_id'] == $data['join']['games_id'] ? ' selected="selected"' : '';
        $data['games'][$run]['name'] = $cs_games[$run]['games_name'];
    }
    $cid = "squads_own = '1' AND squads_joinus = '0'";
    $squads_data = cs_sql_select(__FILE__, 'squads', 'squads_name, squads_id, squads_own, squads_joinus', $cid, 'squads_name', 0, 0);
    $data['squad']['list'] = cs_dropdown('squads_id', 'squads_name', $squads_data, $data['join']['squads_id']);
    $data['date']['join'] = cs_dateselect('join', 'date', $data['join']['joinus_date'], 2000);
    $data['abcode']['smileys'] = cs_abcode_smileys('joinus_more');
    $data['abcode']['features'] = cs_abcode_features('joinus_more');
    $data['rules']['link'] = cs_html_link(cs_url('rules', 'list'), $cs_lang['rules']);
    $data['joinus']['rules_selected'] = !empty($data2['join']['joinus_rules']) ? 'checked="checked"' : '';
    if (!empty($captcha)) {
        $data['join']['captcha_img'] = cs_html_img('mods/captcha/generate.php?time=' . cs_time());
        $data['if']['captcha'] = 1;
    }
} elseif (!empty($data['if']['form'])) {
    if (empty($account['users_id'])) {
        global $cs_db;
        if ($cs_db['hash'] == 'md5') {
            $data['join']['users_pwd'] = md5($data['join']['users_pwd']);
        } elseif ($cs_db['hash'] == 'sha1') {
            $data['join']['users_pwd'] = sha1($data['join']['users_pwd']);
        }
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:new.php

示例2: elseif

if (!isset($_POST['submit'])) {
    $data['head']['body'] = $cs_lang['body_create'];
} elseif (!empty($error)) {
    $data['head']['body'] = $error;
}
if (!empty($error) or !isset($_POST['submit'])) {
    $data['data'] = $cs_links;
    $data['cat']['dropdown'] = cs_categories_dropdown('links', $cs_links['categories_id']);
    $linksstat[0]['links_stats'] = 'on';
    $linksstat[0]['name'] = $cs_lang['online'];
    $linksstat[1]['links_stats'] = 'off';
    $linksstat[1]['name'] = $cs_lang['offline'];
    $data['status']['dropdown'] = cs_dropdown('links_stats', 'name', $linksstat, $cs_links['links_stats']);
    if (empty($cs_main['rte_html'])) {
        $data['if']['abcode'] = TRUE;
        $data['abcode']['smileys'] = cs_abcode_smileys('links_info', 1);
        $data['abcode']['features'] = cs_abcode_features('links_info', 1, 1);
    } else {
        $data['if']['rte_html'] = TRUE;
        $data['rte']['html'] = cs_rte_html('links_info', $cs_links['links_info']);
    }
    $matches[1] = $cs_lang['pic_infos'];
    $return_types = '';
    foreach ($img_filetypes as $add) {
        $return_types .= empty($return_types) ? $add : ', ' . $add;
    }
    $matches[2] = $cs_lang['max_width'] . $img_max['width'] . ' px' . cs_html_br(1);
    $matches[2] .= $cs_lang['max_height'] . $img_max['height'] . ' px' . cs_html_br(1);
    $matches[2] .= $cs_lang['max_size'] . cs_filesize($img_max['size']) . cs_html_br(1);
    $matches[2] .= $cs_lang['filetypes'] . $return_types;
    $data['picup']['clip'] = cs_abcode_clip($matches);
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:create.php

示例3: cs_translate

<?php

// ClanSphere 2010 - www.clansphere.net
// $Id$
$cs_lang = cs_translate('board');
$count_abo = cs_sql_count(__FILE__, 'abonements', 'users_id=' . $account['users_id']);
$count_att = cs_sql_count(__FILE__, 'boardfiles', 'users_id=' . $account['users_id']);
$data = array();
$data['head']['getmsg'] = cs_getmsg();
$data['count']['abos'] = $count_abo;
$data['count']['attachments'] = $count_att;
$data['link']['abos'] = cs_url('board', 'center');
$data['link']['attachments'] = cs_url('board', 'attachments');
$data['link']['avatar'] = cs_url('board', 'avatar');
$data['action']['form'] = cs_url('board', 'signature');
$data['signature']['smileys'] = cs_abcode_smileys('signature');
$data['signature']['abcode'] = cs_abcode_features('signature');
$signature_sql = cs_sql_select($file, 'users', 'users_signature', "users_id = '" . $account['users_id'] . "'");
$signature = $signature_sql['users_signature'];
$signature = isset($_POST['signature']) ? $_POST['signature'] : $signature;
$signature = preg_replace_callback("=\\[img\\](.*?)\\[/img\\]=si", "cs_abcode_resize", $signature);
$signature = preg_replace_callback("=\\[img width\\=(.*?) height\\=(.*?)\\](.*?)\\[/img\\]=si", "cs_abcode_resize", $signature);
$data['signature']['text'] = $signature;
$data['signature']['preview'] = cs_secure($signature, 1, 1);
$data['if']['preview'] = (isset($_POST['preview']) and !empty($signature)) ? 1 : 0;
if (isset($_POST['submit'])) {
    $signature_cells = array('users_signature');
    $signature_save = array($signature);
    cs_sql_update(__FILE__, 'users', $signature_cells, $signature_save, $account['users_id']);
    cs_redirect($cs_lang['create_done'], 'board', 'signature');
}
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:signature.php

示例4: isset

    $data['hidden']['users_name'] = isset($hidden['users_name']) ? $checked : '';
    $data['hidden']['users_surname'] = isset($hidden['users_surname']) ? $checked : '';
    $data['hidden']['users_age'] = isset($hidden['users_age']) ? $checked : '';
    $data['hidden']['users_height'] = isset($hidden['users_height']) ? $checked : '';
    $data['hidden']['users_postalcode'] = isset($hidden['users_postalcode']) ? $checked : '';
    $data['hidden']['users_place'] = isset($hidden['users_place']) ? $checked : '';
    $data['hidden']['users_adress'] = isset($hidden['users_adress']) ? $checked : '';
    $data['hidden']['users_icq'] = isset($hidden['users_icq']) ? $checked : '';
    $data['hidden']['users_jabber'] = isset($hidden['users_jabber']) ? $checked : '';
    $data['hidden']['users_skype'] = isset($hidden['users_skype']) ? $checked : '';
    $data['hidden']['users_email'] = isset($hidden['users_email']) ? $checked : '';
    $data['hidden']['users_url'] = isset($hidden['users_url']) ? $checked : '';
    $data['hidden']['users_phone'] = isset($hidden['users_phone']) ? $checked : '';
    $data['hidden']['users_mobile'] = isset($hidden['users_mobile']) ? $checked : '';
    $data['abcode']['features'] = cs_abcode_features('users_info');
    $data['abcode']['smileys'] = cs_abcode_smileys('users_info');
    $data['country'] = array();
    $run = 0;
    foreach ($cs_country as $short => $full) {
        $data['country'][$run]['short'] = $short;
        $data['country'][$run]['selection'] = $short == $cs_user['users_country'] ? ' selected="selected"' : '';
        $data['country'][$run]['full'] = $full;
        $run++;
    }
    echo cs_subtemplate(__FILE__, $data, 'users', 'profile');
} else {
    settype($cs_user['users_height'], 'integer');
    settype($cs_user['users_icq'], 'integer');
    $cs_user['users_hidden'] = implode(',', $hidden);
    if ($cs_user['users_nick'] != $account['users_nick']) {
        change_nick($account['users_id'], $account['users_nick']);
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:profile.php

示例5: isset

        $run_loop = isset($_POST['run_loop']) ? $_POST['run_loop'] : 0;
        for ($run = 0; $run < $run_loop; $run++) {
            $num = $run + 1;
            $cs_files["votes_election_{$num}"] = isset($_POST["votes_election_{$num}"]) ? $_POST["votes_election_{$num}"] : '';
            $data['pre_answers'][$run]['run'] = $run;
            $data['pre_answers'][$run]['answer'] = cs_secure($cs_files["votes_election_{$num}"], 0, 1);
        }
    }
    $data['preview']['text'] = cs_secure($board['threads_text'], 1, 1);
}
if (isset($_POST['election'])) {
    $_POST['run_loop']++;
}
if (!empty($error) or !isset($_POST['submit']) or isset($_POST['preview'])) {
    $data['data'] = $board;
    $data['abcode']['smileys'] = cs_abcode_smileys('threads_text');
    $data['abcode']['features'] = cs_abcode_features('threads_text');
    $data['max']['text'] = $cs_board_opt['max_text'];
    //////////// VOTES ////////////
    $data['if']['vote'] = FALSE;
    if ($votes == 1) {
        $data['if']['vote'] = TRUE;
        $data['if']['vote_several'] = empty($bv['boardvotes_several']) ? false : true;
        $data['time']['select'] = cs_dateselect('votes_end', 'unix', $bv['boardvotes_end'], 2005);
        $data['access']['options'] = '';
        $levels = 0;
        while ($levels < 6) {
            $bv['boardvotes_access'] == $levels ? $sel = 1 : ($sel = 0);
            $data['access']['options'] .= cs_html_option($levels . ' - ' . $cs_lang['lev_' . $levels], $levels, $sel);
            $levels++;
        }
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:thread_add.php

示例6: isset

         $cs_news["news_mirror_{$num}"] = isset($_POST["news_mirror_{$num}"]) ? $_POST["news_mirror_{$num}"] : '';
         $cs_news["news_mirror_name_{$num}"] = isset($_POST["news_mirror_name_{$num}"]) ? $_POST["news_mirror_name_{$num}"] : '';
     } else {
         $cs_news["news_mirror_{$num}"] = $temp_mirror[$run];
         $cs_news["news_mirror_name_{$num}"] = $temp_mirror_name[$run];
     }
     $data['mirror'][$tpl_run]['num'] = $num;
     $data['mirror'][$tpl_run]['news_mirror'] = $cs_news["news_mirror_{$num}"];
     $data['mirror'][$tpl_run]['news_mirror_name'] = $cs_news["news_mirror_name_{$num}"];
     $tpl_run++;
 }
 if (empty($cs_main['rte_html'])) {
     $data['abcode']['features'] = cs_abcode_features('news_text', $abcode[3], 1);
     $data['abcode']['smileys'] = cs_abcode_smileys('news_text', 1);
     $data['abcode']['features_readmore'] = cs_abcode_features('news_readmore', $abcode[3], 1);
     $data['abcode']['smileys_readmore'] = cs_abcode_smileys('news_readmore', 1);
     $data['if']['rte_html'] = false;
     $data['if']['abcode'] = true;
 } else {
     $data['if']['rte_html'] = true;
     $data['if']['abcode'] = false;
     $data['rte']['html'] = cs_rte_html('news_text', $cs_news['news_text']);
     $data['rte']['html_readmore'] = cs_rte_html('news_readmore', $cs_news['news_readmore']);
 }
 $data['news']['loop'] = $run_loop;
 $data['news']['news_readmore_active'] = $cs_news['news_readmore_active'] == 1 ? 'checked="checked"' : '';
 $data['news']['news_close'] = $cs_news['news_close'] == 1 ? 'checked="checked"' : '';
 $data['news']['news_public'] = $cs_news['news_public'] == 1 ? 'checked="checked"' : '';
 $data['news']['news_attached'] = $cs_news['news_attached'] == 1 ? 'checked="checked"' : '';
 $data['news']['check_publish'] = !empty($cs_news['news_publishs_at']) ? 'checked="checked"' : '';
 $data['news']['news_publishs_at'] = cs_dateselect('date', 'unix', !empty($cs_news['news_publishs_at']) ? $cs_news['news_publishs_at'] : cs_time(), 1995);
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:create.php

示例7: cs_comments_edit

function cs_comments_edit($mod, $action, $com_id, $mod_name, $more = 'id')
{
    $cs_lang = cs_translate('comments');
    global $account;
    settype($com_id, 'integer');
    $data['if']['guest'] = FALSE;
    $guestnick = '';
    $cells = 'users_id, comments_text, comments_time, comments_fid, comments_edit, comments_guestnick';
    $cs_comments = cs_sql_select(__FILE__, 'comments', $cells, "comments_id = " . (int) $com_id);
    $com_fid = $cs_comments['comments_fid'];
    if ($account['access_comments'] >= 4 or $account['users_id'] == $cs_comments['users_id']) {
        $data['head']['mod'] = $mod_name;
        $data['if']['preview'] = false;
        if (isset($_POST['submit']) or isset($_POST['preview'])) {
            $cs_comments['comments_text'] = $_POST['comments_text'];
            $error = '';
            if (empty($cs_comments['users_id'])) {
                $guestnick = $_POST['comments_guestnick'];
                if (empty($guestnick) and empty($cs_comments['users_id'])) {
                    $error .= $cs_lang['no_guestnick'] . cs_html_br(1);
                } else {
                    $op_users = cs_sql_option(__FILE__, 'users');
                    $nick2 = str_replace(' ', '', $guestnick);
                    $nickchars = strlen($nick2);
                    if ($nickchars < $op_users['min_letters']) {
                        $error .= sprintf($cs_lang['short_guestnick'], $op_users['min_letters']) . cs_html_br(1);
                    }
                    $search_nick = cs_sql_count(__FILE__, 'users', "users_nick = '" . cs_sql_escape($guestnick) . "'");
                    if (!empty($search_nick)) {
                        $error .= $cs_lang['nick_exists'] . cs_html_br(1);
                    }
                }
            }
            if (empty($cs_comments['comments_text'])) {
                $error .= $cs_lang['no_text'] . cs_html_br(1);
            }
        }
        if (!isset($_POST['submit']) and !isset($_POST['preview'])) {
            $data['head']['body'] = $cs_lang['body_com_edit'];
        } elseif (!empty($error)) {
            $data['head']['body'] = $error;
        } elseif (isset($_POST['preview'])) {
            $data['head']['body'] = $cs_lang['preview'];
        }
        if (isset($_POST['preview']) and empty($error)) {
            $data['if']['preview'] = true;
            $userid = $account['users_id'];
            $select = 'users_nick, users_laston, users_place, users_country, users_active, users_invisible, users_delete';
            $cs_user = cs_sql_select(__FILE__, 'users', $select, "users_id = " . (int) $userid);
            if (empty($cs_comments['users_id'])) {
                $data['if']['guest_prev'] = TRUE;
                $data['if']['user_prev'] = FALSE;
                $data['prev']['guestnick'] = cs_secure($guestnick);
            } else {
                $data['if']['guest_prev'] = FALSE;
                $data['if']['user_prev'] = TRUE;
                $user = cs_secure($cs_user['users_nick']);
                $url = 'symbols/countries/' . $cs_user['users_country'] . '.png';
                $data['prev']['flag'] = cs_html_img($url, 11, 16);
                $data['prev']['user'] = cs_user($userid, $cs_user['users_nick'], $cs_user['users_active'], $cs_user['users_delete']);
                $data['prev']['status'] = cs_userstatus($cs_user['users_laston'], $cs_user['users_invisible']);
                $data['prev']['laston'] = empty($cs_user['users_invisible']) ? '--' : cs_date('unix', $cs_user['users_laston']);
                $place = empty($cs_user['users_place']) ? '-' : $cs_user['users_place'];
                $data['prev']['place'] = cs_secure($place);
                $who = "users_id = '" . $userid . "'";
                $count_com[$userid] = cs_sql_count(__FILE__, 'comments', $who);
                $data['prev']['posts'] = $count_com[$userid];
            }
            $opt = "comments_mod = '" . cs_sql_escape($mod) . "' AND comments_fid = " . (int) $com_fid;
            $count_com = cs_sql_count(__FILE__, 'comments', $opt);
            $data['prev']['count_com'] = $count_com + 1;
            $data['prev']['date'] = cs_date('unix', cs_time(), 1);
            $data['prev']['text'] = cs_secure($cs_comments['comments_text'], 1, 1);
        }
        if (!empty($error) or isset($_POST['preview']) or !isset($_POST['submit'])) {
            $data['com']['form_name'] = $mod . '_com_edit';
            $data['com']['form_url'] = cs_url($mod, 'com_edit');
            $data['com']['smileys'] = cs_abcode_smileys('comments_text');
            $data['com']['abcode'] = cs_abcode_features('comments_text');
            if ($account['access_comments'] >= 4 and empty($cs_comments['users_id'])) {
                $data['if']['guest'] = TRUE;
                $data['com']['guestnick'] = $cs_comments['comments_guestnick'];
            }
            $data['com']['text'] = $cs_comments['comments_text'];
            $data['com']['id'] = $com_id;
            echo cs_subtemplate(__FILE__, $data, 'comments', 'com_edit');
        } else {
            $opt = "comments_mod = '" . cs_sql_escape($mod) . "' AND comments_fid = " . (int) $com_fid;
            $opt .= " AND comments_id <= '" . $com_id . "'";
            $count_com = cs_sql_count(__FILE__, 'comments', $opt);
            $start = floor($count_com / $account['users_limit']) * $account['users_limit'];
            if (!empty($cs_comments['comments_edit'])) {
                $edits = explode('/', $cs_comments['comments_edit']);
                $edits_count = $edits[3] + 1;
            } else {
                $edits_count = 1;
            }
            $com_edits = $account['users_id'] . '/' . $account['users_nick'] . '/' . cs_time() . '/' . $edits_count;
            $com_cells = array('comments_text', 'comments_edit', 'comments_guestnick');
            $com_save = array($cs_comments['comments_text'], $com_edits, $guestnick);
//.........这里部分代码省略.........
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:101,代码来源:functions.php

示例8: cs_mail

            $title = $cs_lang['mail_titel'];
            $message = $cs_lang['mail_text'] . $cs_messages[$run]['users_nick'];
            $message .= $cs_lang['mail_text_2'] . $cs_main['def_title'] . $cs_lang['mail_text_3'];
            $message .= $cs_contact['def_org'] . $cs_lang['mail_text_4'];
            cs_mail($email, $title, $message);
            if (!empty($lang_save)) {
                $cs_lang = $cs_lang_save;
                $account['users_lang'] = $lang_save;
            }
        }
    }
    cs_redirect($cs_lang['msg_create_done'], 'messages', 'center');
}
$data = array();
$data['if']['preview'] = false;
$data['lang']['body_create'] = empty($messages_error) ? nl2br($cs_lang['body_create']) : $cs_lang['error_occured'] . cs_html_br(1) . $errormsg;
if (isset($_POST['preview']) && empty($messages_error)) {
    $data['if']['preview'] = true;
    $data['var']['subject'] = cs_secure($_POST['messages_subject']);
    $data['var']['date'] = cs_date('unix', $time, 1);
    $data['to'] = $cs_messages;
    $data['var']['text'] = cs_secure($_POST['messages_text'], 1, 1);
}
$data['msg']['to'] = cs_secure($messages_to);
$data['msg']['subject'] = cs_secure($messages_subject);
$data['msg']['smileys'] = cs_abcode_smileys('messages_text');
$data['msg']['abcode'] = cs_abcode_features('messages_text');
$data['msg']['text'] = cs_secure($messages_text);
$data['checked']['show_sender'] = empty($messages_show_sender) ? '' : ' checked="checked"';
$data['var']['reply_id'] = $reply_id;
echo cs_subtemplate(__FILE__, $data, 'messages', 'create');
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:create.php

示例9: cs_html_br

    }
    if (empty($cs_quotes['quotes_text'])) {
        $error++;
        $errormsg .= $cs_lang['no_text'] . cs_html_br(1);
    }
}
if (!isset($_POST['submit']) and empty($error)) {
    $data['head']['body'] = $cs_lang['fill_obligated'];
} elseif (!empty($error)) {
    $data['head']['error'] = $errormsg;
    $data['head']['body'] = '';
}
if (empty($error)) {
    $data['head']['error'] = '';
}
if (!empty($error) or !isset($_POST['submit'])) {
    $data['head']['body'] = $cs_lang['fill_obligated'];
    $categories_id = empty($cs_quotes['categories_id']) ? 0 : $cs_quotes['categories_id'];
    $data['categories']['dropdown'] = cs_categories_dropdown('quotes', $categories_id);
    $data['abcode']['features'] = cs_abcode_features('quotes_text');
    $data['data']['smileys'] = cs_abcode_smileys('quotes_text');
    $data['url']['action'] = cs_url('quotes', 'create');
    $data['quotes']['quotes_headline'] = empty($cs_quotes['quotes_headline']) ? '' : $cs_quotes['quotes_headline'];
    $data['quotes']['quotes_text'] = empty($cs_quotes['quotes_text']) ? '' : $cs_quotes['quotes_text'];
    echo cs_subtemplate(__FILE__, $data, 'quotes', 'create');
} else {
    $quotes_cells = array_keys($cs_quotes);
    $quotes_save = array_values($cs_quotes);
    cs_sql_insert(__FILE__, 'quotes', $quotes_cells, $quotes_save);
    cs_redirect($cs_lang['create_done'], 'quotes');
}
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:create.php

示例10: cs_url

            }
        }
    }
} else {
    $data['partner']['partner_name'] = '';
    $data['partner']['partner_text'] = '';
    $data['partner']['partner_url'] = '';
    $data['partner']['partner_alt'] = '';
    $data['partner']['partner_priority'] = '1';
    $categories_id = '';
}
if (empty($_POST['submit']) || !empty($error)) {
    $data['form']['create'] = cs_url('partner', 'create');
    $data['head']['body_text'] = !empty($error) ? $error : $cs_lang['body_text'];
    $data['categories']['dropdown'] = cs_categories_dropdown('partner', $categories_id);
    $data['abcode']['smileys'] = cs_abcode_smileys('partner_text');
    $data['abcode']['features'] = cs_abcode_features('partner_text');
    $matches_n[1] = $cs_lang['infobox'];
    $return_types = '';
    foreach ($img_filetypes as $add => $value) {
        $return_types .= empty($return_types) ? $add : ', ' . $add;
    }
    $matches_n[2] = $cs_lang['max_width'] . $op_partner['def_width_navimg'] . ' px' . cs_html_br(1);
    $matches_n[2] .= $cs_lang['max_height'] . $op_partner['def_height_navimg'] . ' px' . cs_html_br(1);
    $matches_n[2] .= $cs_lang['max_size'] . cs_filesize($op_partner['max_size_navimg']) . cs_html_br(1);
    $matches_n[2] .= $cs_lang['filetypes'] . $return_types;
    $data['clip']['nimg'] = cs_abcode_clip($matches_n);
    $matches_l[1] = $cs_lang['infobox'];
    $return_types = '';
    foreach ($img_filetypes as $add => $value) {
        $return_types .= empty($return_types) ? $add : ', ' . $add;
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:create.php

示例11: cs_sql_select

    $cid = "squads_own = '1' AND squads_fightus = '0'";
    $cs_squads = cs_sql_select(__FILE__, 'squads', 'squads_name, squads_id, squads_own, squads_fightus', $cid, 'squads_name', 0, 0);
    $data['fightus']['squad_sel'] = cs_dropdown('squads_id', 'squads_name', $cs_squads, $cs_fightus['squads_id']);
    $el_id = 'country_1';
    $onc = "document.getElementById('" . $el_id . "').src='" . $cs_main['php_self']['dirname'] . "symbols/countries/' + this.form.";
    $onc .= "fightus_country.options[this.form.fightus_country.selectedIndex].value + '.png'";
    $data['fightus']['country_sel'] = cs_html_select(1, 'fightus_country', "onchange=\"" . $onc . "\"");
    foreach ($cs_country as $short => $full) {
        $short == $cs_fightus['fightus_country'] ? $sel = 1 : ($sel = 0);
        $data['fightus']['country_sel'] .= cs_html_option($full, $short, $sel);
    }
    $data['fightus']['country_sel'] .= cs_html_select(0) . ' ';
    $url = 'symbols/countries/' . $cs_fightus['fightus_country'] . '.png';
    $data['fightus']['country_img'] = cs_html_img($url, 11, 16, 'id="' . $el_id . '"');
    $data['fightus']['date_sel'] = cs_dateselect('fight', 'unix', $cs_fightus['fightus_date'], 2000);
    $data['fightus']['abcode_smileys'] = cs_abcode_smileys('fightus_more');
    $data['fightus']['abcode_features'] = cs_abcode_features('fightus_more');
    if (!empty($captcha)) {
        $data['if']['captcha'] = TRUE;
        $data['fightus']['captcha_img'] = cs_html_img('mods/captcha/generate.php?time=' . cs_time());
    }
} elseif (!empty($data['if']['form'])) {
    settype($cs_fightus['fightus_icq'], 'integer');
    $cs_fightus['fightus_since'] = cs_time();
    $fightus_cells = array_keys($cs_fightus);
    $fightus_save = array_values($cs_fightus);
    cs_sql_insert(__FILE__, 'fightus', $fightus_cells, $fightus_save);
    cs_cache_delete('count_fightus');
    require_once 'mods/notifymods/functions.php';
    notifymods_mail('fightus', $account['users_id']);
    cs_redirect($cs_lang['success'], 'fightus', 'new');
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:new.php

示例12: cs_dropdown

        $data['player'][$x]['player_name'] = $cs_players[$x];
        $data['player'][$x]['user_sel'] = cs_dropdown('playerid' . $x, 'users_nick', $cs_members, 0, 'users_id');
    }
    $data['wars']['date_sel'] = cs_dateselect('date', 'unix', $cs_wars['wars_date'], 1995);
    $status = array();
    $status[0]['wars_status'] = 'upcoming';
    $status[0]['name'] = $cs_lang['upcoming'];
    $status[1]['wars_status'] = 'running';
    $status[1]['name'] = $cs_lang['running'];
    $status[2]['wars_status'] = 'canceled';
    $status[2]['name'] = $cs_lang['canceled'];
    $status[3]['wars_status'] = 'played';
    $status[3]['name'] = $cs_lang['played'];
    $data['wars']['status_dropdown'] = cs_dropdown('wars_status', 'name', $status, $cs_wars['wars_status']);
    $data['abcode']['smileys'] = cs_abcode_smileys('wars_report');
    $data['abcode']['features'] = cs_abcode_features('wars_report');
    $data['abcode']['smileys2'] = cs_abcode_smileys('wars_report2');
    $data['abcode']['features2'] = cs_abcode_features('wars_report2');
    $data['wars']['check_player'] = !empty($players) ? $players : 1;
    $data['wars']['close_check'] = empty($cs_wars['wars_close']) ? '' : 'checked="checked"';
    $data['value']['wars_topmatch_check'] = empty($cs_wars['wars_topmatch']) ? '' : 'checked="checked"';
    $data['wars']['id'] = $wars_id;
    echo cs_subtemplate(__FILE__, $data, 'wars', 'edit');
} else {
    settype($cs_wars['wars_score1'], 'integer');
    settype($cs_wars['wars_score2'], 'integer');
    $wars_cells = array_keys($cs_wars);
    $wars_save = array_values($cs_wars);
    cs_sql_update(__FILE__, 'wars', $wars_cells, $wars_save, $wars_id);
    cs_redirect($cs_lang['changes_done'], 'wars');
}
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:edit.php

示例13: elseif

} elseif (isset($_POST['preview'])) {
    $data['head']['body'] = $cs_lang['preview'];
} elseif (!empty($error)) {
    $data['head']['body'] = $error;
}
$data['if']['preview'] = FALSE;
if (isset($_POST['preview'])) {
    $data['if']['preview'] = TRUE;
    $data['autoresponder']['subject'] = cs_secure($cs_messages['autoresponder_subject']);
    $data['autoresponder']['time'] = cs_date('unix', $cs_messages['autoresponder_time'], 1);
    $data['autoresponder']['text'] = cs_secure($cs_messages['autoresponder_text'], 1, 1);
}
if (!empty($error) or isset($_POST['preview']) or !isset($_POST['submit'])) {
    $data['autoresponder2']['subject'] = cs_secure($cs_messages['autoresponder_subject']);
    $data['autoresponder2']['text'] = cs_secure($cs_messages['autoresponder_text']);
    $data['abcode']['smileys'] = cs_abcode_smileys('autoresponder_text');
    $data['abcode']['features'] = cs_abcode_features('autoresponder_text');
    $data['check']['close'] = empty($cs_messages['autoresponder_close']) ? '' : 'checked="checked"';
    $data['autoresponder']['id'] = $cs_messages['autoresponder_id'];
    $data['autoresponder']['update'] = $update;
    echo cs_subtemplate(__FILE__, $data, 'messages', 'autoresponder');
} else {
    $messages_cells = array_keys($cs_messages);
    $messages_save = array_values($cs_messages);
    if (empty($update)) {
        cs_sql_insert(__FILE__, 'autoresponder', $messages_cells, $messages_save);
        $msg = $cs_lang['create_done'];
    } else {
        cs_sql_update(__FILE__, 'autoresponder', $messages_cells, $messages_save, $cs_messages['autoresponder_id']);
        $msg = $cs_lang['changes_done'];
    }
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:autoresponder.php

示例14: cs_html_option

    for ($run = 0; $run < $games_count; $run++) {
        $sel = $cs_games[$run]['games_id'] == $cs_replays['games_id'] ? 1 : 0;
        $data['games'][$run]['op'] = cs_html_option($cs_games[$run]['games_name'], $cs_games[$run]['games_id'], $sel);
    }
    $url = 'uploads/games/' . $cs_replays['games_id'] . '.gif';
    $data['replays']['games_img'] = cs_html_img($url, 0, 0, 'id="' . $el_id . '"');
    $data['replays']['date_sel'] = cs_dateselect('date', 'date', $cs_replays['replays_date'], 1995);
    $matches[1] = $cs_lang['rep_infos'];
    $return_types = '';
    foreach ($rep_filetypes as $add) {
        $return_types .= empty($return_types) ? $add : ', ' . $add;
    }
    $matches[2] = $cs_lang['max_size'] . cs_filesize($rep_max['size']) . cs_html_br(1);
    $matches[2] .= $cs_lang['filetypes'] . $return_types;
    $data['replays']['upload_clip'] = cs_abcode_clip($matches);
    $data['replays']['abcode_smileys'] = cs_abcode_smileys('replays_info');
    $data['replays']['abcode_features'] = cs_abcode_features('replays_info');
    $data['replays']['close_check'] = empty($cs_replays['replays_close']) ? '' : 'checked="checked"';
    echo cs_subtemplate(__FILE__, $data, 'replays', 'create');
} else {
    $cs_replays['users_id'] = $account['users_id'];
    $cs_replays['replays_since'] = cs_time();
    $replays_cells = array_keys($cs_replays);
    $replays_save = array_values($cs_replays);
    cs_sql_insert(__FILE__, 'replays', $replays_cells, $replays_save);
    if (!empty($files_gl['replay']['tmp_name'])) {
        $where = "replays_team1 = '" . cs_sql_escape($cs_replays['replays_team1']) . "'";
        $order = 'replays_since DESC';
        $getid = cs_sql_select(__FILE__, 'replays', 'replays_id, replays_mirror_urls', $where, $order);
        $filename = 'replay-' . $getid['replays_id'] . '-' . cs_time() . '.' . $extension;
        cs_upload('replays', $filename, $files_gl['replay']['tmp_name']);
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:create.php

示例15: foreach

    foreach ($modules as $mods) {
        $check_axx = empty($account['access_' . $mods['dir'] . '']) ? 0 : $account['access_' . $mods['dir'] . ''];
        if (!empty($mods['categories']) and $check_axx > 2) {
            $mods['dir'] == $cs_categories['categories_mod'] ? $sel = 1 : ($sel = 0);
            $data['mod'][$run]['sel'] = cs_html_option($mods['name'], $mods['dir'], $sel);
            $run++;
        }
    }
    $levels = 0;
    $sel = 0;
    while ($levels < 6) {
        $cs_categories['categories_access'] == $levels ? $sel = 1 : ($sel = 0);
        $data['access'][$levels]['sel'] = cs_html_option($levels . ' - ' . $cs_lang['lev_' . $levels], $levels, $sel);
        $levels++;
    }
    $data['cat']['abcode_smileys'] = cs_abcode_smileys('categories_text');
    $data['cat']['abcode_features'] = cs_abcode_features('categories_text');
    $matches[1] = $cs_lang['pic_infos'];
    $return_types = '';
    foreach ($img_filetypes as $add) {
        $return_types .= empty($return_types) ? $add : ', ' . $add;
    }
    $matches[2] = $cs_lang['max_width'] . $op_categories['max_width'] . ' px' . cs_html_br(1);
    $matches[2] .= $cs_lang['max_height'] . $op_categories['max_height'] . ' px' . cs_html_br(1);
    $matches[2] .= $cs_lang['max_size'] . cs_filesize($op_categories['max_size']) . cs_html_br(1);
    $matches[2] .= $cs_lang['filetypes'] . $return_types;
    $data['cat']['picup_clip'] = cs_abcode_clip($matches);
    echo cs_subtemplate(__FILE__, $data, 'categories', 'create');
} else {
    $categories_cells = array_keys($cs_categories);
    $categories_save = array_values($cs_categories);
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:create.php


注:本文中的cs_abcode_smileys函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。