本文整理汇总了PHP中convSpace函数的典型用法代码示例。如果您正苦于以下问题:PHP convSpace函数的具体用法?PHP convSpace怎么用?PHP convSpace使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了convSpace函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: while
$i = $entrys - ($page - 1) * $maxgb;
if (_rows($qry)) {
while ($get = _fetch($qry)) {
if ($get['hp']) {
$gbhp = show(_hpicon, array("hp" => $get['hp']));
} else {
$gbhp = "";
}
if ($get['email']) {
$gbemail = show(_emailicon, array("email" => eMailAddr($get['email'])));
} else {
$gbemail = "";
}
if ($get['reg'] == $userid || permission("gb")) {
$edit = show("page/button_edit_single", array("id" => $get['id'], "action" => "action=do&what=edit", "title" => _button_title_edit));
$delete = show("page/button_delete_single", array("id" => $get['id'], "action" => "action=do&what=delete", "title" => _button_title_del, "del" => convSpace(_confirm_del_entry)));
$comment = show(_gb_commenticon, array("id" => $get['id'], "title" => _button_title_comment));
} else {
$delete = "";
$edit = "";
$comment = "";
}
if (permission("gb") && $gb_activ == 1) {
$public = $get['public'] == 1 ? '<a href="?action=do&what=unset&id=' . $get['id'] . '"><img src="../inc/images/public.gif" alt="" title="nicht veröffentlichen" align="top" style="padding-top:1px"/></a>' : '<a href="?action=do&what=set&id=' . $get['id'] . '"><img src="../inc/images/nonpublic.gif" alt="" title="veröffentlichen" align="top" style="padding-top:1px"/></a>';
} else {
$public = "";
}
if ($get['reg'] == "0") {
$gbtitel = show(_gb_titel_noreg, array("postid" => $i, "nick" => re($get['nick']), "edit" => $edit, "delete" => $delete, "comment" => $comment, "public" => $public, "email" => $gbemail, "datum" => date("d.m.Y", $get['datum']), "uhr" => _uhr, "zeit" => date("H:i", $get['datum']), "hp" => $gbhp));
} else {
$gbtitel = show(_gb_titel, array("postid" => $i, "nick" => autor($get['reg']), "edit" => $edit, "delete" => $delete, "uhr" => _uhr, "comment" => $comment, "public" => $public, "id" => $get['reg'], "email" => $gbemail, "datum" => date("d.m.Y", $get['datum']), "zeit" => date("H:i", $get['datum']), "hp" => $gbhp));
示例2: error
/////////// ADMINNAVI \\\\\\\\\
// Typ: contentmenu
// Rechte: permission('editsquads')
///////////////////////////////
if (_adminMenu != 'true') {
exit;
}
$where = $where . ': ' . _member_admin_header;
if (!permission("editsquads")) {
$show = error(_error_wrong_permissions, 1);
} else {
$qry = db("SELECT * FROM " . $db['squads'] . " ORDER BY pos");
while ($get = _fetch($qry)) {
$edit = show("page/button_edit_single", array("id" => $get['id'], "action" => "admin=squads&do=edit", "title" => _button_title_edit));
$delete = show("page/button_delete_single", array("id" => $get['id'], "action" => "admin=squads&do=delete", "title" => _button_title_del, "del" => convSpace(_confirm_del_team)));
$icon = show(_gameicon, array("icon" => $get['icon']));
$class = $color % 2 ? "contentMainSecond" : "contentMainFirst";
$color++;
$squads .= show($dir . "/squads_show", array("squad" => '<a href="../squads/?action=shows&id=' . $get['id'] . '" style="display:block">' . re($get['name']) . '</a>', "game" => re($get['game']), "icon" => $icon, "edit" => $edit, "class" => $class, "delete" => $delete));
}
$show = show($dir . "/squads", array("memberadminheader" => _member_admin_header, "squad" => _member_admin_squad, "game" => _member_admin_game, "delete" => _deleteicon_blank, "edit" => _editicon_blank, "add" => _member_admin_add_header, "squads" => $squads));
if ($_GET['do'] == "add") {
$qrynav = db("SELECT s2.*, s1.name AS katname, s1.placeholder FROM " . $db['navi_kats'] . " AS s1 LEFT JOIN " . $db['navi'] . " AS s2 ON s1.`placeholder` = s2.`kat`\n \t\tORDER BY s1.name, s2.pos");
while ($getnav = _fetch($qrynav)) {
if ($thiskat != $getnav['kat']) {
$navigation .= '
<option class="dropdownKat" value="lazy">' . re($getnav['katname']) . '</option>
<option value="' . re($getnav['placeholder']) . '-1">-> ' . _admin_first . '</option>
';
}
示例3: elseif
} elseif ($_GET['do'] == "edit") {
$akt = preg_replace("#.gif#Uis", "", $_GET['id']);
$show = show($dir . "/form_smileys_edit", array("head" => _smileys_head_edit, "bbcode" => _smileys_bbcode, "id" => $_GET['id'], "value" => _button_value_edit, "akt" => $akt));
} elseif ($_GET['do'] == "editsmiley") {
if (empty($_POST['bbcode'])) {
$show = error(_smileys_error_bbcode);
} else {
$spfad = "../inc/images/smileys/";
if (!file_exists($pfad . $_POST['bbcode'] . ".gif")) {
@rename($spfad . $_GET['id'], $spfad . $_POST['bbcode'] . ".gif");
$show = info(_smileys_edited, "?admin=smileys");
} else {
$show = error(_admin_smiley_exists);
}
}
} else {
$files = get_files('../inc/images/smileys');
for ($i = 0; $i < count($files); $i++) {
if ($files[$i] != '^^.gif') {
$class = $color % 2 ? "contentMainSecond" : "contentMainFirst";
$color++;
$smileys = "../inc/images/smileys/" . $files[$i];
$bbc = ":" . preg_replace("=.gif=Uis", "", $files[$i]) . ":";
$edit = show("page/button_edit_single", array("id" => $files[$i], "action" => "admin=smileys&do=edit", "title" => _button_title_edit));
$delete = show("page/button_delete_single", array("id" => $files[$i], "action" => "admin=smileys&do=delete", "title" => _button_title_del, "del" => convSpace(_confirm_del_smiley)));
$show_ .= show($dir . "/smileys_show", array("bbcode" => $bbc, "smiley" => $smileys, "class" => $class, "del" => $delete, "edit" => $edit, "id" => $files[$i]));
}
}
$show = show($dir . "/smileys", array("head" => _smileys_head, "bbcode" => _smileys_bbcode, "show" => $show_, "info" => _smileys_info, "customs" => _smileys_customs, "normals" => _smileys_normals, "add" => _smileys_head_add, "smiley" => _smileys_smiley));
}
}
示例4: userpic
if ($get['pnmail'] == 1) {
$pnm = "checked=\"checked\"";
}
$pic = userpic($get['id']);
$avatar = useravatar($get['id']);
if (!preg_match("#nopic#", $pic)) {
$deletepic = "| " . _profil_delete_pic;
}
if (!preg_match("#noavatar#", $avatar)) {
$deleteava = "| " . _profil_delete_ava;
}
$gmaps = show('membermap/geocoder', array());
if ($userid == $rootAdmin) {
$delete = _profil_del_admin;
} else {
$delete = show("page/button_delete_account", array("id" => $get['id'], "action" => "action=editprofile&do=delete", "value" => _button_title_del_account, "del" => convSpace(_confirm_del_account)));
}
$show = show($dir . "/edit_profil", array("hardware" => _profil_hardware, "hphead" => _profil_hp, "country" => show_countrys($get['country']), "pcountry" => _profil_country, "about" => _profil_about, "picturehead" => _profil_pic, "contact" => _profil_contact, "preal" => _profil_real, "pnick" => _nick, "pemail1" => _email, "php" => _hp, "pava" => _profil_avatar, "pbday" => _profil_bday, "psex" => _profil_sex, "pname" => _loginname, "ppwd" => _new_pwd, "picq" => _icq, "psig" => _profil_sig, "ppic" => _profil_ppic, "phlswid" => _hlswid, "pcity" => _profil_city, "city" => re($get['city']), "psteamid" => _steamid, "nletter" => _profil_nletter, "pnmail" => _profil_pnmail, "pnl" => $pnl, "pnm" => $pnm, "pwd" => "", "dropdown_age" => $dropdown_age, "ava" => $avatar, "hp" => re($get['hp']), "gmaps" => $gmaps, "nick" => re($get['nick']), "name" => re($get['user']), "gmaps_koord" => re($get['gmaps_koord']), "rlname" => re($get['rlname']), "bdayday" => $bdayday, "bdaymonth" => $bdaymonth, "bdayyear" => $bdayyear, "sex" => $sex, "email" => re($get['email']), "icqnr" => $icq, "sig" => re_bbcode($get['signatur']), "hlswid" => $get['hlswid'], "steamid1" => $steamid1, "steamid2" => $steamid2, "steamid3" => $steamid3, "clan" => $clan, "pic" => $pic, "editpic" => _profil_edit_pic, "editava" => _profil_edit_ava, "deleteava" => $deleteava, "deletepic" => $deletepic, "favos" => _profil_favos, "pich" => _profil_ich, "pposition" => _profil_position, "pstatus" => _profil_status, "position" => getrank($get['id']), "value" => _button_value_edit, "status" => $status, "lang" => $language, "sonst" => _profil_sonst, "custom_about" => $custom_about, "custom_contact" => $custom_contact, "custom_favos" => $custom_favos, "custom_hardware" => $custom_hardware, "ich" => re_bbcode($get['beschreibung']), "del" => _profil_del_account, "delete" => $delete));
}
$index = show($dir . "/edit", array("profilhead" => _profil_edit_head, "editgallery" => _profil_edit_gallery_link, "editprofil" => _profil_edit_profil_link, "nick" => autor($get['id']), "show" => $show));
}
}
break;
case 'msg':
$where = _site_msg;
if ($chkMe == "unlogged") {
$index = error(_error_have_to_be_logged, 1);
} else {
if ($_GET['do'] == "show") {
$qry = db("SELECT * FROM " . $db['msg'] . "\n \t\t\t\t\t WHERE id = " . intval($_GET['id']));
$get = _fetch($qry);
示例5: get_files
$files = get_files("images/");
$t = 1;
$cnt = 0;
for ($i = 0; $i < count($files); $i++) {
if (preg_match("#^" . $_GET['id'] . "_(.*?).(gif|jpg|jpeg|png)#", strtolower($files[$i])) != FALSE) {
$tr1 = "";
$tr2 = "";
if ($t == 0 || $t == 1) {
$tr1 = "<tr>";
}
if ($t == $gallery) {
$tr2 = "</tr>";
$t = 0;
}
if (permission("gallery")) {
$del = show("page/button_delete_gallery", array("id" => "", "action" => "admin=gallery&do=delete&pic=" . $files[$i], "title" => _button_title_del, "del" => convSpace(_confirm_del_galpic)));
} else {
$del = "";
}
$class = $color % 2 ? "contentMainSecond" : "contentMainFirst";
$color++;
$show .= show($dir . "/show_gallery", array("img" => gallery_size($files[$i]), "tr1" => $tr1, "max" => $gallery, "width" => intval(round(100 / $gallery)), "del" => $del, "tr2" => $tr2));
$t++;
$cnt++;
}
}
if (is_float($cnt / $gallery)) {
for ($e = $t; $e <= $gallery; $e++) {
$end .= '<td class="contentMainFirst"></td>';
}
$end = $end . "</tr>";
示例6: show
$set = 0;
} else {
$shown = _noicon;
$set = 1;
}
$show_ .= show($dir . "/navi_show", array("class" => $class, "name" => $type, "id" => $get['id'], "set" => $set, "url" => cut($get['url'], 34), "kat" => re($get['katname']), "shown" => $shown, "wichtig" => $wichtig, "edit" => $edit, "del" => $delete));
}
unset($color);
$qry = db("SELECT * FROM " . $db['navi_kats'] . " ORDER BY `name` ASC");
while ($get = _fetch($qry)) {
$class = $color % 2 ? 'contentMainFirst' : 'contentMainSecond';
$color++;
$type = re($get['name']);
if ($get['placeholder'] == 'nav_admin') {
$edit = '';
$delete = '';
} else {
$edit = show("page/button_edit_single", array("id" => $get['id'], "action" => "admin=navi&do=editkat", "title" => _button_title_edit));
$delete = show("page/button_delete_single", array("id" => $get['id'], "action" => "admin=navi&do=deletekat", "title" => _button_title_del, "del" => convSpace(_confirm_del_menu)));
}
$show_kats .= show($dir . "/navi_kats", array("name" => re($get['name']), "intern" => empty($get['intern']) ? _noicon : _yesicon, "id" => $get['id'], "set" => empty($get['intern']) ? 1 : 0, "placeholder" => str_replace('nav_', '', re($get['placeholder'])), "class" => $class, "edit" => $edit, "del" => $delete));
}
$show = show($dir . "/navi", array("show" => $show_, "intern" => _config_forum_intern, "name" => _navi_name, "info" => _navi_info, "kat" => _config_newskats_kat, "placeholder" => _placeholder, "head_kat" => _menu_kats_head, "add_kat" => _menu_add_kat, "show_kats" => $show_kats, "url" => _navi_url, "intern" => _internal, "standard" => _standard_link_do, "shown" => _navi_shown, "head" => _navi_head, "add" => _navi_add_head, "type" => _navi_type, "wichtig" => _navi_wichtig, "edit" => _editicon_blank, "del" => _deleteicon_blank));
}
}
}
}
}
}
}
}
示例7: db
} else {
$page = 1;
}
$max_comments = 100000;
$qryc = db("SELECT * FROM " . $sql_prefix . "events_comments \n\t\t\t\tWHERE eid = '" . $get['id'] . "' \n\t\t\t\tORDER BY 'datum' DESC LIMIT " . ($page - 1) * $max_comments . "," . $max_comments . "\n\t\t\t\t");
$entrys = $kommentare;
$i = $entrys - ($page - 1) * $max_comments;
while ($getc = _fetch($qryc)) {
if ($getc['hp']) {
$hp = show(_hpicon, array("hp" => $getc['hp']));
} else {
$hp = "";
}
if ($chkMe != 'unlogged' && $getc['reg'] == $userid || permission("editkalender")) {
$edit = show("page/button_edit_single", array("id" => $get['id'], "action" => "action=show&w=k&do=edit&cid=" . $getc['id'], "title" => _button_title_edit));
$delete = show("page/button_delete_single", array("id" => $_GET['id'], "action" => "action=show&w=k&do=delete&cid=" . $getc['id'], "title" => _button_title_del, "del" => convSpace(_confirm_del_entry)));
} else {
$edit = "";
$delete = "";
}
if ($getc['reg'] == "0") {
if ($getc['hp']) {
$hp = show(_hpicon_forum, array("hp" => $getc['hp']));
} else {
$hp = "";
}
if ($getc['email']) {
$email = '<br />' . show(_emailicon_forum, array("email" => eMailAddr($getc['email'])));
} else {
$email = "";
}
示例8: show
for ($i = 1; $i <= 100; $i++) {
$option .= "<option value=\"" . $i . "\">" . $i . "</option>";
}
$show = show($dir . "/form_gallery", array("head" => _gallery_admin_head, "gallery" => _gallery_gallery, "beschr" => _beschreibung, "value" => _error_fwd, "count" => _gallery_count, "option" => $option));
} else {
$qry = db("SELECT * FROM " . $db['gallery'] . "\n ORDER BY id DESC");
while ($get = _fetch($qry)) {
$files = get_files("../gallery/images/");
$cnt = 0;
for ($i = 0; $i < count($files); $i++) {
if (preg_match("#^" . $get['id'] . "_(.*?).(gif|jpg|jpeg|png)#", strtolower($files[$i])) != FALSE) {
$cnt++;
}
}
$edit = show("page/button_edit_single", array("id" => $get['id'], "action" => "admin=gallery&do=edit", "title" => _button_title_edit));
$del = show("page/button_delete_single", array("id" => $get['id'], "action" => "admin=gallery&do=delgal", "title" => _button_title_del, "del" => convSpace(_confirm_del_gallery)));
$new = show(_gal_newicon, array("id" => $get['id'], "titel" => _button_value_newgal));
if ($cnt == 1) {
$cntpics = _gallery_image;
} else {
$cntpics = _gallery_images;
}
$class = $color % 2 ? "contentMainSecond" : "contentMainFirst";
$color++;
$show .= show($dir . "/gallery_show", array("link" => re($get['kat']), "class" => $class, "del" => $del, "edit" => $edit, "new" => $new, "images" => $cntpics, "id" => $get['id'], "beschreibung" => bbcode($get['beschreibung']), "cnt" => $cnt));
}
$show = show($dir . "/gallery", array("show" => $show, "head" => _gallery_head, "add" => _gallery_show_admin));
}
} else {
$show = error(_error_wrong_permissions, 1);
}
示例9: show
$edit = show("page/button_edit_single", array("id" => $getk['id'], "action" => "admin=forum&do=editsubkat", "title" => _button_title_edit));
$delete = show("page/button_delete_single", array("id" => $getk['id'], "action" => "admin=forum&do=deletesubkat", "title" => _button_title_del, "del" => convSpace(_confirm_del_entry)));
$class = $color % 2 ? "contentMainSecond" : "contentMainFirst";
$color++;
$subkats .= show($dir . "/forum_show_subkats_show", array("subkat" => $subkat, "delete" => $delete, "class" => $class, "edit" => $edit));
}
$skathead = show(_config_forum_subkathead, array("kat" => re($getk['name'])));
$add = show(_config_forum_subkats_add, array("id" => $_GET['id']));
$show = show($dir . "/forum_show_subkats", array("head" => _config_forum_head, "subkathead" => $skathead, "subkats" => $subkats, "add" => $add, "subkat" => _config_forum_subkat, "delete" => _deleteicon_blank, "edit" => _editicon_blank));
}
} else {
$qry = db("SELECT * FROM " . $db['f_kats'] . "\n ORDER BY kid");
while ($get = _fetch($qry)) {
$kat = show(_config_forum_kats_titel, array("kat" => re($get['name']), "id" => $get['id']));
$edit = show("page/button_edit_single", array("id" => $get['id'], "action" => "admin=" . $_GET['admin'] . "&do=edit", "title" => _button_title_edit));
$delete = show("page/button_delete_single", array("id" => $get['id'], "action" => "admin=" . $_GET['admin'] . "&do=delete", "title" => _button_title_del, "del" => convSpace(_confirm_del_entry)));
if ($get['intern'] == 1) {
$status = _config_forum_intern;
} else {
$status = _config_forum_public;
}
$class = $color % 2 ? "contentMainSecond" : "contentMainFirst";
$color++;
$kats .= show($dir . "/forum_show_kats", array("class" => $class, "kat" => $kat, "status" => $status, "skats" => cnt($db['f_skats'], " WHERE sid = '" . intval($get['id']) . "'"), "edit" => $edit, "delete" => $delete));
}
$show = show($dir . "/forum", array("head" => _config_forum_head, "mainkat" => _config_forum_mainkat, "edit" => _editicon_blank, "skats" => _cnt, "status" => _config_forum_status, "delete" => _deleteicon_blank, "add" => _config_forum_kats_add, "kats" => $kats));
if ($_GET['do'] == "newkat") {
$qry = db("SELECT * FROM " . $db['f_kats'] . "\n ORDER BY kid");
while ($get = _fetch($qry)) {
$positions .= show(_select_field, array("value" => $get['kid'] + 1, "what" => _nach . ' ' . re($get['name']), "sel" => ""));
}
示例10: show
$status = _away_status_now;
}
if ($get['end'] < time()) {
$status = _away_status_done;
}
$class = $color % 2 ? "contentMainSecond" : "contentMainFirst";
$color++;
if ($userid == $get['userid'] || $chkMe == "4") {
$value = show("page/button_edit_single", array("id" => $get['id'], "action" => "action=edit", "title" => _button_title_edit));
} else {
$value = " ";
}
if ($get['end'] < time()) {
$value = " ";
}
$chkMe == 4 ? $delete = show("page/button_delete_single", array("id" => $get['id'], "action" => "action=del", "title" => _button_title_del, "del" => convSpace(_confirm_del_entry))) : ($delete = " ");
$info = show($dir . "/button_info", array("id" => $get['id'], "action" => "action=info", "title" => "Info"));
$show .= show($dir . "/away_show", array("class" => $class, "id" => $get["id"], "status" => $status, "von" => date("d.m.y", $get['start']), "bis" => date("d.m.y", $get['end']), "grund" => $get["titel"], "value" => $value, "del" => $delete, "nick" => autor($get['userid']), "details" => $info));
}
if (!$show) {
$show = _away_no_entry;
}
$nav = nav($entrys, $maxaway, "?");
$index = show($dir . "/away", array("head" => _away_head, "show" => $show, "user" => _user, "titel" => _banned_reason, "from" => _from, "to" => _away_to, "status" => _status, "submit" => _button_value_addto, "nav" => $nav));
}
break;
case 'new':
$where = $where . ' - ' . _away_new;
if ($chkMe == "unlogged" || $chkMe < "2") {
$index = error(_error_wrong_permissions, 1);
} else {
示例11: show
}
$linktyp = '<input type="hidden" name="type" value="' . $_GET['type'] . '" />';
$show = show($dir . "/form_links", array("head" => _links_admin_head_edit, "link" => _links_link, "linktyp" => $linktyp, "beschreibung" => _links_beschreibung, "art" => _links_art, "text" => _links_admin_textlink, "banner" => _links_admin_bannerlink, "bchecked" => $bchecked, "tchecked" => $tchecked, "llink" => $get['url'], "lbeschreibung" => re($get['beschreibung']), "btext" => _links_text, "ltext" => re($get['text']), "what" => _button_value_edit, "do" => "editlink&id=" . $_GET['id'] . ""));
} elseif ($_GET['do'] == "editlink") {
if (empty($_POST['link']) || empty($_POST['beschreibung']) || isset($_POST['banner']) && empty($_POST['text'])) {
if (empty($_POST['link'])) {
$show = error(_links_empty_link, 1);
} elseif (empty($_POST['beschreibung'])) {
$show = error(_links_empty_beschreibung, 1);
} elseif (empty($_POST['text'])) {
$show = error(_links_empty_text, 1);
}
} else {
$qry = db("UPDATE " . $db['links'] . "\n SET `url` = '" . links($_POST['link']) . "',\n `text` = '" . up($_POST['text']) . "',\n `banner` = '" . up($_POST['banner']) . "',\n `beschreibung` = '" . up($_POST['beschreibung'], 1) . "'\n WHERE id = '" . intval($_GET['id']) . "'");
$show = info(_link_edited, "?admin=links");
}
} elseif ($_GET['do'] == "delete") {
$qry = db("DELETE FROM " . $db[$_GET['type']] . "\n WHERE id = '" . intval($_GET['id']) . "'");
$show = info(_link_deleted, "?admin=links");
} else {
$qry = db("SELECT * FROM " . $db['links'] . "\n ORDER BY banner DESC");
while ($get = _fetch($qry)) {
$edit = show("page/button_edit_single", array("id" => $get['id'], "action" => "admin=links&do=edit&type=links", "title" => _button_title_edit));
$delete = show("page/button_delete_single", array("id" => $get['id'], "action" => "admin=links&do=delete&type=links", "title" => _button_title_del, "del" => convSpace(_confirm_del_link)));
$class = $color % 2 ? "contentMainSecond" : "contentMainFirst";
$color++;
$show1 .= show($dir . "/links_show", array("link" => cut(re($get['url']), 40), "class" => $class, "type" => "links", "edit" => $edit, "delete" => $delete));
}
$show = show($dir . "/links", array("head1" => _links_head, "head2" => _sponsor_head, "titel" => _link, "show1" => $show1, "add" => _links_admin_head));
}
}