示例#1
0
文件: radio.php 项目: philum/cms
function radio_edit($nod, $dr, $md, $id = '')
{
    $id = $id ? $id : $_SESSION['read'];
    $nd = 'radio' . $id;
    if (!$nod) {
        $nod = $_SESSION['qb'] . '_' . $nd;
    }
    $nodb = str_replace('_', '*', $nod);
    if ($dr) {
        $ret .= radio_build($dr, $nod);
    }
    $r = msql_read('radio', $nod, '');
    $ret .= msqlink('radio', $_SESSION['qb'] . '_' . $nd);
    if ($r[$md]) {
        foreach ($r[$md] as $k => $v) {
            $ky .= $md . '.' . $k . '|';
            $edit .= input2('text', '"id="' . $md . '.' . $k, $v) . btn('txtsmall', $r['_menus_'][$k]) . br();
        }
        $edit .= ljb('popbt', 'SaveR', 'popup_radiosav_' . $nodb . '__' . $k . '\',\'' . $ky, 'save');
    }
    $ret .= divc('edit', $edit);
    if ($r) {
        foreach ($r as $k => $v) {
            foreach ($v as $ka => $va) {
                $datas[$k][] = $va;
            }
            if ($k != '_menus_' && $k != $md) {
                $datas[$k][] = ljb('popbt', 'SaveJ', 'popup_radioedit___' . $nodb . '__' . $k, 'edit');
            }
        }
    }
    $ret .= make_divtable($datas);
    return popup('build_playlist', $ret);
}
示例#2
0
文件: pictos.php 项目: philum/cms
function pictos_edit($k)
{
    //echo $k;
    $d = msql_read('system', 'program_pictos', $k);
    $ret = btn('txtsmall', $k) . ' ' . input(1, 'edit' . $k . '" size="30', $d);
    $ret .= lj('txtbox', 'ico' . $k . '_plug__x_pictos_pictos*save_' . $k . '__edit' . $k, 'save') . ' ';
    $ret .= lj('txtyl', 'ico' . $k . '_plug__x_pictos_pictos*save_' . $k, 'del') . br() . br();
    //$ret.=sesmk('pictos_see','edit'.$k,0);
    return popup('edit_picto', $ret);
}
function commentaryarchive_dohook($hookname, $args)
{
    global $session;
    switch ($hookname) {
        case "commentaryoptions":
            if ($session['user']['donation'] >= 1000) {
                $sec = $session['user']['chatloc'];
                rawoutput("<a href=\"runmodule.php?module=commentaryarchive\" target='_blank' onclick=\"" . popup("runmodule.php?module=commentaryarchive") . ";return false;\">Export Commentary to HTML</a><br /><br />");
            }
            break;
    }
    return $args;
}
include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
$user = new usersMenus();
if ($user->AllowViewStatistics == false) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    die;
    exit;
}
if (isset($_GET["graph"])) {
    graphs();
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
js();
function js()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $title = $tpl->_ENGINE_parse_body("{emails_flow}");
    $html = "\n\tfunction main_mailgraph_statistics_start(){\n\t\t\tYahooWin2(790,'{$page}?popup=yes','{$title}');\n\t\t}\n\t\n\tmain_mailgraph_statistics_start();";
    echo $html;
}
function popup()
{
    $tpl = new templates();
    $page = CurrentPageName();
#              06-22-15     Loads amenities and services providded and sets the check boxes accordingly.
#              06-27-15     Loads prices, discount and available info.
#                           All the values are read only.
#
#
#
#######################################################
//header('Cache-Control: no cache');           // This created problem.
//session_cache_limiter('private_no_expire');
require_once '../common/dependency.php';
vConnectDB("baboom");
session_start();
//If not logged in, cannot see the detailed information.
//This forces people to register with us.
if ($_SESSION['user'] != 'member') {
    popup('Please register in order to see the detail info.', MEMBER_LOGIN_PAGE);
}
$facility_number = urldecode($_GET['facility_num']);
$state = urldecode($_GET['state']);
$facility_name = urldecode($_GET['facility_name']);
$facility_address = urldecode($_GET['address']);
$city = urldecode($_GET['city']);
$zipcode = urldecode($_GET['zipcode']);
$telephone = urldecode($_GET['telephone']);
$licensee = urldecode($_GET['licensee']);
$facility_type = urldecode($_GET['facility_type']);
$facility_cap = urldecode($_GET['facility_cap']);
$license_status = urldecode($_GET['status']);
$shared_available = urldecode($_GET['shared_avail']);
$semi_private_available = urldecode($_GET['semi_private_avail']);
$private_available = urldecode($_GET['private_avail']);
示例#6
0
if(isset($_GET["POSTFIX_MULTI_INSTANCE_JS"])){POSTFIX_MULTI_INSTANCE_JS();exit;}
if(isset($_GET["EnablePostfixMultiInstance"])){POSTFIX_MULTI_INSTANCE_SAVE();exit;}
if(isset($_GET["inet_interface_add"])){inet_interface_add();exit;}
if(isset($_GET["PostfixAddMyNetwork"])){PostfixAddMyNetwork();exit;}
if(isset($_GET["PostFixDeleteMyNetwork"])){PostFixDeleteMyNetwork();exit;}
if(isset($_GET["PostfixDeleteInterface"])){PostfixDeleteInterface();exit;}
if(isset($_GET["ignore_mx_lookup_error"])){SaveDNSSettings();exit;}
if(isset($_GET["bind9infos"])){echo bind9infos();exit;}
if(isset($_GET["script"])){switch_script();exit;}
if(isset($_GET["popup"])){switch_popup();exit;}
if(isset($_GET["PostfixEnabledInBind9"])){bind9_save_enable();exit;}
if(isset($_GET["bind9Options"])){bind9_form();exit;}
if(isset($_GET["PostfixBind9Delete"])){bind9_delete();exit;}
if(isset($_GET["PostfixBind9NameServer"])){bind9_add();exit;}
if(isset($_GET["ajax"])){ajax();exit;}
if(isset($_GET["ajax-popup"])){popup();exit;}


if(isset($_GET["smtp_bind_address6"])){ipv6_save();exit;}
page();	

function ajax(){
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body("{postfix_network}");
	$datas=file_get_contents("js/postfix-network.js");
	$page=CurrentPageName();
	$prefix=str_replace(".","_",$page);
	$html="
	var {$prefix}Timeout=0;
	$datas
	".addinscripts()."
示例#7
0
    $password = $_POST['password'];
    if ($username != "" and $password != "") {
        $login = new CLogin($username, $password);
        if ($login->getUser()) {
            if ($login->isAuthentiated()) {
                $_SESSION['user'] = $login->getUser();
                header('refresh:0;admin.php');
                exit;
            } else {
                popup("Sorry", "{$username},your password is incorrect!");
            }
        } else {
            popup('Sorry', 'Your username is incorrect!');
        }
    } else {
        popup('Sorry', "Username or password can't be empty!", 'warning');
    }
}
?>
<html>
    <head>
        <title>Google Students Club</title>
        
        <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
        
        <!--CSS-->
        <link href="css/bootstrap.min.css" type="text/css" rel="stylesheet"/>
        <link href="css/jquery.dialog.css" type="text/css" rel="stylesheet"/>
        <link href="css/login.css" type="text/css" rel="stylesheet"/>        
        
        <!--Javascript-->
function tlbutton_push($indata, $hot = false, $namespace = FALSE)
{
    global $translatorbuttons;
    global $translation_is_enabled, $seentlbuttons, $session;
    if (!$translation_is_enabled) {
        return;
    }
    if (!$namespace) {
        $namespace = "unknown";
    }
    if ($session['user']['superuser'] & SU_IS_TRANSLATOR) {
        if (preg_replace("/[ \t\n\r]|`./", '', $indata) > "") {
            if (isset($seentlbuttons[$namespace][$indata])) {
                $link = "";
            } else {
                $seentlbuttons[$namespace][$indata] = true;
                require_once "lib/sanitize.php";
                $uri = cmd_sanitize($namespace);
                $uri = comscroll_sanitize($uri);
                $link = "translatortool.php?u=" . rawurlencode($uri) . "&t=" . rawurlencode($indata);
                $link = "<a href='{$link}' target='_blank' onClick=\"" . popup($link) . ";return false;\" class='t" . ($hot ? "hot" : "") . "'>T</a>";
            }
            array_push($translatorbuttons, $link);
        }
        return true;
    } else {
        //when user is not a translator, return false.
        return false;
    }
}
 if ($row['alive'] == true) {
     $a = $alive;
 } else {
     if ($row['hitpoints'] > 0) {
         $a = $unconscious;
     } else {
         $a = $dead;
     }
 }
 //$a = translate_inline($row['alive']?"`1Yes`0":"`4No`0");
 output_notl("%s", $a);
 rawoutput("</td><td>");
 output_notl("`^%s`0", $row['level']);
 rawoutput("</td><td>");
 if ($session['user']['loggedin']) {
     rawoutput("<a href=\"mail.php?op=write&to=" . rawurlencode($row['login']) . "\" target=\"_blank\" onClick=\"" . popup("mail.php?op=write&to=" . rawurlencode($row['login']) . "") . ";return false;\">");
     rawoutput("<img src='images/newscroll.GIF' width='16' height='16' alt='{$writemail}' border='0'></a>");
     rawoutput("<a href='bio.php?char=" . $row['acctid'] . "'>");
     addnav("", "bio.php?char=" . $row['acctid'] . "");
 }
 output_notl("`&%s`0", $row['name']);
 if ($session['user']['loggedin']) {
     rawoutput("</a>");
 }
 rawoutput("</td><td>");
 $loggedin = date("U") - strtotime($row['laston']) < getsetting("LOGINTIMEOUT", 900) && $row['loggedin'];
 output_notl("`&%s`0", $row['location']);
 if ($loggedin) {
     $online = translate_inline("`#(Online)");
     output_notl("%s", $online);
 }
示例#10
0
文件: styl.php 项目: philum/cms
function css_fontface($p, $b, $c, $o, $s, $u)
{
    //page,cat,size,opt
    $csa = 'txtx';
    $csb = 'txtred';
    $jx = 'pop_';
    if (!$b) {
        $b = 'all';
    }
    $r = msql_read('server', 'edition_typos', '', 1);
    $n = count($r);
    asort($r);
    $rb['all'] = 1;
    $b = $b == '' ? 'unclassed' : $b;
    $gf = 'stylsff___';
    $s = substr($s, 0, -1);
    if ($s) {
        $o = 'rch' . $s;
    }
    if (!is_file('msql/server/edition_typos.php')) {
        $ret .= lkc('txtyl', '?admin=fonts', 'update server_table') . br() . br();
    }
    //rb//rd
    $ard = array('', 'fontsquirrel', 'fontspring', 'myfonts');
    if ($r) {
        foreach ($r as $k => $v) {
            if ($v[1]) {
                $rb[$v[1]] = 1;
            }
            if (is_numeric($v[4])) {
                $rd[$v[4]] = $ard[$v[4]];
            }
        }
    }
    // else $rd[$v[4]]=$v[4];
    $rb['unclassed'] = 1;
    ksort($rb);
    $_SESSION['fntcat'] = $rb;
    //cat
    if ($b && $b != 'unclassed' && $b != 'all') {
        $hlp = divc('panel', helps($b, 'typos')) . br();
    }
    foreach ($rb as $k => $v) {
        $mnu .= lj($k == $b ? $csb : $csa, $jx . $gf . '1_' . ajx($k) . '_' . $c . '_' . $o, $k) . ' ';
    }
    $mnu .= br();
    $b = $b == 'unclassed' ? '' : $b;
    $pk = substr($o, 0, 3);
    $pv = substr($o, 3);
    if ($pv) {
        $pp[$pk] = $pv;
    }
    //rech
    $srch .= input2('text', 'srch" size="8" id="srchfnt', $pp['rch'] ? $pp['rch'] : 'search', '');
    $srch .= ' ' . lj('popbt', $jx . $gf . '1_' . $b . '_' . $c . '_' . $o . '_srchfnt', 'ok') . ' ';
    $srch .= lj('popbt', $jx . $gf . '1_all', 'x');
    //tri
    foreach ($r as $k => $v) {
        if (!$pv or ($pp['acc'] && $pp['acc'] == $v[2] or $pp['fav'] && $pp['fav'] == $v[3] or $pp['fam'] && $pp['fam'] == $v[4] or $pp['rch'] && stristr($v[0], $pp['rch']) !== false)) {
            if ($v[1] == $b or $b == 'all') {
                $rc[$k] = $v;
            }
        }
    }
    $n = count($rc);
    //pages
    $no = 20;
    $np = 10;
    $min = $p - $np;
    $max = $p + $np;
    $nb = ceil($n / $no);
    $bb = ajx($b);
    for ($i = 1; $i <= $nb; $i++) {
        if ($i == 1 or $i == $nb or $i > $min && $i < $max) {
            //$rtp.=lj(($i==$p?'active':''),$jx.$gf.$i.'_'.$bb.'_'.$c.'_'.$o,$i);
            $rtp .= lj($i == $p ? 'active' : '', $jx . $gf . $i . '_' . $bb . '_' . $c . '_' . $o, $i) . ' ';
        }
        if ($i == 2 && $min > 2 or $i == $nb - 1 && $max < $nb - 1) {
            $rtp .= '... ';
        }
    }
    $nbp = divc('nb_pages', $rtp);
    $c = is_numeric($c) ? $cb = $c : 48;
    $arz = array(12, 24, 36, 48, 72);
    foreach ($arz as $k => $v) {
        //size
        $siz .= lj($v == $c ? $csb : $csa, $jx . $gf . $p . '_' . $b . '_' . $v . '_' . $o, $v) . ' ';
    }
    //label
    $go = $gf . $p . '_' . $bb . '__';
    if ($rd) {
        foreach ($rd as $k => $v) {
            $prp .= lj($pp['fam'] == $k ? $csb : $csa, $jx . $go . 'fam' . ($pp['fam'] == $k ? '' : $k), $v) . ' ';
        }
    }
    $prp .= lj($pp['acc'] ? $csb : $csa, $jx . $go . 'acc' . ($pp['acc'] ? '' : 1), 'accents') . ' ';
    $prp .= lj($pp['fav'] ? $csb : $csa, $jx . $go . 'fav' . ($pp['fav'] ? '' : 1), 'favs') . ' ';
    //render
    $max = $p * $no;
    $min = $max - $no;
    if ($rc) {
        foreach ($rc as $k => $v) {
            $ia++;
            if ($ia >= $min && $ia < $max && $v[0]) {
                $rta .= '@font-face {' . css_ff($v[0]) . '}' . "\n";
                $rtb .= preview_ff($k, $v, $c);
            }
        }
    }
    $ret .= css_code($rta) . $mnu . $hlp . $siz . $prp . $srch . br() . br();
    $ret .= input(1, 'ffwr', $_SESSION['ffstr'] ? $_SESSION['ffstr'] : 'AaBbCcDdEe0123יא', '" size="44');
    $ret .= lj('txtx', 'ffwr_sesmake_ffwr__ffstr', 'set');
    $ret .= divd('scroll', divd('pop', $nbp . br() . $rtb . $nbp)) . br();
    if ($u) {
        return popup('create font-face', divs('width:640px;', $ret));
    } else {
        return css_code($rta) . $nbp . br() . $rtb . $nbp;
    }
}
示例#11
0
            $predefinedlevel = $predefined[$javaskillbookid];
            $predefinedjavascript .= "\n\t\t\t\t\t\t\tskill[{$javaskillbookid}] = {$predefined[$javaskillbookid]};";
        } else {
            $predefinedlevel = 0;
        }
        $skilllist = "\n\t\t\t\t<div class='shortinfo_" . $florensia->change() . "' style='width:350px;'>\n\t\t\t\t\t<table width='100%' style='border-collapse:0px; border-spacing:0px; padding:0px;'>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td style='vertical-align:top;' colspan='3'><a href='" . $florensia->outlink(array("itemdetails", $skillbook[$florensia->get_columnname("itemid", "item")], $stringtable->get_string($skillbook[$florensia->get_columnname("itemid", "item")]))) . "' target='_blank'>" . $stringtable->get_string($skillbook[$florensia->get_columnname("itemid", "item")], array('protectionlink' => 1)) . "</a></td>\n\t\t\t\t\t\t\t<td rowspan='" . bcadd(count($details), 1) . "' style='text-align:right; vertical-align:top' class='small'>{$requieredskillbooks}</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>";
        $itempicture = "<td rowspan='" . count($details) . "' style='width:32px; vertical-align:top'><a href='" . $florensia->outlink(array("itemdetails", $skillbook[$florensia->get_columnname("itemid", "item")], $stringtable->get_string($skillbook[$florensia->get_columnname("itemid", "item")]))) . "' target='_blank'>" . $florensia->pictureprotection($primaryskills['skill_picture'], $stringtable->get_string($skillbook[$florensia->get_columnname("itemid", "item")]), $dbselect) . "</a></td>";
        foreach ($details as $key => $value) {
            $skilllist .= "<tr>{$itempicture}<td style='width:10px;'></td><td class='small' style='vertical-align:top'>{$key} {$value}</td></tr>";
            unset($itempicture);
        }
        $skilllist .= "\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t</div>\n\t\t\t\t<div class='shortinfo_" . $florensia->change() . "' style='width:350px;'>{$descriptiontext}</div>\n\t\t\t\t<div class='shortinfo_" . $florensia->change() . "' style='width:350px;'>\n\t\t\t\t\t<div style='float:right; width:30px; vertical-align:middle;'>\n\t\t\t\t\t\t<table style='width:100%'>\n\t\t\t\t\t\t\t<tr><td colspan='2' style='text-align:center;'>[<span name='{$javaskillbookid}_level'>0</span>]</td></tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td style='margin:1px;'><img onclick='skilltree({$javaskillbookid},-1," . $primaryskills[$florensia->get_columnname("masterlevel", $dbselect)] . ")' id='{$javaskillbookid}_minus' src='{$florensia->layer_rel}/skill_minus_inactive.gif' border='0' alt='-'></td>\n\t\t\t\t\t\t\t\t<td style='margin:1px;'><img onclick='skilltree({$javaskillbookid},1," . $primaryskills[$florensia->get_columnname("masterlevel", $dbselect)] . ")' id='{$javaskillbookid}_plus' src='{$florensia->layer_rel}/skill_plus_active.gif' border='0' alt='+'></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style='display:inline; margin-right:30px;' id='{$javaskillbookid}_0'><div style='min-height:55px;'><br />{$flolang->skilltree_placeholder_level_null}</div></div>";
        for ($i = 1; $i <= $primaryskills[$florensia->get_columnname("masterlevel", $dbselect)]; $i++) {
            if ($i < 10) {
                $skilllevelpic = "0{$i}";
            } else {
                $skilllevelpic = $i;
            }
            $skilllist .= "<div style='display:none; margin-right:30px;' id='{$javaskillbookid}_{$i}'><div style='min-height:55px;'>" . $florensia->detailsprotection(substr($primaryskills[$florensia->get_columnname("skillid", $dbselect)], 0, -2) . "{$skilllevelpic}", $dbselect) . "</div></div>";
        }
        $skilllist .= "</div>";
        $javapopups .= "<div style='position:absolute; left:" . $coords[0] . "px; top:" . $coords[1] . "px; width:32px; height:32px;' " . popup($skilllist, "STICKY, MOUSEOFF", "skilltree_rescue({$javaskillbookid}, " . $primaryskills[$florensia->get_columnname("masterlevel", $dbselect)] . ");") . " onclick='window.open(\"" . $florensia->outlink(array("itemdetails", $skillbook[$florensia->get_columnname("itemid", "item")], $stringtable->get_string($skillbook[$florensia->get_columnname("itemid", "item")]))) . "\")'>" . $florensia->pictureprotection($primaryskills['skill_picture'], $stringtable->get_string($skillbook[$florensia->get_columnname("itemid", "item")]), "{$dbselect}big") . "</div>\n\t\t\t<div class='small' style='position:absolute; left:" . bcadd($coords[0], 36) . "px; top:" . $coords[1] . "px; width:32px; height:32px;'>[<span name='{$javaskillbookid}_level'>{$predefinedlevel}</span>]</div>\n\t\t\t";
    }
    //}
    if (!$skilllist) {
        $skilllist = "<div class='warning' style='text-align:center'>{$flolang->skilltree_overview_noentry}</div>";
    }
    $content = "\n\t\t<div style='margin-bottom:5px;' class='subtitle'>Tools &gt; <a href='" . $florensia->outlink(array("skilloverview")) . "'>{$flolang->skilltree_title}</a> &gt; " . $classid[0] . "</div>\n\t\t<div style='margin-bottom:5px; text-align:center;'>" . $florensia->quick_select('skilloverviewdetails', array('class' => $_GET['class']), array(), array('namesselect' => 1)) . "</div>\n\t\t\n\t\t<div class='bordered small' style='margin-top:15px; margin-bottom:15px; text-align:center;'><input id='permlink' type='text' style='width:98%;' readonly='readonly' value='{$predefinedpermlink}'></div>\n\t\t\n\t\t<div style='width:501px; margin:auto; position:relative;'>" . $florensia->pictureprotection($skilltree['skilltree'], 'Skilltree ' . $classid[0], "skilltree") . "\n\t\t\t{$javapopups}\n\t\t\t<script type='text/javascript'>{$predefinedjavascript}</script>\n\t\t</div>";
    $florensia->sitetitle($classid[0]);
    $florensia->output_page($content);
}
示例#12
0
    $temp = get_turns($row['username']);
    $total_turns = intval($temp['total_turns']);
    echo "<strong>Total Turns</strong>: {$total_turns} <br/>";
    echo "<strong>Slaves owned</strong>";
    $result2 = $db->query("SELECT * FROM slaves WHERE user = '******'username'] . "'");
    echo "<ul>";
    if ($result2->numRows() == 0) {
        echo "<li>No slaves owned.</li>";
    } else {
        while ($row2 = mysql_fetch_array($result2)) {
            popup("<li>" . $row2['name'] . "</li>", "view_slave.php?slave= " . $row2['name']);
        }
    }
    echo "</ul>";
    $ranking = intval($total_turns * $row['gold'] / 10000);
    popup("<strong>Player Ranking</strong>: ", "help.php?topic=rankings");
    echo $ranking;
}
stopBox(BOX_GREEN);
if ($_SESSION['username'] != $_GET['user']) {
    ?>
<form action = "viewuser.php">
<input type = "hidden" name = "user" value = "<?php 
    echo $_GET['user'];
    ?>
" />
<table class = "normal">
<th>Money transfur</th>
<th>Amount</th>
<tr>
<td>Transfur some money from you account to this player.</td>
示例#13
0
	
if($argv[1]=="--export"){
	ini_set('html_errors',0);ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string','');ini_set('error_append_string','');
	$GLOBALS["VERBOSE"]=true;
	do_export();exit;
}
	
$usersmenus=new usersMenus();
if(!$usersmenus->AsDansGuardianAdministrator){
	$tpl=new templates();
	$alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
	echo "alert('$alert')";
	die();	
}

if(isset($_GET["export-rules"])){popup();exit;}
if(isset($_GET["do-export"])){do_export();exit;}


js();

function js(){
	$page=CurrentPageName();
	$tpl=new templates();
	$ACLNAME=null;
	$title_text="{export_rules}";
	if(is_numeric($_GET["single-id"])){
		if($_GET["single-id"]>0){
			$q=new mysql_squid_builder();
			$ligne=mysql_fetch_array($q->QUERY_SQL("SELECT aclname FROM webfilters_sqacls WHERE ID='{$_GET["single-id"]}'"));
			$ACLNAME=" :".utf8_encode($ligne["aclname"]);
示例#14
0
 function get_shortinfo($questlist, $settings = array())
 {
     global $florensia, $stringtable, $classquesttext, $flolang, $floaddition;
     $flolang->load("quest");
     if (!is_array($questlist)) {
         $questlistquery = MYSQL_QUERY("SELECT * FROM server_questlist WHERE questlistid='" . mysql_real_escape_string($questlist) . "'");
         if (!($questlist = MYSQL_FETCH_ARRAY($questlistquery))) {
             return FALSE;
         }
     }
     $questlistxml = simplexml_load_string($questlist['questlistxml']);
     /*
     		//workaround for "deleted" shellquests
     		if (preg_match('/^qsl[0-9]+$/', $questlistxml->Quest->SourceObject)) {
     			$querystorelist = MYSQL_QUERY("SELECT npcid FROM server_storelist WHERE storexml LIKE '%{$questlist['questlistid']}%'");
     			if (MYSQL_NUM_ROWS($querystorelist)==0) {
     				return FALSE;
     			}
     		}
     */
     //startnpc
     $querystartnpc = MYSQL_QUERY("SELECT " . $florensia->get_columnname("npcid", "npc") . " FROM server_npc WHERE " . $florensia->get_columnname("npcid", "npc") . "='" . $questlistxml->attributes()->SourceObject . "'");
     if ($settings['npclink'] && MYSQL_NUM_ROWS($querystartnpc) == 1) {
         $queststartnpc = "<a href='" . $florensia->outlink(array("npcdetails", $questlistxml->attributes()->SourceObject, $stringtable->get_string($questlistxml->attributes()->SourceObject))) . "'>" . $stringtable->get_string($questlistxml->attributes()->SourceObject, array('protectionsmall' => 1, 'protectionlink' => 1)) . "</a>";
     } else {
         $queststartnpc = $stringtable->get_string($questlistxml->attributes()->SourceObject, array('protectionsmall' => 1));
     }
     //see / land-quest
     if ($questlist['questtype'] == "s") {
         $questpicture = "<img src='{$florensia->layer_rel}/sealv.gif' height='12' alt='{$flolang->questtype_sea}' title='{$flolang->questtype_sea}'>";
     } else {
         $questpicture = "<img src='{$florensia->layer_rel}/land.gif' height='12' alt='{$flolang->questtype_land}' title='{$flolang->questtype_land}'>";
     }
     //questlevelrange
     if (intval($questlistxml->OccurTerm->attributes()->LvLim)) {
         $questlevelrange = $questlistxml->OccurTerm->attributes()->Lv . "-" . $questlistxml->OccurTerm->attributes()->LvLim;
         if (intval($questlistxml->OccurTerm->attributes()->LvOptimaize)) {
             $questlevelrange .= " (<b>" . $questlistxml->OccurTerm->attributes()->LvOptimaize . "</b>)";
         }
     } else {
         $questlevelrange = $questlistxml->OccurTerm->attributes()->Lv . "+";
     }
     //next quest
     if (strlen($questlist['nextquest'])) {
         $questhistory[] = "{$flolang->nextquest} <a href='" . $florensia->outlink(array("questdetails", $questlist['nextquest'], $this->get_title($questlist['nextquest']))) . "'>" . $this->get_title($questlist['nextquest']) . "</a>";
     }
     //prev quest
     if (strlen($questlist['privquest'])) {
         $questhistory[] = "{$flolang->previousquest} <a href='" . $florensia->outlink(array("questdetails", $questlist['privquest'], $this->get_title($questlist['privquest']))) . "'>" . $this->get_title($questlist['privquest']) . "</a>";
     }
     //questclasses
     $questclasses = "";
     foreach (str_split($questlist['questclasses']) as $class) {
         if (strtolower($class) == "p") {
             continue;
         }
         $classname = $florensia->get_classname($class);
         $questclasses .= "<img src='{$florensia->layer_rel}/icon_" . strtolower($class) . ".png' title='" . $florensia->escape($classname[0]) . "' alt='{$class}' style='height:12px; margin-right:2px; border:none;'>";
     }
     $addition = $floaddition->get_additionlist("quest", $questlist['questlistid']);
     if ($addition['not_implemented'] or $addition['removed'] or $addition['event']) {
         $stringsettings['color'] = "195,195,195";
         $tablecolor = "class='inactiveentry'";
     }
     if (count($addition)) {
         $flag = "<div class='small shortinfo_1'>" . join("<br/>", $addition) . "</div>";
         $flagicon = "<img src='{$florensia->layer_rel}/flag.gif' boder='0' style='height:10px;' " . popup($flag, "") . ">";
     }
     return "\n\t\t\t<table style='width:100%; border-collapse:0px; border-spacing:0px; padding:0px;' {$tablecolor}>\n\t\t\t<tr>\n\t\t\t\t<td style='width:450px'>\n\t\t\t\t\t<table cellpadding='0' cellspacing='0' width='100%' style='border-collapse:0px; border-spacing:0px; padding:0px;'>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td><a href='" . $florensia->outlink(array("questdetails", $questlist['questlistid'], $questlist['questtitle_' . $classquesttext->language])) . "'>" . $questlist['questtitle_' . $classquesttext->language] . "</a> {$flagicon}</td>\n\t\t\t\t\t\t\t<td style='text-align:right'>{$questpicture}</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t</td>\n\t\t\t\t<td class='small'>\n\t\t\t\t\t<table cellpadding='0' cellspacing='0' width='100%' style='border-collapse:0px; border-spacing:0px; padding:0px;'>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td>{$flolang->quest_shortview_map} <a href='" . $florensia->outlink(array("mapdetails", $questlistxml->attributes()->SourceArea, $stringtable->get_string($questlistxml->attributes()->SourceArea))) . "'>" . $stringtable->get_string($questlistxml->attributes()->SourceArea, array('protectionsmall' => 1, 'protectionlink' => 1)) . "</a></td>\n\t\t\t\t\t\t\t<td style='text-align:right'>{$questclasses}</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t\t\n\t\t\t\t</td>\n\t\t\t\t\t\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td style='width:400px; padding-left:20px;' class='small'>{$flolang->quest_shortview_level} {$questlevelrange}<br />{$questhistory[0]}</td>\n\t\t\t\t<td class='small'>{$flolang->quest_shortview_npc} {$queststartnpc}<br />{$questhistory[1]}</td>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t";
 }
示例#15
0
        $column_loop = 1;
        $row_loop++;
    } else {
        $column_loop++;
    }
}
echo "</table></fieldset></div>";
$quadrent = $_GET['quadrent'];
$row = $_GET['row'];
$column = $_GET['column'];
if (inAdminMode()) {
    echo "<div style = 'float:top;'><fieldset>";
    echo "<legend>admin mode</legend>";
    popup("modify", "admin_modify_tileset.php?quadrent={$quadrent}&row={$row}&column={$column}");
    echo " | ";
    popup("create quadrent", "admin_create_quadrent.php");
    echo "</fieldset></div>";
}
echo "<div style = 'float:top;'><fieldset>";
echo "<legend>" . $quadrent . " Quadrent </legend>";
echo "<strong>Coordinates:</strong> " . $row . "." . $column . "<br />";
$sql = "SELECT * FROM `map` WHERE `row` = '" . $row . "' AND col = '" . $column . "' AND `quadrent` = '" . $quadrent . "' LIMIT 1";
$result = $db->query($sql);
$row_result = $result->fetchRow();
if ($row_result['exit_quadrent'] != 'none') {
    echo "<strong>Leads to:</strong> " . $row_result['exit_quadrent'] . " quadrent<br />";
    echo "<strong>Direction: </strong>";
    switch ($row_result['exit']) {
        case 'left':
            echo "<a href = map.php?quadrent=" . $row_result['exit_quadrent'] . "&row={$row}&column=4>left</a>";
            break;
示例#16
0
<?php
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	
$usersmenus=new usersMenus();
if($usersmenus->AsArticaAdministrator==true){}else{header('location:users.index.php');exit;}		
	
	if(isset($_GET["tab"])){main_switch();exit;}
	if(isset($_GET["ajaxmenu"])){echo popup();exit;}
	if(isset($_GET["js"])){main_ajax();exit;}
	if(isset($_GET["AdressBookPopup"])){echo AdressBookPopup();exit;}
	if(isset($_GET["EnableRemoteAddressBook"])){AdressBookPopup_save();exit;}

page();	
function page(){
$page=CurrentPageName();	
$usersmenus=new usersMenus();
if($usersmenus->AsArticaAdministrator==true){}else{header('location:users.index.php');exit;}	
$sys=new systeminfos();

$distri=$sys->ditribution_name;


$html="
<div class=caption>Distribution: <strong>$distri</strong>&nbsp;Kernel:&nbsp;$sys->kernel_version&nbsp;LIBC:&nbsp;$sys->libc_version</div>
<table style='width:600px' align=center>
<tr>
<td width=1% valign='top'>
	<table>
		<tr>
示例#17
0
<?php
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.main_cf.inc');
	include_once('ressources/class.mysql.inc');
	
	
	

	if(isset($_GET["ShowOrganizations"])){echo ShowOrganizations();exit;}
	if(isset($_GET["ajaxmenu"])){echo "<div id='orgs'>".ShowOrganizations()."</div>";exit;}
	if(isset($_GET["butadm"])){echo butadm();exit;}
	if(isset($_GET["LoadOrgPopup"])){echo LoadOrgPopup();exit;}
	if(isset($_GET["js"])){js();exit;}
	if(isset($_GET["js-pop"])){popup();exit;}
	if(isset($_GET["countdeusers"])){COUNT_DE_USERS();exit;}
	
function js(){
	if(GET_CACHED(__FILE__,__FUNCTION__,"js")){return;}
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body("{organizations}");
	$page=CurrentPageName();
	$html="
	var timeout=0;
	
	function LoadOrg(){
			
		$('#BodyContent').load('$page?js-pop=yes', function() {Orgfillpage();});
		//LoadWinORG('760','$page?js-pop=yes','$title');
		//setTimeout('Orgfillpage()',900);
示例#18
0
$sql = "SELECT `id`, `username`, `registered`, `gold` FROM `users`";
$result = $db->query($sql);
while ($currentUser = $result->fetchRow()) {
    $turns = getTurns($currentUser['username']);
    $ranking = intval($turns['total'] * $currentUser['gold'] / 10000);
    $currentUser['ranking'] = $ranking;
    $leader_array[] = $currentUser;
}
$ranking = array();
foreach ($leader_array as $key => $row) {
    $ranking[$key] = $row['ranking'];
}
array_multisort($ranking, SORT_DESC, $leader_array);
startBox("About the leaderboard", BOX_YELLOW);
echo "This is a list of the current 30 best players, ordered by ";
popup("ranking", "help.php?topic=rankings");
echo ". There are proberbly lots of other players, but they dont qualify for the leaderboard, yet.";
echo "<br /><br />";
stopBox(BOX_YELLOW);
?>

<table class = "normal">
<tr>
	<th style = 'width: 10%;'>ranking</th>
	<th>username</th>
	<th style = 'width: 20%;'>gold</th>
	<th style = 'width: 20%;'>registerd</th>
</tr>


function tabs(){
	popup();
}
示例#20
0
文件: adminx.php 项目: philum/cms
function submod_pop()
{
    return popup('Apps', adm_apps('', ''), 460);
}
示例#21
0
		</div>
		<div data-role="content" data-theme="b">
			<ul data-role="listview" data-inset="true">

<?php 
$quicksearch = '';
if (isset($_POST['quicksearch'])) {
    $quicksearch = $_POST['quicksearch'];
    $_SESSION["save_quicksearch"] = $quicksearch;
}
// *** Replace space by % to find first AND lastname in one search "Huub Mons" ***
$quicksearch = str_replace(',', '', $quicksearch);
// in case someone entered "Mons, Huub"
$quicksearch = str_replace(' ', '%', $quicksearch);
// one can enter "Huub Mons", "Mons Huub", "Huub van Mons", "van Mons, Huub", "Mons, Huub van" and even "Mons van, Huub" ...
$query = "SELECT * FROM humo_persons\n\t\tWHERE pers_tree_id='" . $tree_id . "'\n\t\tAND(\n\t\tCONCAT(pers_firstname,REPLACE(pers_prefix,'_',' '),pers_lastname) LIKE '%{$quicksearch}%' \n\t\tOR CONCAT(pers_lastname,REPLACE(pers_prefix,'_',' '),pers_firstname) LIKE '%{$quicksearch}%' \n\t\tOR CONCAT(pers_lastname,pers_firstname,REPLACE(pers_prefix,'_',' ')) LIKE '%{$quicksearch}%' \n\t\tOR CONCAT(REPLACE(pers_prefix,'_',' '), pers_lastname,pers_firstname) LIKE '%{$quicksearch}%'\n\t\t)";
$query .= " ORDER BY pers_lastname, pers_firstname ASC ";
$data = $dbh->query($query);
$num_rows = $data->rowCount();
if ($num_rows == NULL) {
    print __('No results found.');
} else {
    //while($info = mysql_fetch_array( $data )){
    while ($info = $data->fetch()) {
        $text = $info['pers_gedcomnumber'];
        print popup($text);
    }
    print '<li data-role="list-divider">  </li>';
}
print '</ul>';
include_once "footer.php";
        if ($num['counter'] > 0) {
            addnav("Random Validate Avatars", "runmodule.php?module=avatar&op=validate&mode=validate");
            $sql = "SELECT a.login as login, u.userid as acctid ,a.name as name,a.emailaddress as email FROM " . db_prefix("module_userprefs") . " AS u INNER JOIN " . db_prefix("module_userprefs") . " AS t RIGHT JOIN " . db_prefix("accounts") . " AS a ON u.userid=t.userid AND a.acctid=u.userid WHERE u.modulename='avatar' AND u.setting='avatar' AND u.value!='' AND t.modulename='avatar' AND t.setting='validated' AND t.value!='1' ORDER BY a.login LIMIT 20;";
            $result = db_query($sql);
            output("Click on the name to YOM a user and on a picture to view it in original size.`n`n");
            rawoutput("<table border='0' cellpadding='2' cellspacing='0' width='100%'>");
            rawoutput("<tr class='trhead'><td>" . translate_inline("Picture") . "</td><td>" . translate_inline("Name") . "</td><td>" . translate_inline("Ops") . "</td></tr>");
            $i = 0;
            $details = translate_inline("Details");
            $validate = translate_inline("Validate directly");
            $deny = translate_inline("Deny+Set Default Picture");
            while ($row = db_fetch_assoc($result)) {
                $i = !$i;
                $url = get_module_pref("avatar", "avatar", $row['acctid']);
                rawoutput("<tr class='" . ($i ? "trlight" : "trdark") . "'><td><a href='{$url}' target='_blank'><img src='{$url}' align='center' width='150' height='150'></a></td><td>");
                rawoutput("<a href='mail.php?op=write&to={$row['login']}' class='colLtGreen' target='_blank' onClick=\"" . popup("mail.php?op=write&to={$row['login']}") . ";return false;\">" . sanitize($row['name']) . "</a></td><td>");
                rawoutput("<a href='runmodule.php?module=avatar&op=validate&mode=validate&who={$row['acctid']}'>{$details}</a><br><br>");
                addnav("", "runmodule.php?module=avatar&op=validate&mode=validate&who={$row['acctid']}");
                rawoutput("<a href='runmodule.php?module=avatar&op=validate&mode=&giveok=1&user={$row['acctid']}'>{$validate}</a><br><br>");
                rawoutput("<a href='runmodule.php?module=avatar&op=validate&mode=&deny=1&user={$row['acctid']}'>{$deny}</a><br><br></td></tr>");
                addnav("", "runmodule.php?module=avatar&op=validate&mode=&deny=1&user={$row['acctid']}");
                addnav("", "runmodule.php?module=avatar&op=validate&mode=&giveok=1&user={$row['acctid']}");
            }
            rawoutput("</table>");
        }
        addnav("Invalidate Avatars", "runmodule.php?module=avatar&op=validate&mode=invalidate");
        break;
}
require_once "lib/commentary.php";
addcommentary();
commentdisplay("`n`n`@Validation Discussions`n", "AvatarVal", "Talk", 30, "says");
示例#23
0
$result = db_query($sql) or die(sql_error($sql));
$max = db_num_rows($result);
if ($max>100) {
	output("`\$Too many names match that search.  Showing only the first 100.`0`n");
}

output("<table border=0 cellpadding=2 cellspacing=1 bgcolor='#999999'>",true);
output("<tr class='trhead'><td><b>Alive</b></td><td><b>Level</b></td><td><b>Name</b></td><td><b>Location</b></td><td><b>Sex</b></td><td><b>Last on</b></tr>",true);
for($i=0;$i<$max;$i++){
	$row = db_fetch_assoc($result);
	output("<tr class='".($i%2?"trdark":"trlight")."'><td>",true);
	output($row[alive]?"`1Yes`0":"`4No`0");
	output("</td><td>",true);
	output("`^$row[level]`0");
	output("</td><td>",true);
	if ($session[user][loggedin]) output("<a href=\"mail.php?op=write&to=".rawurlencode($row['login'])."\" target=\"_blank\" onClick=\"".popup("mail.php?op=write&to=".rawurlencode($row['login'])."").";return false;\"><img src='images/newscroll.GIF' width='16' height='16' alt='Write Mail' border='0'></a>",true);
	if ($session[user][loggedin]) output("<a href='bio.php?char=".rawurlencode($row['login'])."'>",true);
	if ($session[user][loggedin]) addnav("","bio.php?char=".rawurlencode($row['login'])."");
	output("`&$row[name]`0");
	if ($session[user][loggedin]) output("</a>",true);
	output("</td><td>",true);
	$loggedin=(date("U") - strtotime($row[laston]) < getsetting("LOGINTIMEOUT",900) && $row[loggedin]);
	output($row[location]
				?"`3Boar's Head Inn`0"
				:(
					$loggedin
					?"`#Online`0"
					:"`3The Fields`0"
					)
			);
	output("</td><td>",true);
示例#24
0
<?php

include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.system.network.inc';
$users = new usersMenus();
if (!$users->AsPostfixAdministrator) {
    $tpl = new templates();
    $error = $tpl->javascript_parse_text("{ERROR_NO_PRIVS}");
    echo "alert('{$error}')";
    die;
}
if (isset($_GET["popup"])) {
    echo popup();
    exit;
}
if (isset($_GET["CyrusLMTPListen"])) {
    save();
    exit;
}
js();
function js()
{
    $tpl = new templates();
    $title = $tpl->_ENGINE_parse_body('{cyrus_net_behavior}');
    $page = CurrentPageName();
    $prefix = "cyrus_lmtp_php";
    $html = "\n\nfunction CYRUS_LMTP(){\n\tYahooWin('550','{$page}?popup=yes','{$title}');\n}\n\n\tfunction CyrusEnableLMTPUnixSwitch(){\n\t\t\tif(document.getElementById('CyrusEnableLMTPUnix').checked){\n\t\t\t\tdocument.getElementById('lmtp_ipaddr').disabled=true;\n\t\t\t\tdocument.getElementById('lmtp_port').disabled=true;\n\t\t\t}else{\n\t\t\t\tdocument.getElementById('lmtp_ipaddr').disabled=false;\n\t\t\t\tdocument.getElementById('lmtp_port').disabled=false;\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\n\n\n\nCYRUS_LMTP();";
    echo $html;
}
示例#25
0
文件: ajax.php 项目: philum/cms
    }
    if ($res) {
        list($s, $h) = split('-', $res);
    }
    $s = $s ? $s : 640;
    if ($id) {
        req(str_replace('-', ',', $id));
    }
    $ret = call_user_func_array($va, array($opt, $optb, $res));
}
$eye = array('art', 'popart', 'popartmod');
if ($eye[$n]) {
    eye();
}
if ($tt && $pp) {
    $t = $tt;
}
if ($t == 'pagup') {
    $ret = pagup($ret);
} elseif ($t) {
    $ret = popup($t, $ret, $s, $p);
}
//
if (Head::$add) {
    Head::add('meta', array('http-equiv', 'Content-Type', 'text/html; charset=' . $_SESSION['enc']));
    echo Head::generate();
} else {
    header('Content-Type:text/html; charset=' . $_SESSION['enc']);
}
echo utf($ret);
mysql_close();
 }
 addnav("Petition Viewer", "viewpetition.php");
 addnav("Petition Ops");
 addnav("Close Petition", "viewpetition.php?setstat=2&id={$_GET['id']}");
 addnav("U?Mark Unseen", "viewpetition.php?setstat=0&id={$_GET['id']}");
 addnav("S?Mark Seen", "viewpetition.php?setstat=1&id={$_GET['id']}");
 $sql = "SELECT accounts.name,accounts.login,accounts.acctid,petitions.date,petitions.status,petitionid,body,pageinfo FROM petitions LEFT JOIN accounts ON accounts.acctid=petitions.author WHERE petitionid='{$_GET['id']}' ORDER BY date ASC";
 $result = db_query($sql);
 $row = db_fetch_assoc($result);
 if ($row['acctid'] > 0) {
     addnav("Edit User Record", "user.php?op=edit&userid={$row['acctid']}&returnpetition={$_GET['id']}");
 }
 output("`@From: ");
 $row[body] = stripslashes($row[body]);
 if ($row['login'] > "") {
     output("<a href=\"mail.php?op=write&to=" . rawurlencode($row[login]) . "&body=" . URLEncode("\n\n----- Your Petition -----\n" . $row[body]) . "&subject=RE:+Petition\" target=\"_blank\" onClick=\"" . popup("mail.php?op=write&to=" . rawurlencode($row[login]) . "&body=" . URLEncode("\n\n----- Your Petition -----\n" . $row[body]) . "&subject=RE:+Petition") . ";return false;\"><img src='images/newscroll.png' width='16' height='16' alt='Write Mail' border='0'></a>", true);
 }
 output("`^`b{$row['name']}`b`n");
 output("`@Date: `^`b{$row['date']}`b`n");
 output("`@Body:`^`n");
 $body = HTMLEntities($row[body]);
 $body = preg_replace("'([[:alnum:]_.-]+[@][[:alnum:]_.-]{2,}([.][[:alnum:]_.-]{2,})+)'i", "<a href='mailto:\\1?subject=RE: Petition&body=" . str_replace("+", " ", URLEncode("\n\n----- Your Petition -----\n" . $row[body])) . "'>\\1</a>", $body);
 $body = preg_replace("'([\\[][[:alnum:]_.-]+[\\]])'i", "<span class='colLtRed'>\\1</span>", $body);
 $output .= "<span style='font-family: fixed-width'>" . nl2br($body) . "</span>";
 output("`n`@Commentary:`n");
 viewcommentary("pet-{$_GET['id']}", "Add", 200);
 if ($_GET['viewpageinfo']) {
     output("`n`n`@Page Info:`&`n");
     $row[pageinfo] = stripslashes($row[pageinfo]);
     $body = HTMLEntities($row[pageinfo]);
     $body = preg_replace("'([[:alnum:]_.-]+[@][[:alnum:]_.-]{2,}([.][[:alnum:]_.-]{2,})+)'i", "<a href='mailto:\\1?subject=RE: Petition&body=" . str_replace("+", " ", URLEncode("\n\n----- Your Petition -----\n" . $row[body])) . "'>\\1</a>", $body);
示例#27
0
<?php

require_once "common.php";
checkday();
$result = db_query("SELECT login,name,level,sex,title,specialty,hashorse,acctid,resurrections,bio,dragonkills,race FROM accounts WHERE login='******'char']}'");
$row = db_fetch_assoc($result);
$row[login] = rawurlencode($row['login']);
page_header("Character Biography: " . preg_replace("'[`].'", "", $row['name']));
$specialty = array(0 => "Unspecified", "Dark Arts", "Mystical Powers", "Thieving Skills");
//$horses=array(0=>"None","Pony","Gelding","Stallion");
output("`^Biography for " . $row['name'] . "");
if ($session['user']['loggedin']) {
    output("<a href=\"mail.php?op=write&to={$row['login']}\" target=\"_blank\" onClick=\"" . popup("mail.php?op=write&to={$row['login']}") . ";return false;\"><img src='images/newscroll.png' width='16' height='16' alt='Write Mail' border='0'></a>", true);
}
output("`n`n");
output("`^Title: `@" . $row['title'] . "`n");
output("`^Level: `@" . $row['level'] . "`n");
output("`^Resurrections: `@" . $row['resurrections'] . "`n");
output("`^Race: `@" . $races[$row['race']] . "`n");
output("`^Gender: `@" . ($row['sex'] ? "Female" : "Male") . "`n");
output("`^Specialty: `@" . $specialty[$row['specialty']] . "`n");
$sql = "SELECT mountname FROM mounts WHERE mountid='{$row['hashorse']}'";
$result = db_query($sql);
$mount = db_fetch_assoc($result);
if ($mount['mountname'] == "") {
    $mount['mountname'] = "`iNone`i";
}
output("`^Creature: `@" . $mount['mountname'] . "`n");
if ($row['dragonkills'] > 0) {
    output("`^Dragon Kills: `@" . $row['dragonkills'] . "`n");
}
 if ($row['acctid'] > 0 && $session['user']['superuser'] & SU_EDIT_DONATIONS) {
     addnav("User Ops");
     addnav("Edit User Donations", "donators.php?op=add1&name=" . rawurlencode($row['login']) . "&ret=" . urlencode($_SERVER['REQUEST_URI']));
 }
 $write = translate_inline("Write Mail");
 // We assume that petitions are handled in default language
 $yourpeti = translate_mail("Your Petition", 0);
 $peti = translate_mail("Petition", 0);
 $row['body'] = str_replace("[charname]", translate_mail("[charname]", 0), $row['body']);
 $row['body'] = str_replace("[email]", translate_mail("[email]", 0), $row['body']);
 $row['body'] = str_replace("[description]", translate_mail("[description]", 0), $row['body']);
 // For email replies, make sure we don't overflow the URI buffer.
 $reppet = substr(stripslashes($row['body']), 0, 2000);
 output("`@From: ");
 if ($row['login'] > "") {
     rawoutput("<a href=\"mail.php?op=write&to=" . rawurlencode($row['login']) . "&body=" . rawurlencode("\n\n----- {$yourpeti} -----\n{$reppet}") . "&subject=RE:+{$peti}\" target=\"_blank\" onClick=\"" . popup("mail.php?op=write&to=" . rawurlencode($row['login']) . "&body=" . rawurlencode("\n\n----- {$yourpeti} -----\n{$reppet}") . "&subject=RE:+{$peti}") . ";return false;\"><img src='images/newscroll.GIF' width='16' height='16' alt='{$write}' border='0'></a>");
 }
 output_notl("`^`b%s`b`n", $row['name']);
 output("`@Date: `^`b%s`b (%s)`n", $row['date'], relativedate($row['date']));
 output("`@Status: %s`n", $statuses[$row['status']]);
 if ($row['closedate'] != '0000-00-00 00:00:00') {
     output("`@Last Update: `^%s`@ on `^%s (%s)`n", $row['closer'], $row['closedate'], dhms(strtotime('now') - strtotime($row['closedate']), true));
 }
 output("`@Body:`^`n");
 $body = htmlentities(stripslashes($row['body']), ENT_COMPAT, getsetting("charset", "ISO-8859-1"));
 $body = preg_replace("'([[:alnum:]_.-]+[@][[:alnum:]_.-]{2,}([.][[:alnum:]_.-]{2,})+)'i", "<a href='mailto:\\1?subject=RE: {$peti}&body=" . str_replace("+", " ", URLEncode("\n\n----- {$yourpeti} -----\n" . $row['body'])) . "'>\\1</a>", $body);
 $body = preg_replace("'([\\[][[:alnum:]_.-]+[\\]])'i", "<span class='colLtRed'>\\1</span>", $body);
 rawoutput("<span style='font-family: fixed-width'>" . nl2br($body) . "</span>");
 commentdisplay("`n`@Commentary:`0`n", "pet-{$id}", "Add information", 200);
 if ($viewpageinfo) {
     output("`n`n`@Page Info:`&`n");
示例#29
0
<?php
if(isset($_GET["verbose"])){$GLOBALS["VERBOSE"]=true;ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string',null);ini_set('error_append_string',null);}
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.os.system.inc');
	include_once('ressources/class.os.system.tools.inc');

	$usersmenus=new usersMenus();
	if($usersmenus->AsArticaAdministrator==true){}else{header('location:users.index.php');exit;}	

if(isset($_GET["PID"])){PIDInfos();exit;}
if(isset($_GET["reload"])){echo page_proc();exit;}
if(isset($_GET["KillProcessByPid"])){KillProcessByPid();exit;}
if(isset($_GET["popup"])){popup();exit;}
if(isset($_GET["getmem"])){getmem();exit;}
if(isset($_GET["getcpu"])){getCpu();exit;}
if(isset($_GET["taskslist"])){processes();exit;}
if(isset($_GET["home"])){home();exit;}
if(isset($_GET["home-b"])){home_b();exit;}
if(isset($_GET["home-c"])){home_c();exit;}
if(isset($_GET["task-m"])){tasks_start();exit;}
if(isset($_GET["clean-mem-js"])){clean_mem_js();exit;}
if(isset($_POST["clean-mem-perform"])){clean_mem_perform();exit;}
if(isset($_GET["tasks-list"])){task_list();exit;}
if(isset($_POST["kill9"])){kill9();exit;}
js();

function js(){
$page=CurrentPageName();
$prefix=str_replace(".","_",$page);	
 $target['login'] = rawurlencode($target['login']);
 $id = $target['acctid'];
 $target['return_link'] = $return;
 page_header("Character Biography: %s", full_sanitize($target['name']));
 tlschema("nav");
 addnav("Return");
 tlschema();
 if ($session['user']['superuser'] & SU_EDIT_USERS) {
     addnav("Superuser");
     addnav("Edit User", "user.php?op=edit&userid={$id}");
 }
 modulehook("biotop", $target);
 output("`^Biography for %s`^.", $target['name']);
 $write = translate_inline("Write Mail");
 if ($session['user']['loggedin']) {
     rawoutput("<a href=\"mail.php?op=write&to={$target['login']}\" target=\"_blank\" onClick=\"" . popup("mail.php?op=write&to={$target['login']}") . ";return false;\"><img src='images/newscroll.GIF' width='16' height='16' alt='{$write}' border='0'></a>");
 }
 output_notl("`n`n");
 if ($target['clanname'] > "" && getsetting("allowclans", false)) {
     $ranks = array(CLAN_APPLICANT => "`!Applicant`0", CLAN_MEMBER => "`3Member`0", CLAN_OFFICER => "`^Officer`0", CLAN_LEADER => "`&Leader`0", CLAN_FOUNDER => "`\$Founder");
     $ranks = modulehook("clanranks", array("ranks" => $ranks, "clanid" => $target['clanid']));
     tlschema("clans");
     //just to be in the right schema
     array_push($ranks['ranks'], "`\$Founder");
     $ranks = translate_inline($ranks['ranks']);
     tlschema();
     output("`@%s`2 is a %s`2 to `%%s`2`n", $target['name'], $ranks[$target['clanrank']], $target['clanname']);
 }
 output("`^Title: `@%s`n", $target['title']);
 output("`^Level: `@%s`n", $target['level']);
 $loggedin = false;