コード例 #1
0
ファイル: startup.php プロジェクト: aberrios/WEBTHESGO
<?php

// ClanSphere 2010 - www.clansphere.net
// $Id: startup.php 4793 2011-02-09 07:35:37Z hajo $
global $cs_main, $account;
if (!empty($account['access_lightbox'])) {
    if (in_array($cs_main['mod'], array('gallery', 'cups')) && !empty($account['access_' . $cs_main['mod']])) {
        $op_mod = cs_sql_option(__FILE__, $cs_main['mod']);
        if ($op_mod['lightbox'] == '1') {
            cs_scriptload('lightbox', 'stylesheet', 'css/slimbox2.css');
            # Slimbox requires jQuery - loaded in cs_template() function
            cs_scriptload('lightbox', 'javascript', 'js/slimbox2.js');
        }
    }
}
コード例 #2
0
ファイル: edit.php プロジェクト: aberrios/WEBTHESGO
<?php

// ClanSphere 2010 - www.clansphere.net
// $Id$
$cs_lang = cs_translate('servers');
cs_scriptload('servers', 'javascript', 'js/servers.js');
include_once 'mods/servers/servers.class.php';
$data = array();
$objServers = Servers::__getInstance();
// Submit Post
if (isset($_POST['submit'])) {
    $servers_error = 0;
    $errormsg = $cs_lang['error_occurred'] . cs_html_br(1);
    $data['servers']['id'] = $_POST['id'];
    $data['create']['servers_name'] = $_POST['servers_name'];
    $data['create']['servers_ip'] = $_POST['servers_ip'];
    $data['create']['servers_port'] = $_POST['servers_port'];
    $data['create']['games_id'] = $_POST['games_id'];
    $data['create']['servers_info'] = $_POST['servers_info'];
    $data['create']['servers_slots'] = $_POST['servers_slots'];
    $data['create']['servers_type'] = $_POST['servers_type'];
    $data['create']['servers_stats'] = $_POST['servers_stats'];
    $data['create']['servers_class'] = $_POST['servers_class'];
    $data['create']['servers_query'] = $_POST['servers_query'];
    $data['create']['servers_order'] = $_POST['servers_order'];
    if (empty($data['create']['servers_name'])) {
        $servers_error++;
        $errormsg .= $cs_lang['no_name'] . cs_html_br(1);
    }
    if (empty($data['create']['servers_ip'])) {
        $servers_error++;
コード例 #3
0
ファイル: startup.php プロジェクト: aberrios/WEBTHESGO
<?php

// ClanSphere 2010 - www.clansphere.net
// $Id$
# Command order is important: jQuery is last to be loaded at first
cs_scriptload('jquery', 'javascript', 'csp_ajax.js', 1);
cs_scriptload('jquery', 'javascript', 'csp_func.js', 1);
cs_scriptload('jquery', 'javascript', 'jquery.js', 1);