示例#1
0
			    <td><input type="hidden" name="captcha_hash" value="' . $hash . '" /><input type="hidden" name="id" value="' . $id . '" /></td>
			    <td><br /><input type="submit" name="ban" value="' . $_language->module['edit_ban'] . '" /></td>
			  </tr>
			</table>
			</form>';
        } else {
            echo $_language->module['you_cant_ban'] . '<br /><br />&laquo; <a href="javascript:history.back()">' . $_language->module['back'] . '</a>';
        }
    } else {
        echo $_language->module['you_cant_ban_yourself'] . '<br /><br />&laquo; <a href="javascript:history.back()">' . $_language->module['back'] . '</a>';
    }
} elseif ($action == "addtoclan") {
    echo '<h1>&curren; <a href="admincenter.php?site=users" class="white">' . $_language->module['users'] . '</a> &raquo; ' . $_language->module['add_to_clan'] . '</h1>';
    $id = $_GET['id'];
    $nickname = getnickname($id);
    $squads = getsquads();
    $CAPCLASS = new Captcha();
    $CAPCLASS->create_transaction();
    $hash = $CAPCLASS->get_hash();
    echo '<form method="post" action="admincenter.php?site=users&amp;page=' . (int) $_GET['page'] . '&amp;type=' . getforminput($_GET['type']) . '&amp;sort=' . $_GET['sort'] . '">
	<table width="100%" border="0" cellspacing="1" cellpadding="3">
    <tr>
      <td width="15%"><b>' . $_language->module['nickname'] . '</b> hgjgkjh</td>
      <td width="85%">' . $nickname . '</td>
    </tr>
    <tr>
      <td><b>' . $_language->module['squad'] . '</b></td>
      <td><select name="squad">' . $squads . '</select></td>
    </tr>
    <tr>
      <td><b>' . $_language->module['position'] . '</b></td>
示例#2
0
     $ergebnis = safe_query("SELECT * FROM " . PREFIX . "cash_box WHERE cashID='{$id}'");
     $ds = mysql_fetch_array($ergebnis);
     $day = date("d", $ds['paydate']);
     $month = date("m", $ds['paydate']);
     $year = date("Y", $ds['paydate']);
     $info = getinput($ds['info']);
     $usage = getinput($ds['usedfor']);
     $bank_account = getinput($ds['konto']);
     $anz = 0;
     $ergebnis = safe_query("SELECT * FROM " . PREFIX . "user ORDER BY nickname");
     while ($du = mysql_fetch_array($ergebnis)) {
         if (iscashadmin($du['userID'])) {
             $anz++;
         }
     }
     $squads = '<option value="0">' . $_language->module['each_squad'] . '</option>' . getsquads();
     $squads = str_replace('value="' . $ds['squad'] . '"', 'value="' . $ds['squad'] . '" selected="selected"', $squads);
     eval("\$cash_box_edit = \"" . gettemplate("cash_box_edit") . "\";");
     echo $cash_box_edit;
 } else {
     echo '<h2>' . $_language->module['cash_box'] . '</h2>';
     function print_cashbox($squadID, $id)
     {
         global $_language;
         $_language->read_module('cash_box');
         $bg1 = BG_1;
         $bg2 = BG_2;
         $pagebg = PAGEBG;
         $border = BORDER;
         $bghead = BGHEAD;
         $bgcat = BGCAT;