示例#1
0
文件: index.php 项目: nopuls/dzcp
                 }
                 $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);
             if ($get['von'] == $userid || $get['an'] == $userid) {
                 $update = db("UPDATE " . $db['msg'] . "\n  \t\t\t  \t\t\t\t\t\tSET `readed` = 1\n  \t\t\t\t  \t\t\t\t\tWHERE id = " . intval($_GET['id']));
示例#2
0
文件: cw.php 项目: nopuls/dzcp
 } elseif ($_GET['do'] == "edit") {
     $qry = db("SELECT * FROM " . $db['cw'] . "\n                   WHERE id = '" . intval($_GET['id']) . "'");
     $get = _fetch($qry);
     list($xonx1, $xonx2) = explode('on', $get['xonx']);
     $qrym = db("SELECT * FROM " . $db['squads'] . "\n                    WHERE status = '1'\n                    ORDER BY game");
     while ($gets = _fetch($qrym)) {
         if ($get['squad_id'] == $gets['id']) {
             $sel = "selected=\"selected\"";
         } else {
             $sel = "";
         }
         $squads .= show(_cw_edit_select_field_squads, array("id" => $gets['id'], "name" => re($gets['name']), "game" => re($gets['game']), "sel" => $sel, "icon" => $gets['icon']));
     }
     $dropdown_date = show(_dropdown_date, array("day" => dropdown("day", date("d", $get['datum'])), "month" => dropdown("month", date("m", $get['datum'])), "year" => dropdown("year", date("Y", $get['datum']))));
     $dropdown_time = show(_dropdown_time, array("hour" => dropdown("hour", date("H", $get['datum'])), "minute" => dropdown("minute", date("i", $get['datum'])), "uhr" => _uhr));
     $show = show($dir . "/form_cw", array("head" => _cw_admin_head_edit, "datum" => _datum, "gegner" => _cw_head_gegner, "xonx" => _cw_head_xonx, "preview" => _preview, "nothing" => _cw_nothing, "screenshot1" => _cw_new . " " . _cw_screenshot . " 1", "screenshot2" => _cw_new . " " . _cw_screenshot . " 2", "screenshot3" => _cw_new . " " . _cw_screenshot . " 3", "screenshot4" => _cw_new . " " . _cw_screenshot . " 4", "screens" => _cw_screens, "liga" => _cw_head_liga, "screen_info" => _cw_screens_info, "gametype" => _cw_head_gametype, "url" => _url, "clantag" => _cw_admin_clantag, "bericht" => _cw_bericht, "result" => _cw_head_result, "info" => _cw_admin_info, "gegnerstuff" => _cw_admin_gegnerstuff, "warstuff" => _cw_admin_warstuff, "maps" => _cw_admin_maps, "match_admins" => _cw_head_admin, "lineup" => _cw_head_lineup, "glineup" => _cw_head_glineup, "serverip" => _cw_admin_serverip, "lineup_info" => _cw_admin_lineup_info, "servername" => _server_name, "serverpwd" => _server_password, "do" => "editcw&id=" . $_GET['id'] . "", "what" => _button_value_edit, "cw_clantag" => re($get['clantag']), "cw_gegner" => re($get['gegner']), "cw_url" => $get['url'], "cw_xonx1" => $xonx1, "logo" => _cw_logo, "cw_xonx2" => $xonx2, "cw_maps" => re($get['maps']), "cw_matchadmins" => re($get['matchadmins']), "cw_lineup" => re($get['lineup']), "cw_glineup" => re($get['glineup']), "cw_servername" => re($get['servername']), "cw_serverip" => $get['serverip'], "cw_serverpwd" => re($get['serverpwd']), "cw_punkte" => $get['punkte'], "cw_gpunkte" => $get['gpunkte'], "cw_bericht" => re_bbcode($get['bericht']), "day" => date("d", $get['datum']), "dropdown_date" => $dropdown_date, "dropdown_time" => $dropdown_time, "month" => date("m", $get['datum']), "year" => date("Y", $get['datum']), "hour" => date("H", $get['datum']), "minute" => date("i", $get['datum']), "name" => _member_admin_squad, "countrys" => show_countrys($get['gcountry']), "squad_info" => _cw_admin_head_squads, "game" => _member_admin_game, "squads" => $squads, "cw_liga" => re($get['liga']), "country" => _cw_admin_head_country, "cw_gametype" => re($get['gametype'])));
 } elseif ($_GET['do'] == "add") {
     if (empty($_POST['gegner']) || empty($_POST['clantag']) || empty($_POST['t'])) {
         if (empty($_POST['gegner'])) {
             $show = error(_cw_admin_empty_gegner, 1);
         } elseif (empty($_POST['clantag'])) {
             $show = error(_cw_admin_empty_clantag, 1);
         } elseif (empty($_POST['t'])) {
             $show = error(_empty_datum, 1);
         }
     } else {
         if (empty($_POST['xonx1']) && empty($_POST['xonx2'])) {
             $xonx = "";
         } else {
             $xonx = "`xonx` = '" . $_POST['xonx1'] . "on" . $_POST['xonx2'] . "',";
         }
示例#3
0
文件: adduser.php 项目: nopuls/dzcp
         if (_rows($check)) {
             $sel = "selected=\"selected\"";
         } else {
             $sel = "";
         }
         $posi .= show(_select_field_posis, array("value" => $getpos['id'], "sel" => $sel, "what" => re($getpos['position'])));
     }
     $qrysquser = db("SELECT squad FROM " . $db['squaduser'] . "\n                           WHERE user = '******'edit']) . "'\n                           AND squad = '" . $getsq['id'] . "'");
     if (_rows($qrysquser)) {
         $check = "checked=\"checked\"";
     } else {
         $check = "";
     }
     $esquads .= show(_checkfield_squads, array("id" => $getsq['id'], "check" => $check, "eposi" => $posi, "noposi" => _user_noposi, "squad" => re($getsq['name'])));
 }
 $show = show($dir . "/register", array("registerhead" => _useradd_head, "pname" => _loginname, "pnick" => _nick, "pemail" => _email, "pbild" => _config_c_upicsize, "ppwd" => _pwd, "squadhead" => _admin_user_squadhead, "squad" => _member_admin_squad, "posi" => _profil_position, "esquad" => $esquads, "about" => _useradd_about, "level_info" => _level_info, "rechte" => _config_positions_rights, "getpermissions" => getPermissions(), "getboardpermissions" => getBoardPermissions(), "forenrechte" => _config_positions_boardrights, "preal" => _profil_real, "psex" => _profil_sex, "sex" => _pedit_male, "pbday" => _profil_bday, "dropdown_age" => $dropdown_age, "pwohn" => _useradd_wohn, "pcity" => _profil_city, "pcountry" => _profil_country, "country" => show_countrys($get['country']), "gmaps" => $gmaps, "level" => _admin_user_level, "ruser" => _status_user, "trial" => _status_trial, "alvl" => "", "member" => _status_member, "admin" => _status_admin, "banned" => _admin_level_banned, "value" => _button_value_reg));
 if ($_GET['do'] == "add") {
     $check_user = db("SELECT id FROM " . $db['users'] . "\n\t\t\t\t\t\t\t\t\t\t\tWHERE user = '******'user'] . "'");
     $check_nick = db("SELECT id FROM " . $db['users'] . "\n\t\t\t\t\t\t\t\t\t\t\tWHERE nick = '" . $_POST['nick'] . "'");
     $check_email = db("SELECT id FROM " . $db['users'] . "\n\t\t\t\t\t\t\t\t\t\t\t WHERE email = '" . $_POST['email'] . "'");
     if (empty($_POST['user'])) {
         $show = error(_empty_user, 1);
     } elseif (empty($_POST['nick'])) {
         $show = error(_empty_nick, 1);
     } elseif (empty($_POST['email'])) {
         $show = error(_empty_email, 1);
     } elseif (!check_email($_POST['email'])) {
         $show = error(_error_invalid_email, 1);
     } elseif (_rows($check_user)) {
         $show = error(_error_user_exists, 1);
     } elseif (_rows($check_nick)) {
         }
         $show = info(_clans_added, "?admin=cw_clans");
     }
 } elseif ($_GET['do'] == "edit") {
     $qrys = db("SELECT * FROM " . $sql_prefix . "clans \n                    WHERE id = '" . intval($_GET['id']) . "'");
     $gets = _fetch($qrys);
     $show = show($dir . "/form_clans", array("head" => _clans_edit_head, "what" => _button_value_edit, "lang" => $language, "clantag" => _cw_admin_clantag, "gegner" => _cw_head_gegner, "url" => _url, "logo" => _cw_logo, "e_clantag" => re($gets['clantag']), "e_gegner" => re($gets['gegner']), "e_url" => re($gets['url']), "country" => _cw_admin_head_country, "countrys" => show_countrys($gets['country']), "ja" => _yes, "nein" => _no, "error" => "", "do" => "editsite&id=" . $_GET['id'] . ""));
 } elseif ($_GET['do'] == "editsite") {
     if (empty($_POST['clantag']) || empty($_POST['gegner'])) {
         if (empty($_POST['clantag'])) {
             $error = _empty_clantag;
         } elseif (empty($_POST['gegner'])) {
             $error = _empty_gegner;
         }
         $error = show("errors/errortable", array("error" => $error));
         $show = show($dir . "/form_clans", array("head" => _clans_edit_head, "what" => _button_value_edit, "lang" => $language, "clantag" => _cw_admin_clantag, "gegner" => _cw_head_gegner, "url" => _url, "logo" => _cw_logo, "e_clantag" => re($_POST['clantag']), "e_gegner" => re($_POST['gegner']), "e_url" => re($_POST['url']), "country" => _cw_admin_head_country, "countrys" => show_countrys($_POST['country']), "ja" => _yes, "nein" => _no, "error" => "", "do" => "editsite&id=" . $_GET['id'] . ""));
     } else {
         if ($_POST['land'] == "lazy") {
             $kid = "";
         } else {
             $kid = "`country` = '" . $_POST['land'] . "',";
         }
         $qry = db("UPDATE " . $sql_prefix . "clans \n                     SET " . $kid . "\n\t\t\t\t\t `clantag` = '" . up($_POST['clantag']) . "',\n\t\t\t\t\t \t`gegner` = '" . up($_POST['gegner']) . "',\n                         `url`  = '" . links($_POST['url']) . "'\n                     WHERE id = '" . intval($_GET['id']) . "'");
         //IMG Upload
         $tmp = $_FILES['logo']['tmp_name'];
         $type = $_FILES['logo']['type'];
         $end = explode(".", $_FILES['logo']['name']);
         $end = strtolower($end[count($end) - 1]);
         if (!empty($tmp)) {
             $img = @getimagesize($tmp);
             foreach ($picformat as $end1) {