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


PHP cs_abcode_clip函数代码示例

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


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

示例1: cs_redirect

    cs_redirect($cs_lang['remove_done'], 'computers', 'picture', 'id=' . $cs_computers_id);
} else {
    $data['head']['body'] = $cs_lang['body_picture'];
}
if (!empty($error) or empty($_POST['submit'])) {
    $data['head']['getmsg'] = cs_getmsg();
    $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_computers['max_width'] . ' px' . cs_html_br(1);
    $matches[2] .= $cs_lang['max_height'] . $op_computers['max_height'] . ' px' . cs_html_br(1);
    $matches[2] .= $cs_lang['max_size'] . cs_filesize($op_computers['max_size']) . cs_html_br(1);
    $matches[2] .= $cs_lang['filetypes'] . $return_types;
    $data['com']['abcode_clip'] = cs_abcode_clip($matches);
    $data['com']['id'] = $cs_computers_id;
    if (empty($computer_string)) {
        $data['pictures'][0]['thumb'] = $cs_lang['nopic'];
        $data['pictures'][0]['url_remove'] = '';
    } else {
        $run = 0;
        foreach ($computer_pics as $pic) {
            $link = cs_html_img('uploads/computers/thumb-' . $pic);
            $data['pictures'][$run]['thumb'] = cs_html_link('uploads/computers/picture-' . $pic, $link) . ' ';
            $remove = 'id=' . $cs_computers_id . '&delete=' . ($run + 1);
            $data['pictures'][$run]['url_remove'] = cs_link($cs_lang['remove'], 'computers', 'picture', $remove);
            $run++;
        }
    }
    echo cs_subtemplate(__FILE__, $data, 'computers', 'picture');
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:picture.php

示例2: cs_html_option

        $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);
    cs_sql_insert(__FILE__, 'categories', $categories_cells, $categories_save);
    if (!empty($files_gl['picture']['tmp_name'])) {
        $where = "categories_name = '" . cs_sql_escape($cs_categories['categories_name']) . "'";
        $getid = cs_sql_select(__FILE__, 'categories', 'categories_id', $where);
        $filename = 'picture-' . $getid['categories_id'] . '.' . $extension;
        cs_upload('categories', $filename, $files_gl['picture']['tmp_name']);
        $cs_categories2['categories_picture'] = $filename;
        $categories2_cells = array_keys($cs_categories2);
        $categories2_save = array_values($cs_categories2);
        cs_sql_update(__FILE__, 'categories', $categories2_cells, $categories2_save, $getid['categories_id']);
    }
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:create.php

示例3: cs_html_select

    }
    $data['clans']['country'] .= cs_html_select(0) . ' ' . cs_html_img('symbols/countries/' . $cs_clans['clans_country'] . '.png', 11, 16, 'id="' . $el_id . '"');
    $data['clans']['url'] = cs_secure($cs_clans['clans_url']);
    $data['clans']['since'] = cs_dateselect('since', 'date', $cs_clans['clans_since']);
    $data['clans']['password'] = cs_secure($cs_clans['clans_pwd']);
    $data['users']['nick'] = $users_nick;
    if (empty($cs_clans['clans_picture'])) {
        $data['clans']['pic'] = $cs_lang['nopic'];
    } else {
        $place = 'uploads/clans/' . $cs_clans['clans_picture'];
        $size = getimagesize($cs_main['def_path'] . '/' . $place);
        $data['clans']['pic'] = cs_html_img($place, $size[1], $size[0]);
    }
    $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_clans['max_width'] . ' px' . cs_html_br(1);
    $matches[2] .= $cs_lang['max_height'] . $op_clans['max_height'] . ' px' . cs_html_br(1);
    $matches[2] .= $cs_lang['max_size'] . cs_filesize($op_clans['max_size']) . cs_html_br(1);
    $matches[2] .= $cs_lang['filetypes'] . $return_types;
    $data['clans']['clip'] = cs_abcode_clip($matches);
    $data['data']['id'] = $clans_id;
    echo cs_subtemplate(__FILE__, $data, 'clans', 'edit');
} else {
    $clans_cells = array_keys($cs_clans);
    $clans_save = array_values($cs_clans);
    cs_sql_update(__FILE__, 'clans', $clans_cells, $clans_save, $clans_id);
    cs_redirect($cs_lang['changes_done'], 'clans');
}
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:edit.php

示例4: cs_translate

<?php

// ClanSphere 2010 - www.clansphere.net
// $Id$
$cs_lang = cs_translate('database');
$sql_content = '';
$modules = cs_checkdirs('mods');
$tables = 0;
foreach ($modules as $mod) {
    if ((isset($account['access_' . $mod['dir'] . '']) or $mod['dir'] == 'captcha' or $mod['dir'] == 'pictures') and !empty($mod['tables'][0])) {
        foreach ($mod['tables'] as $table) {
            $tables++;
            $sql_content .= '{optimize} {pre}_' . $table . ";\n";
        }
    }
}
$sql_content = substr($sql_content, 0, -1);
$data['action']['form'] = cs_url('database', 'import');
$matches[1] = $tables;
$matches[2] = '<textarea name="text" cols="50" rows="12" id="text">' . $sql_content . '</textarea>';
$data['optimize']['clip'] = cs_abcode_clip($matches);
echo cs_subtemplate(__FILE__, $data, 'database', 'optimize');
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:22,代码来源:optimize.php

示例5: cs_html_br

    $matches[1] = $cs_lang['secure_stages'];
    $matches[2] = $cs_lang['stage_1'] . $cs_lang['stage_1_text'] . cs_html_br(1);
    $matches[2] .= $cs_lang['stage_2'] . $cs_lang['stage_2_text'] . cs_html_br(1);
    $matches[2] .= $cs_lang['stage_3'] . $cs_lang['stage_3_text'] . cs_html_br(1);
    $matches[2] .= $cs_lang['stage_4'] . $cs_lang['stage_4_text'];
    $data['squads']['secure_clip'] = cs_abcode_clip($matches);
    $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_squads['max_width'] . ' px' . cs_html_br(1);
    $matches[2] .= $cs_lang['max_height'] . $op_squads['max_height'] . ' px' . cs_html_br(1);
    $matches[2] .= $cs_lang['max_size'] . cs_filesize($op_squads['max_size']) . cs_html_br(1);
    $matches[2] .= $cs_lang['filetypes'] . $return_types;
    $data['squads']['picup_clip'] = cs_abcode_clip($matches);
    if (empty($cs_squads['squads_picture'])) {
        $data['squads']['current_pic'] = $cs_lang['nopic'];
    } else {
        $place = 'uploads/squads/' . $cs_squads['squads_picture'];
        $size = getimagesize($cs_main['def_path'] . '/' . $place);
        $data['squads']['current_pic'] = cs_html_img($place, $size[1], $size[0]);
        $data['if']['advanced'] = TRUE;
    }
    $data['squads']['id'] = $squads_id;
    echo cs_subtemplate(__FILE__, $data, 'squads', 'edit');
} else {
    $squads_cells = array_keys($cs_squads);
    $squads_save = array_values($cs_squads);
    cs_sql_update(__FILE__, 'squads', $squads_cells, $squads_save, $squads_id);
    cs_redirect($cs_lang['changes_done'], 'squads');
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:edit.php

示例6: cs_getmsg

} else {
    $data['head']['text'] = $cs_lang['remove_done'];
}
$data['head']['message'] = cs_getmsg();
$data['file']['id'] = $cs_files_id;
if (!empty($error) or empty($_POST['submit'])) {
    $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['upload']['clip'] = cs_abcode_clip($matches);
    $data['pictures'] = array();
    if (empty($file_string)) {
        $data['if']['nopics'] = true;
    } else {
        $data['if']['nopics'] = false;
        $run = 1;
        $i = 0;
        foreach ($file_pics as $pic) {
            $data['pictures'][$i]['sad'] = $data['pictures'][$i]['thumbpath'] = 'uploads/files/thumb-' . $pic;
            $data['pictures'][$i]['picpath'] = 'uploads/files/picture-' . $pic;
            $data['pictures'][$i]['id'] = $run;
            $run++;
            $i++;
        }
    }
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:picture.php

示例7: while

    $data['data']['folders_access'] = '';
    while ($levels < 6) {
        $folders['folders_access'] == $levels ? $sel = 1 : ($sel = 0);
        $data['data']['folders_access'] .= cs_html_option($levels . ' - ' . $cs_lang['lev_' . $levels], $levels, $sel);
        $levels++;
    }
    $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'] . $option['max_width'] . ' px' . cs_html_br(1);
    $matches[2] .= $cs_lang['max_height'] . $option['max_height'] . ' px' . cs_html_br(1);
    $matches[2] .= $cs_lang['max_size'] . cs_filesize($option['max_size']) . cs_html_br(1);
    $matches[2] .= $cs_lang['filetypes'] . $return_types;
    $data['data']['info_clip'] = cs_abcode_clip($matches);
    $checked = 'checked="checked"';
    $data['check']['vote'] = empty($adv_vote) ? '' : $checked;
    $data['check']['close'] = empty($adv_close) ? '' : $checked;
    $data['check']['dl'] = empty($adv_dl) ? '' : $checked;
    $data['check']['dlo'] = empty($adv_dlo) ? '' : $checked;
    $data['data']['folders_name'] = cs_secure($data['data']['folders_name']);
    $data['data']['folders_url'] = cs_secure($data['data']['folders_url']);
    $data['data']['folders_text'] = cs_secure($data['data']['folders_text']);
    echo cs_subtemplate(__FILE__, $data, 'usersgallery', 'folders_create');
} else {
    $folder_cells = array_keys($folders);
    $folder_save = array_values($folders);
    cs_sql_insert(__FILE__, 'folders', $folder_cells, $folder_save);
    if (!empty($files_gl['picture']['tmp_name'])) {
        $id = cs_sql_insertid(__FILE__);
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:folders_create.php

示例8: empty

    for ($run = 0; $run < $showcount; $run++) {
        $data['show'][$run]['run'] = $run;
        $data['show'][$run]['value'] = empty($_POST['show_' . $run]) ? '' : $_POST['show_' . $run];
        $data['show'][$run]['axx_value'] = empty($_POST['showaccess_' . $run]) ? '' : $_POST['showaccess_' . $run];
    }
    $data['value']['showcount'] = $showcount;
    $data['value']['modname'] = empty($_POST['modname']) ? '' : $_POST['modname'];
    $data['value']['moddir'] = empty($_POST['moddir']) ? '' : $_POST['moddir'];
    $data['value']['modversion'] = empty($_POST['modversion']) ? '' : $_POST['modversion'];
    $data['value']['description'] = empty($_POST['description']) ? '' : $_POST['description'];
    $var = cs_datepost('release', 'date');
    $data['value']['dateselect'] = empty($var) ? cs_datereal('Y-m-d') : $var;
    $data['value']['creator'] = empty($_POST['creator']) ? '' : $_POST['creator'];
    $data['value']['team'] = empty($_POST['team']) ? '' : $_POST['team'];
    $data['value']['homepage'] = empty($_POST['homepage']) ? '' : $_POST['homepage'];
    $data['value']['icon'] = empty($_POST['icon']) ? '' : $_POST['icon'];
    $clip[1] = $cs_lang['help'];
    $clip[2] = $cs_lang['helptext'];
    $data['help']['clip'] = cs_abcode_clip($clip);
    $sel = 'selected="selected"';
    $data['selected']['categories_no'] = empty($_POST['categories']) ? $sel : '';
    $data['selected']['categories_yes'] = empty($_POST['categories']) ? '' : $sel;
    $data['selected']['protected_no'] = empty($_POST['protected']) ? $sel : '';
    $data['selected']['protected_yes'] = empty($_POST['protected']) ? '' : $sel;
    $data['form']['url'] = cs_url('modules', 'create');
    $data['input']['dateselect'] = cs_dateselect('release', 'date', $data['value']['dateselect']);
    echo cs_subtemplate(__FILE__, $data, 'modules', 'create');
} else {
    cs_cache_clear();
    cs_redirect($cs_lang['create_done'], 'modules', 'roots');
}
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:create.php

示例9: cs_categories_dropdown2

if (!empty($errormsg) or isset($_POST['preview']) or !isset($_POST['submit'])) {
    $data['create']['cat_drop'] = cs_categories_dropdown2('board', $data['create']['categories_id']);
    $data['create']['ab_box'] = cs_abcode_features('board_text');
    $levels = 0;
    $sel = 0;
    while ($levels < 6) {
        $data['create']['board_access'] == $levels ? $sel = 1 : ($sel = 0);
        $data['access'][$levels]['access_level'] = cs_html_option($levels . ' - ' . $cs_lang['lev_' . $levels], $levels, $sel);
        $levels++;
    }
    $matches[1] = $cs_lang['secure_stages'];
    $matches[2] = $cs_lang['stage_1'] . $cs_lang['stage_1_text'] . cs_html_br(1);
    $matches[2] .= $cs_lang['stage_2'] . $cs_lang['stage_2_text'] . cs_html_br(1);
    $matches[2] .= $cs_lang['stage_3'] . $cs_lang['stage_3_text'] . cs_html_br(1);
    $matches[2] .= $cs_lang['stage_4'] . $cs_lang['stage_4_text'];
    $data['create']['sec_level'] = cs_abcode_clip($matches);
    $op_squads = cs_sql_option(__FILE__, 'squads');
    $data['create']['squad_lang'] = $cs_lang[$op_squads['label']];
    $data_squads = cs_sql_select(__FILE__, 'squads', 'squads_name,squads_id', 'squads_own=1', 'squads_name', 0, 0);
    $data['create']['squad_drop'] = cs_dropdown('squads_id', 'squads_name', $data_squads, $data['create']['squads_id']);
} else {
    global $cs_db;
    if (!empty($data['create']['board_pwd'])) {
        if ($cs_db['hash'] == 'md5') {
            $data['create']['board_pwd'] = md5($data['create']['board_pwd']);
        } elseif ($cs_db['hash'] == 'sha1') {
            $data['create']['board_pwd'] = sha1($data['create']['board_pwd']);
        }
    }
    $board_cells = array_keys($data['create']);
    $board_save = array_values($data['create']);
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:create.php

示例10: cs_html_br

    }
    $matches_l[2] = $cs_lang['max_width'] . $op_partner['def_width_listimg'] . ' px' . cs_html_br(1);
    $matches_l[2] .= $cs_lang['max_height'] . $op_partner['def_height_listimg'] . ' px' . cs_html_br(1);
    $matches_l[2] .= $cs_lang['max_size'] . cs_filesize($op_partner['max_size_listimg']) . cs_html_br(1);
    $matches_l[2] .= $cs_lang['filetypes'] . $return_types;
    $data['clip']['limg'] = cs_abcode_clip($matches_l);
    $matches_r[1] = $cs_lang['infobox'];
    $return_types = '';
    foreach ($img_filetypes as $add => $value) {
        $return_types .= empty($return_types) ? $add : ', ' . $add;
    }
    $matches_r[2] = $cs_lang['max_width'] . $op_partner['def_width_rotimg'] . ' px' . cs_html_br(1);
    $matches_r[2] .= $cs_lang['max_height'] . $op_partner['def_height_rotimg'] . ' px' . cs_html_br(1);
    $matches_r[2] .= $cs_lang['max_size'] . cs_filesize($op_partner['max_size_rotimg']) . cs_html_br(1);
    $matches_r[2] .= $cs_lang['filetypes'] . $return_types;
    $data['clip']['rimg'] = cs_abcode_clip($matches_r);
    echo cs_subtemplate(__FILE__, $data, 'partner', 'create');
} elseif (!empty($_POST['submit']) && empty($error)) {
    $cells = array('partner_name', 'categories_id', 'partner_url', 'partner_alt', 'partner_text', 'partner_priority');
    $values = array($_POST['partner_name'], $categories_id, $_POST['partner_url'], $_POST['partner_alt'], $_POST['partner_text'], $_POST['partner_priority']);
    cs_sql_insert(__FILE__, 'partner', $cells, $values);
    // upload navlist-image
    $where = "partner_name = '" . cs_sql_escape($data['partner']['partner_name']) . "'";
    $getid = cs_sql_select(__FILE__, 'partner', 'partner_id', $where);
    if (!empty($files['partner_nimg']['tmp_name'])) {
        $filename_navimg = 'navbanner-' . $getid['partner_id'] . '.' . $extension_nimg;
        cs_upload('partner', $filename_navimg, $files['partner_nimg']['tmp_name'], 0);
        $cells_navimg = array('partner_nimg');
        $values_navimg = array($filename_navimg);
        cs_sql_update(__FILE__, 'partner', $cells_navimg, $values_navimg, $getid['partner_id']);
    }
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:create.php

示例11: pasteError

function pasteError($err)
{
    $cs_err[1] = 'ERROR....';
    $cs_err[2] = $err;
    echo cs_abcode_clip($cs_err);
}
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:6,代码来源:storage.php

示例12: cs_html_br

    if ($pwdchars < 4) {
        $error .= $cs_lang['short_pwd'] . cs_html_br(1);
    }
    if ($pwd['new'] != $pwd['again']) {
        $error .= $cs_lang['not_match'] . cs_html_br(1);
    }
} else {
    $pwd = array('current' => '', 'new' => '', 'again' => '');
}
if (!isset($_POST['submit'])) {
    $data['head']['body'] = $cs_lang['change_password'];
} elseif (!empty($error)) {
    $data['head']['body'] = $error;
}
if (!empty($error) or !isset($_POST['submit'])) {
    $data['users']['current_pwd'] = '';
    $data['users']['new_pwd'] = '';
    $data['users']['pwd_again'] = '';
    $matches[1] = $cs_lang['secure_stages'];
    $matches[2] = $cs_lang['stage_1'] . $cs_lang['stage_1_text'] . cs_html_br(1);
    $matches[2] .= $cs_lang['stage_2'] . $cs_lang['stage_2_text'] . cs_html_br(1);
    $matches[2] .= $cs_lang['stage_3'] . $cs_lang['stage_3_text'] . cs_html_br(1);
    $matches[2] .= $cs_lang['stage_4'] . $cs_lang['stage_4_text'];
    $data['users']['secure_clip'] = cs_abcode_clip($matches);
    echo cs_subtemplate(__FILE__, $data, 'users', 'password');
} else {
    $users_cells = array('users_pwd');
    $users_save = array($new_pwd);
    cs_sql_update(__FILE__, 'users', $users_cells, $users_save, $account['users_id']);
    cs_redirect($cs_lang['changes_done'], 'users', 'home');
}
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:password.php

示例13: cs_explorer_path

$dir = cs_explorer_path($target, 'raw');
$lsd = cs_explorer_path($dir, 'escape');
$files_gl = cs_files();
$data = array();
if (empty($_POST['submit'])) {
    $post_max_size = str_replace('M', ' Mb', ini_get('post_max_size'));
    $data['lang']['max_upload'] = sprintf($cs_lang['max_upload'], $post_max_size);
    #$data['if']['modsdir'] = substr($dir,0,5) == 'mods/' && strpos(substr($dir,5),'/') == strrpos(substr($dir,5),'/') && empty($_POST['accessadd']) ? true : false;
    $data['if']['modsdir'] = false;
    $data['var']['dir'] = $dir;
    $data['var']['name'] = empty($_POST['name']) ? '' : str_replace('..', '', $_POST['name']);
    $data['icn']['dir'] = cs_html_img('symbols/files/filetypes/dir.gif', 16, 16);
    #$data['if']['accessentry'] = isset($_POST['accessadd']) && file_exists($dir . '/access.php') ? true : false;
    $data['if']['accessentry'] = false;
    $clip = array(1 => $cs_lang['infobox'], 2 => nl2br($cs_lang['possible']));
    $data['clip']['info'] = cs_abcode_clip($clip);
    echo cs_subtemplate(__FILE__, $data, 'explorer', 'upload');
} else {
    $filename = $dir . '/';
    $extension = strtolower(substr(strrchr($files_gl['file']['name'], '.'), 1));
    if (empty($_POST['name'])) {
        $filename .= str_replace('..', '', $files_gl['file']['name']);
        $action = substr($files_gl['file']['name'], 0, strlen($files_gl['file']['name']) - strlen($extension) - 1);
    } else {
        $filename .= str_replace('..', '', $_POST['name']);
        $filename .= '.' . strtolower($extension);
        $action = $_POST['name'];
    }
    $message = move_uploaded_file($files_gl['file']['tmp_name'], $filename) ? $cs_lang['success'] : $cs_lang['error_upload'];
    cs_redirect($message, 'explorer', 'roots', 'dir=' . $lsd);
    /*
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:upload.php

示例14: elseif

    $data['head']['body'] = $cs_lang['body_create'];
} elseif (!empty($error)) {
    $data['head']['body'] = $error;
}
if (!empty($error) or !isset($_POST['submit'])) {
    $data['linkus'] = $cs_linkus;
    $matches[1] = $cs_lang['pic_infos'];
    $return_types = '';
    foreach ($img_filetypes as $add => $value) {
        $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['linkus']['picup_clip'] = cs_abcode_clip($matches);
    echo cs_subtemplate(__FILE__, $data, 'linkus', 'create');
} else {
    $linkus_cells = array_keys($cs_linkus);
    $linkus_save = array_values($cs_linkus);
    cs_sql_insert(__FILE__, 'linkus', $linkus_cells, $linkus_save);
    if (!empty($files_gl['symbol']['tmp_name'])) {
        $where = "linkus_name = '" . cs_sql_escape($cs_linkus['linkus_name']) . "'";
        $getid = cs_sql_select(__FILE__, 'linkus', 'linkus_id', $where);
        $filename = $getid['linkus_id'] . '.' . $extension;
        cs_upload('linkus', $filename, $files_gl['symbol']['tmp_name']);
    }
    $linkus_cells = array('linkus_banner');
    $linkus_save = array($filename);
    cs_sql_update(__FILE__, 'linkus', $linkus_cells, $linkus_save, $getid['linkus_id']);
    cs_redirect($cs_lang['create_done'], 'linkus');
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:create.php

示例15: foreach

    foreach ($languages as $lang) {
        $lang['name'] == $create['users_lang'] ? $sel = 1 : ($sel = 0);
        $data['lang']['opts'] .= cs_html_option($lang['name'], $lang['name'], $sel);
    }
    $where = "access_clansphere <= '" . $account['access_clansphere'] . "'";
    $access_data = cs_sql_select(__FILE__, 'access', 'access_name, access_id, access_clansphere', $where, 'access_name', 0, 0);
    $data['access']['dropdown'] = cs_dropdown('access_id', 'access_name', $access_data, $create['access_id']);
    if (empty($conv_joinus)) {
        $data['if']['simple'] = TRUE;
        $data['if']['convert'] = FALSE;
        $matches[1] = $cs_lang['secure_stages'];
        $matches[2] = $cs_lang['stage_1'] . $cs_lang['stage_1_text'] . cs_html_br(1);
        $matches[2] .= $cs_lang['stage_2'] . $cs_lang['stage_2_text'] . cs_html_br(1);
        $matches[2] .= $cs_lang['stage_3'] . $cs_lang['stage_3_text'] . cs_html_br(1);
        $matches[2] .= $cs_lang['stage_4'] . $cs_lang['stage_4_text'];
        $data['clip']['pw_sec'] = cs_abcode_clip($matches);
    } else {
        $data['if']['simple'] = FALSE;
        $data['if']['convert'] = TRUE;
        $code_id = generate_code(8);
        $data['hidden']['password'] = $code_id;
        $data['hidden']['conv'] = $conv_joinus;
    }
    $data['check']['send_mail'] = empty($create_['send_mail']) ? '' : 'checked="checked"';
    $data['hidden']['flag'] = $create['users_country'];
    echo cs_subtemplate(__FILE__, $data, 'users', 'create');
} else {
    $create['users_timezone'] = empty($cs_main['def_timezone']) ? 0 : $cs_main['def_timezone'];
    $create['users_dstime'] = empty($cs_main['def_dstime']) ? 0 : $cs_main['def_dstime'];
    $users_id = create_user($create['access_id'], $create['users_nick'], $create_['password'], $create['users_lang'], $create['users_email'], $create['users_country'], $create['users_timezone'], $create['users_dstime']);
    if (!empty($conv_joinus) and !empty($users_id)) {
开发者ID:aberrios,项目名称:WEBTHESGO,代码行数:31,代码来源:create.php


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