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


PHP cs_date函数代码示例

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


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

示例1: cs_description_pack

function cs_description_pack() {
	if(!isset($GLOBALS['cs_pack_actuel'])) return '';
	return debut_cadre_relief('', true)
		. "<h3 class='titrem'><img src='"._DIR_IMG_PACK."puce-verte.gif' width='9' height='9' alt='-' />&nbsp;" . _T('couteauprive:pack_titre') . '</h3>'
		. ((strlen($temp = cs_action_rapide('pack')))?"<div class='cs_action_rapide' id='cs_action_rapide'>$temp</div>":'')
		. propre(_T('couteauprive:pack_descrip', array('pack'=> _T('couteauprive:pack_actuel', array('date'=>cs_date()))))
		. "\n\n" . _T('couteauprive:contrib', array('url'=>'[->'._URL_CONTRIB.'2552]')))
		. '<br/><textarea rows=40 cols=500 style="width:100%; font-size:90%;">'.htmlentities($GLOBALS[cs_pack_actuel], ENT_QUOTES, $GLOBALS['meta']['charset']).'</textarea>'
		. fin_cadre_relief(true);
}
开发者ID:rhertzog,项目名称:lcs,代码行数:10,代码来源:cs_outils.php

示例2: pack_sauve_pack_action

function pack_sauve_pack_action() {
	// pour inserer un pack de config dans config/mes_options.php
	$titre0 = $titre = _T('couteauprive:pack_actuel', array('date'=>cs_date())); $n=0;
	if(isset($GLOBALS['cs_installer'][$titre]))
		while(isset($GLOBALS['cs_installer']["$titre (".++$n.')']));
	if($n) $titre = "$titre ($n)";
	include_spip(_DIR_CS_TMP.'config');
	$fct = md5($titre.time());
	$config = $GLOBALS['cs_installer'][$titre0];
	if(function_exists($config)) $config = $config();
	$pack = "\n# Le Couteau Suisse : pack de configuration du ".date("d M Y, H:i:s")."\n\$GLOBALS['cs_installer']['$titre'] = 'cs_$fct';
function cs_$fct() { return "
		. var_export($config, true) . ";\n} # $titre #\n";
	cs_ecrire_config(',\?'.'>\s*$,m', $pack.'?'.'>', $pack);
}
开发者ID:rhertzog,项目名称:lcs,代码行数:15,代码来源:pack_action_rapide.php

示例3: empty

$cs_sort[1] = 'articles_headline DESC';
$cs_sort[2] = 'articles_headline ASC';
$cs_sort[3] = 'articles_time DESC';
$cs_sort[4] = 'articles_time ASC';
$sort = empty($_REQUEST['sort']) ? 3 : $_REQUEST['sort'];
$order = $cs_sort[$sort];
$articles_count = cs_sql_count(__FILE__, 'articles');
$data['head']['articles_count'] = $articles_count;
$data['head']['pages'] = cs_pages('articles', 'manage', $articles_count, $start, $categories_id, $sort);
$catmod = "categories_mod = 'articles'";
$cells = 'categories_name, categories_id';
$categories_data = cs_sql_select(__FILE__, 'categories', $cells, $catmod, 'categories_name', 0, 0);
$data['head']['dropdown'] = cs_dropdown('categories_id', 'categories_name', $categories_data, $categories_id);
$data['head']['message'] = cs_getmsg();
$cat_where = empty($categories_id) ? 0 : 'categories_id = ' . (int) $categories_id;
$cells = 'articles_headline, articles_id, articles_time, users_id';
$cs_articles = cs_sql_select(__FILE__, 'articles', $cells, $cat_where, $order, $start, $account['users_limit']);
$articles_loop = count($cs_articles);
$data['sort']['headline'] = cs_sort('articles', 'manage', $start, $categories_id, 1, $sort);
$data['sort']['date'] = cs_sort('articles', 'manage', $start, $categories_id, 3, $sort);
for ($run = 0; $run < $articles_loop; $run++) {
    $id = $cs_articles[$run]['articles_id'];
    $cs_articles[$run]['articles_headline'] = cs_link($cs_articles[$run]['articles_headline'], 'articles', 'view', 'id=' . $id);
    $cs_user = cs_sql_select(__FILE__, 'users', 'users_nick, users_active, users_delete', "users_id = '" . $cs_articles[$run]['users_id'] . "'");
    $cs_articles[$run]['users_link'] = cs_user($cs_articles[$run]['users_id'], $cs_user['users_nick'], $cs_user['users_active'], $cs_user['users_delete']);
    $cs_articles[$run]['articles_date'] = cs_date('unix', $cs_articles[$run]['articles_time'], 1);
    $cs_articles[$run]['url_edit'] = cs_url('articles', 'edit', 'id=' . $id);
    $cs_articles[$run]['url_remove'] = cs_url('articles', 'remove', 'id=' . $id);
}
$data['articles'] = $cs_articles;
echo cs_subtemplate(__FILE__, $data, 'articles', 'manage');
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:manage.php

示例4: cs_html_img

    $data['clans']['img'] = cs_html_img($place, $size[1], $size[0]);
}
$data['clans']['short'] = cs_secure($cs_clan['clans_short']);
if (!empty($cs_clan['clans_country'])) {
    include_once 'lang/' . $account['users_lang'] . '/countries.php';
    $data['clans']['country'] = cs_html_img('symbols/countries/' . $cs_clan['clans_country'] . '.png', 11, 16) . ' ' . $cs_country[$cs_clan['clans_country']];
} else {
    $data['clans']['country'] = '-';
}
if (!empty($cs_clan['clans_url'])) {
    $data['clans']['url'] = cs_html_link('http://' . $cs_clan['clans_url'], cs_secure($cs_clan['clans_url']));
} else {
    $data['clans']['url'] = '';
}
if (!empty($cs_clan['clans_since'])) {
    $content = cs_date('date', $cs_clan['clans_since']);
    $birth = explode('-', $cs_clan['clans_since']);
    $age = cs_datereal('Y') - $birth[0];
    if (cs_datereal('m') <= $birth[1]) {
        $age--;
    }
    if (cs_datereal('d') >= $birth[2] and cs_datereal('m') == $birth[1]) {
        $age++;
    }
    $content .= ' (' . $age . ')';
    $data['clans']['since'] = $content;
} else {
    $data['clans']['since'] = '-';
}
$select = 'squads_name, games_id, squads_id';
$where = "clans_id = '" . $cs_clans_id . "'";
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:view.php

示例5: cs_cups_get_teams

function cs_cups_get_teams($cups_id, $cups_type, $cs_lang)
{
    switch ($cups_type) {
        case CS_CUPS_TYPE_TEAMS:
            $tables = 'cupsquads cs LEFT JOIN {pre}_';
            $tables .= 'squads team ON cs.squads_id = team.squads_id';
            $cells = 'cs.cupsquads_id AS cupsquads_id, cs.cupsquads_time AS cupsquads_time, cs.squads_id AS squads_id, ';
            $cells .= 'cs.cupsquads_seed AS cupsquads_seed, cs.cupsquads_autoseed AS cupsquads_autoseed, ';
            $cells .= 'team.squads_name AS squads_name';
            break;
        case CS_CUPS_TYPE_USERS:
            $tables = 'cupsquads cs LEFT JOIN {pre}_';
            $tables .= 'users team ON cs.squads_id = team.users_id';
            $cells = 'cs.cupsquads_id AS cupsquads_id, cs.cupsquads_time AS cupsquads_time, cs.squads_id AS squads_id, ';
            $cells .= 'cs.cupsquads_seed AS cupsquads_seed, cs.cupsquads_autoseed AS cupsquads_autoseed, ';
            $cells .= 'team.users_nick AS squads_name, team.users_active AS users_active, team.users_delete AS users_delete';
            break;
    }
    $teams = cs_sql_select(__FILE__, $tables, $cells, 'cs.cups_id = ' . $cups_id, 'cupsquads_autoseed ASC, cupsquads_seed ASC', 0, 0);
    if (!count($teams)) {
        return NULL;
    }
    foreach ($teams as $key => $team) {
        if (empty($team['cupsquads_autoseed'])) {
            $teams[$key]['seed_text'] = $team['cupsquads_seed'];
            $teams[$key]['autoseed_on'] = '';
            $teams[$key]['autoseed_off'] = 'checked';
        } else {
            $teams[$key]['seed_text'] = $cs_lang['auto'];
            $teams[$key]['autoseed_on'] = 'checked';
            $teams[$key]['autoseed_off'] = '';
        }
        $teams[$key]['join'] = cs_date('unix', $teams[$key]['cupsquads_time'], 1);
        switch ($cups_type) {
            case CS_CUPS_TYPE_TEAMS:
                $teams[$key]['link'] = cs_link(cs_secure($team['squads_name']), 'squads', 'view', 'id=' . $team['squads_id']);
                break;
            case CS_CUPS_TYPE_USERS:
                $teams[$key]['link'] = cs_user($team['squads_id'], $team['squads_name'], $team['users_active'], $team['users_delete']);
                break;
        }
    }
    return $teams;
}
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:44,代码来源:functions.php

示例6: getimagesize

        $allow = $members[$run]['users_id'] == $account['users_id'] or $account['access_users'] > 4 ? 1 : 0;
        if (empty($members[$run]['users_picture'])) {
            $members[$run]['picture'] = $cs_lang['nopic'];
        } else {
            $place = 'uploads/users/' . $members[$run]['users_picture'];
            $size = getimagesize($cs_main['def_path'] . '/' . $place);
            $members[$run]['picture'] = cs_html_img($place, $size[1], $size[0]);
        }
        $url = 'symbols/countries/' . $members[$run]['users_country'] . '.png';
        $members[$run]['country'] = cs_html_img($url, 11, 16) . ' ';
        $members[$run]['nick'] = $data['squads'][$sq_run]['clans_tagpos'] == 1 ? $data['squads'][$sq_run]['clans_tag'] . ' ' : '';
        $members[$run]['nick'] .= cs_user($members[$run]['users_id'], $members[$run]['users_nick'], $members[$run]['users_active'], $members[$run]['users_delete']);
        $members[$run]['nick'] .= $data['squads'][$sq_run]['clans_tagpos'] == 2 ? ' ' . $data['squads'][$sq_run]['clans_tag'] : '';
        $users_name = !in_array('users_name', $hidden) || !empty($allow) ? $members[$run]['users_name'] : '';
        $users_surname = !in_array('users_surname', $hidden) || !empty($allow) ? $members[$run]['users_surname'] : '';
        $members[$run]['surname'] = empty($users_name) && empty($users_surname) ? ' - ' : $users_name . ' ' . $users_surname;
        $members[$run]['task'] = cs_secure($members[$run]['members_task']);
        $since = empty($members[$run]['members_since']) ? '-' : cs_date('date', $members[$run]['members_since']);
        $members[$run]['since'] = $since;
        $tr++;
        $members[$run]['if']['td'] = FALSE;
        $members[$run]['if']['end_row'] = FALSE;
        if ($tr % 2 != 0 && $tr == $members_loop) {
            $members[$run]['if']['td'] = TRUE;
        } elseif ($tr % 2 == 0 && $tr != $members_loop) {
            $members[$run]['if']['end_row'] = TRUE;
        }
        $data['squads'][$sq_run]['members'] = $members;
    }
}
echo cs_subtemplate(__FILE__, $data, 'members', 'pictured');
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:pictured.php

示例7: cs_translate

<?php

// ClanSphere 2010 - www.clansphere.net
// $Id$
$cs_lang = cs_translate('count');
$start = empty($_REQUEST['start']) ? 0 : $_REQUEST['start'];
$cs_sort[1] = 'count_time DESC';
$cs_sort[2] = 'count_time ASC';
$cs_sort[3] = 'count_id DESC';
$cs_sort[4] = 'count_id ASC';
$sort = empty($_REQUEST['sort']) ? 1 : $_REQUEST['sort'];
$order = $cs_sort[$sort];
$counter_count = cs_sql_count(__FILE__, 'count');
$data = array();
$data['head']['counter_count'] = $counter_count;
$data['head']['counter_pages'] = cs_pages('count', 'manage', $counter_count, $start);
$data['head']['message'] = cs_getmsg();
$data['sort']['count_time'] = cs_sort('count', 'manage', $start, 0, 1, $sort);
$data['sort']['count_id'] = cs_sort('count', 'manage', $start, 0, 3, $sort);
$cs_counter = cs_sql_select(__FILE__, 'count', '*', 0, $order, $start, $account['users_limit']);
$count_loop = count($cs_counter);
$data['count'] = array();
for ($run = 0; $run < $count_loop; $run++) {
    $data['count'][$run]['count_id'] = $cs_counter[$run]['count_id'];
    $data['count'][$run]['count_ip'] = $cs_counter[$run]['count_ip'];
    $data['count'][$run]['count_locate'] = $cs_counter[$run]['count_location'];
    $data['count'][$run]['count_time'] = cs_date('unix', $cs_counter[$run]['count_time'], 1);
}
echo cs_subtemplate(__FILE__, $data, 'count', 'manage');
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:29,代码来源:manage.php

示例8: cs_translate

<?php

// ClanSphere 2010 - www.clansphere.net
// $Id$
$cs_lang = cs_translate('games');
$start = empty($_REQUEST['start']) ? 0 : $_REQUEST['start'];
$cs_sort[1] = 'games_name DESC';
$cs_sort[2] = 'games_name ASC';
$cs_sort[3] = 'games_usk DESC';
$cs_sort[4] = 'games_usk ASC';
$sort = empty($_REQUEST['sort']) ? 2 : $_REQUEST['sort'];
$order = $cs_sort[$sort];
$games_count = cs_sql_count(__FILE__, 'games');
$data['lang']['body'] = sprintf($cs_lang['all'], $games_count);
$data['pages']['list'] = cs_pages('games', 'list', $games_count, $start, 0, $sort);
$cs_games = cs_sql_select(__FILE__, 'games', '*', 0, $order, $start, $account['users_limit']);
$games_loop = count($cs_games);
$data['sort']['name'] = cs_sort('games', 'list', $start, 0, 1, $sort);
$data['sort']['usk'] = cs_sort('games', 'list', $start, 0, 3, $sort);
if (empty($games_loop)) {
    $data['games'] = '';
}
for ($run = 0; $run < $games_loop; $run++) {
    $data['games'][$run]['name'] = cs_link($cs_games[$run]['games_name'], 'games', 'view', 'id=' . $cs_games[$run]['games_id']);
    $games_genre = cs_sql_select(__FILE__, 'categories', '*', "categories_id = '" . $cs_games[$run]['categories_id'] . "'");
    $data['games'][$run]['genre'] = cs_secure($games_genre['categories_name']);
    $data['games'][$run]['usk'] = cs_secure($cs_games[$run]['games_usk']);
    $data['games'][$run]['release'] = empty($cs_games[$run]['games_released']) ? $since2 = '-' : ($since2 = cs_date('date', $cs_games[$run]['games_released']));
}
echo cs_subtemplate(__FILE__, $data, 'games', 'list');
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:30,代码来源:list.php

示例9: cs_translate

<?php

// ClanSphere 2010 - www.clansphere.net
// $Id$
$cs_lang = cs_translate('events');
$cs_get = cs_get('catid');
$cs_option = cs_sql_option(__FILE__, 'events');
$from = 'events evs INNER JOIN {pre}_categories cat ON evs.categories_id = cat.categories_id';
$select = 'evs.events_id AS events_id, evs.events_name AS events_name, evs.events_time AS events_time';
$upcome = 'evs.events_time > ' . cs_time() . ' AND cat.categories_access <= ' . $account['access_events'];
if (!empty($cs_get['catid'])) {
    $upcome .= ' AND cat.categories_id = ' . $cs_get['catid'];
}
$cs_events = cs_sql_select(__FILE__, $from, $select, $upcome, 'evs.events_time', 0, $cs_option['max_navnext']);
$events_loop = count($cs_events);
$data = array();
if (empty($cs_events)) {
    echo $cs_lang['no_events'];
} else {
    for ($run = 0; $run < $events_loop; $run++) {
        $data['events'][$run]['date'] = cs_date('unix', $cs_events[$run]['events_time'], 1);
        $data['events'][$run]['name'] = cs_secure($cs_events[$run]['events_name']);
        $data['events'][$run]['link'] = cs_url('events', 'view', 'id=' . $cs_events[$run]['events_id']);
    }
    echo cs_subtemplate(__FILE__, $data, 'events', 'navnext');
}
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:26,代码来源:navnext.php

示例10: elseif

    if (!empty($surname) and !empty($name)) {
        $data['eventguests'][$run]['name'] = $surname . ', ' . $name;
    } elseif (!empty($surname) or !empty($name)) {
        $data['eventguests'][$run]['name'] = $surname . $name;
    } else {
        $data['eventguests'][$run]['name'] = '';
    }
    if (empty($cs_eventguests[$run]['eventguests_phone'])) {
        if (in_array('users_phone', $hidden)) {
            $cs_eventguests[$run]['eventguests_phone'] = empty($allow) ? '' : cs_html_italic(1) . $cs_eventguests[$run]['users_phone'] . cs_html_italic(0);
        } elseif (!empty($allow)) {
            $cs_eventguests[$run]['eventguests_phone'] = $cs_eventguests[$run]['users_phone'];
        }
    }
    if (empty($cs_eventguests[$run]['eventguests_mobile'])) {
        if (in_array('users_mobile', $hidden)) {
            $cs_eventguests[$run]['eventguests_mobile'] = empty($allow) ? '' : cs_html_italic(1) . $cs_eventguests[$run]['users_mobile'] . cs_html_italic(0);
        } elseif (!empty($allow)) {
            $cs_eventguests[$run]['eventguests_mobile'] = $cs_eventguests[$run]['users_mobile'];
        }
    }
    $data['eventguests'][$run]['user'] = empty($cs_eventguests[$run]['users_id']) ? '-' : cs_user($cs_eventguests[$run]['users_id'], $cs_eventguests[$run]['users_nick'], $cs_eventguests[$run]['users_active'], $cs_eventguests[$run]['users_delete']);
    $data['eventguests'][$run]['since'] = cs_date('unix', $cs_eventguests[$run]['eventguests_since']);
    $data['eventguests'][$run]['phone'] = empty($cs_eventguests[$run]['eventguests_phone']) ? '&nbsp;' : cs_html_img('symbols/' . $cs_main['img_path'] . '/16/linphone.' . $cs_main['img_ext'], 16, 16, 'title="' . $cs_eventguests[$run]['eventguests_phone'] . '"');
    $data['eventguests'][$run]['mobile'] = empty($cs_eventguests[$run]['eventguests_mobile']) ? '&nbsp;' : cs_html_img('symbols/' . $cs_main['img_path'] . '/16/sms_protocol.' . $cs_main['img_ext'], 16, 16, 'title="' . $cs_eventguests[$run]['eventguests_mobile'] . '"');
    $data['eventguests'][$run]['status'] = $cs_lang['status_' . $cs_eventguests[$run]['eventguests_status']];
    $data['eventguests'][$run]['notice'] = empty($cs_eventguests[$run]['eventguests_notice']) ? '&nbsp;' : cs_icon('txt', 16, $cs_lang['notice']);
    $data['eventguests'][$run]['edit'] = cs_link(cs_icon('edit', 16, $cs_lang['edit']), 'events', 'guestsadm', 'id=' . $cs_eventguests[$run]['eventguests_id'], 0, $cs_lang['edit']);
    $data['eventguests'][$run]['remove'] = cs_link(cs_icon('editdelete', 16, $cs_lang['remove']), 'events', 'guestsdel', 'id=' . $cs_eventguests[$run]['eventguests_id'], 0, $cs_lang['remove']);
}
echo cs_subtemplate(__FILE__, $data, 'events', 'guests');
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:guests.php

示例11: cs_sql_select

$cs_news = cs_sql_select(__FILE__, $from, $select, "news_id = '" . $cs_news_id . "'");
$head['head']['mod'] = $cs_lang['mod_name'];
$head['head']['action'] = $cs_lang['details'];
$topline = empty($cs_news['news_public']) ? 'not_public' : 'news_info';
$head['head']['topline'] = $cs_lang[$topline];
echo cs_subtemplate(__FILE__, $head, 'news', 'head');
$pub = $cs_news['categories_access'] > $account['access_news'] ? 0 : $cs_news['news_public'];
if (!empty($pub)) {
    $com_where = "comments_mod = 'news' AND comments_fid = '" . $cs_news['news_id'] . "'";
    $data['news']['comments_count'] = cs_sql_count(__FILE__, 'comments', $com_where);
    $start = floor($data['news']['comments_count'] / ($account['users_limit'] + 1)) * $account['users_limit'];
    $cs_news_com_count = $data['news']['comments_count'] - $start;
    $data['news']['comments_link'] = cs_link($cs_lang['comments'], 'news', 'view', 'id=' . $cs_news['news_id'] . '&amp;start=' . $start . '#com' . $cs_news_com_count);
    $cs_main['page_title'] = $cs_news['news_headline'];
    $data['news']['news_headline'] = cs_secure($cs_news['news_headline']);
    $data['news']['news_time'] = cs_date('unix', $cs_news['news_time'], 1);
    $data['news']['news_text'] = cs_secure($cs_news['news_text'], $abcode[0], $abcode[1], $abcode[2], $abcode[3], $abcode[4]);
    if (empty($cs_news['news_readmore_active'])) {
        $data['news']['news_readmore'] = '';
    } else {
        $data['news']['news_readmore'] = cs_secure($cs_news['news_readmore'], $abcode[0], $abcode[1], $abcode[2], $abcode[3], $abcode[4]);
        $data['news']['news_readmore'] .= cs_html_br(2);
    }
    $data['news']['users_link'] = cs_user($cs_news['users_id'], $cs_news['users_nick'], $cs_news['users_active'], $cs_news['users_delete']);
    $data['if']['catimg'] = empty($cs_news['categories_picture']) ? false : true;
    $data['news']['url_catimg'] = empty($data['if']['catimg']) ? '' : 'uploads/categories/' . $cs_news['categories_picture'];
    $data['news']['pictures'] = '';
    if (!empty($cs_news['news_pictures'])) {
        $news_pics = explode("\n", $cs_news['news_pictures']);
        $data['news']['pictures'] = cs_html_br(2);
        foreach ($news_pics as $pic) {
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:view.php

示例12: cs_translate

<?php

// ClanSphere 2010 - www.clansphere.net
// $Id$
$cs_lang = cs_translate('awards');
$cs_awards['users_id'] = $account['users_id'];
$now = cs_time();
$awards_year = isset($_POST['datum_year']) ? $_POST['datum_year'] : cs_date('unix', $now, 0, 1, 'Y');
$awards_month = isset($_POST['datum_month']) ? $_POST['datum_month'] : cs_date('unix', $now, 0, 1, 'm');
$awards_day = isset($_POST['datum_day']) ? $_POST['datum_day'] : cs_date('unix', $now, 0, 1, 'd');
$cs_awards['awards_time'] = $awards_year . '-' . $awards_month . '-' . $awards_day;
$cs_awards['games_id'] = isset($_POST['games_id']) ? (int) $_POST['games_id'] : 0;
$cs_awards['awards_rank'] = isset($_POST['awards_rank']) ? (int) $_POST['awards_rank'] : 0;
$cs_awards['awards_event'] = isset($_POST['awards_event']) ? $_POST['awards_event'] : '';
$cs_awards['awards_event_url'] = isset($_POST['awards_event_url']) ? $_POST['awards_event_url'] : '';
$cs_awards['squads_id'] = isset($_POST['squads_id']) ? (int) $_POST['squads_id'] : 0;
$error = 0;
$errormsg = '';
settype($cs_awards['awards_rank'], 'integer');
if (isset($_POST['submit'])) {
    $awards_check_time = str_replace('-', '', $cs_awards['awards_time']);
    if ($awards_check_time <= '000') {
        $error++;
        $errormsg .= $cs_lang['no_date'] . cs_html_br(1);
    }
    if (empty($cs_awards['awards_event'])) {
        $error++;
        $errormsg .= $cs_lang['no_event'] . cs_html_br(1);
    }
    if (empty($cs_awards['awards_event_url'])) {
        $error++;
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:create.php

示例13: 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

示例14: cs_secure

    $comments_fid = $cs_comments[$run_2]['comments_fid'];
    $votes_id = $cs_votes[0]['votes_id'];
    if ($comments_fid == $votes_id) {
        $com_count++;
    }
}
$data['votes'] = '';
for ($run = 0; $run < $votes_loop; $run++) {
    $question = cs_secure($cs_votes_archiv[$run]['votes_question']);
    $com_count = 0;
    for ($run_2 = 0; $run_2 < $comments_loop; $run_2++) {
        $comments_fid = $cs_comments[$run_2]['comments_fid'];
        $votes_id = $cs_votes_archiv[$run]['votes_id'];
        if ($comments_fid == $votes_id) {
            $com_count++;
        }
    }
    $answers_count = 0;
    $votes_id = $cs_votes_archiv[$run]['votes_id'];
    for ($run_2 = 0; $run_2 < $voted_loop; $run_2++) {
        $voted_fid = $cs_voted[$run_2]['voted_fid'];
        if ($voted_fid == $votes_id) {
            $answers_count++;
        }
    }
    $data['votes'][$run]['question_link'] = cs_link($question, 'votes', 'view', 'where=' . $cs_votes_archiv[$run]['votes_id']);
    $data['votes'][$run]['com_count'] = $com_count;
    $data['votes'][$run]['elect_count'] = $answers_count;
    $data['votes'][$run]['ends_on'] = cs_date('unix', $cs_votes_archiv[$run]['votes_end'], 1);
}
echo cs_subtemplate(__FILE__, $data, 'votes');
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:list.php

示例15: sprintf

                 if ($cat_id_a == $gal_cat_id) {
                     $pic_loop++;
                     if ($last_update <= $cs_gallery[$run_2]['usersgallery_time']) {
                         $last_update = $cs_gallery[$run_2]['usersgallery_time'];
                     }
                 }
             }
             if ($pic_loop == 1) {
                 $cat[$run]['pic_count'] = sprintf($cs_lang['pic_1'], $pic_loop);
                 if (!empty($last_update)) {
                     $cat[$run]['last_update'] = $cs_lang['pic_akt'] . cs_date('unix', $last_update, 1);
                 }
             } else {
                 $cat[$run]['pic_count'] = sprintf($cs_lang['pic_2'], $pic_loop);
                 if (!empty($last_update)) {
                     $cat[$run]['last_update'] = $cs_lang['pic_akt'] . cs_date('unix', $last_update, 1);
                 } else {
                     $cat[$run]['last_update'] = '';
                 }
             }
             $run++;
         }
     }
 }
 $cs_gallery_move = cs_gallery_move($cs_gallery, $options['list_sort']);
 if (!empty($cs_gallery) and $options['top_5_views'] == '1') {
     $cs_gallery = cs_array_sort($cs_gallery_move, SORT_DESC, 'usersgallery_count');
     if ($gallery_loop > $rows) {
         $run_to = $rows;
     } else {
         $run_to = $gallery_loop;
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:users.php


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