function CheckFiles() { $this->title = 'Состояние файлов'; $GLOBALS['list_checkfiles'] = array(); function ScanDir_CheckFiles($dir) { $allowed_types = array('php', 'js', 'css', 'html', 'htm'); $files = scandir($dir); $files_info = array(); foreach ($files as $file) { if ($file == '.' || $file == '..') { continue; } if (is_file($dir . '/' . $file)) { $ext = explode('.', $file); $ext = end($ext); if (!in_array($ext, $allowed_types)) { continue; } $GLOBALS['list_checkfiles'][$dir . '/' . $file] = array('file' => $dir . '/' . $file, 'name' => $file, 'size' => filesize($dir . '/' . $file), 'md5' => md5_file($dir . '/' . $file), 'date' => filemtime($dir . '/' . $file)); } elseif (is_dir($dir . '/' . $file)) { ScanDir_CheckFiles($dir . '/' . $file); } } //return $list; } ScanDir_CheckFiles(DIR); $list = $GLOBALS['list_checkfiles']; unset($GLOBALS['list_checkfiles']); if (isset($_GET['save'])) { setVar('CheckFiles', serialize($list)); } $saved = unserialize(getVar('CheckFiles')); if (!$saved) { setVar('CheckFiles', serialize($list)); } /* $saved — Сохраненное состояние $list — Текущее состояние */ $allfiles = array_merge($saved, $list); foreach ($allfiles as $file => $info) { if (!isset($list[$file])) { $status = 'deleted'; } elseif (!isset($saved[$file])) { $status = 'new'; } elseif ($list[$file]['md5'] != $saved[$file]['md5']) { $status = 'modified'; } else { $status = 'actual'; } $result[] = array_merge($info, array('status' => $status)); } $this->content = tpl('modules/' . __CLASS__ . '/check_files', array('files' => $result, 'modulelink' => $this->GetLink('Info'), 'savelink' => $this->GetLink() . '&save')); }
</tr> <?php if ($_GET["action"] == "add") { $domadmin = getDomainAdminsGroup(); if ($domadmin) { setVar("tpl_groups", array($domadmin["cn"][0])); } else { setVar("tpl_groups", array()); } } else { $domadmin = getAdminUsersOnShare($share); if ($domadmin) { setVar("tpl_groups", $domadmin); } else { setVar("tpl_groups", array()); } } global $__TPLref; $__TPLref["autocomplete"] = "admin"; renderTPL("groups"); ?> </table> <?php if (!isset($customParameters) || empty($customParameters)) { $customParameters = array(''); } $cp = new MultipleInputTpl("customparameters", _("Custom parameters")); $cp->setRegexp('/^[a-z: _]+[ ]*=.*$/');
<?php $compress = setVar('compress'); $mode = setVar('mode'); $i = setVar('i', 'メロス'); $you = setVar('you', 'セリヌンティウス'); $scene = setVar('scene', 'dark'); $action = setVar('action'); $uaFlag = setVar('uaFlag'); $ua = $_SERVER['HTTP_USER_AGENT']; if ($mode == 'ipad' || ereg("iPad", $ua)) { $uaFlag = true; } function setVar() { $var = func_get_arg(0); if (func_num_args() > 1) { $num = htmlspecialchars(func_get_arg(1)); } else { $num = "0"; } return isset($_GET[$var]) ? htmlspecialchars($_GET[$var]) : $num; } function includeFiles() { $dir = func_get_args(); $content = ""; foreach ($dir as $lst) { $lst = './' . $lst; $drc = dir($lst); while ($fl = $drc->read()) {
function appendVar($var, $value, $context = 'global') { return setVar($var, getVar($var, null, $context) . $value, $context); }
} function getTksObj($data) { $h = $data['args']; return TKS_PREFIX . $h; } $data = array(); expQsData($data); $ret = ""; $cmd = strtolower($data['cmd']); switch ($cmd) { case "getep": $ret = getEP($data); break; case "getvar": $ret = getVar($data); break; case "setvar": $ret = setVar($data); break; case "tks-server": $ret = getTksObj($data); break; case "destroy": break; default: $ret = "Unknown command '" . $cmd . "'"; } print $ret; flush(); exit;
function setVarTab($handle, $zones, $index = array()) { if (is_array($index)) { if (count($index) > 0) { reset($index); while (list(, $key) = each($index)) { $tab = explode(".", $key); if (count($tab) == 2) { $var = $tab[1]; } else { $var = $tab[0]; } setVar($handle, $key, $zones[$var]); } } else { reset($zones); while (list($key, $val) = each($zones)) { setVar($handle, $key, $val); } } } else { setVar($handle, $index, $zones[$index]); } }
?> </td> </tr> <tr> <td> </td> <td> <?php echo _T("Users for this share"); ?> </td> </tr> <?php setVar("tpl_users", $acls[1]); $__TPLref["autocomplete"] = "user"; renderTPL("users"); ?> </table> </div> <?php if ($_GET["action"] == "add") { ?> <input name="bshareadd" type="submit" class="btnPrimary" value="<?php echo _T("Create"); ?> " /> <?php } else {
$channel = trim($_POST[$prefix . '_channel']); } else { $width = trim($_POST['channel_width_5']); $channel = trim($_POST[$prefix . '_channel_5']); } $command = "sh /www/bin/wl.sh save {$option}"; // Set the Sabai config to reflect latest settings exec("uci {$UCI_PATH} set sabai.wlradio{$option}.mode=\"" . $mode . "\""); exec("uci {$UCI_PATH} set sabai.wlradio{$option}.ssid=\"" . $ssid . "\""); exec("uci {$UCI_PATH} set sabai.wlradio{$option}.encryption=\"" . $encryption . "\""); exec("uci {$UCI_PATH} set sabai.wlradio{$option}.wpa_encryption=\"" . $wpa_encryption . "\""); exec("uci {$UCI_PATH} set sabai.wlradio{$option}.wpa_psk=\"" . $wpa_psk . "\""); if ($option == '0') { exec("uci {$UCI_PATH} set sabai.wlradio{$option}.auto=\"" . $auto . "\""); exec("uci {$UCI_PATH} set sabai.wlradio{$option}.channel_freq=\"" . $channel . "\""); exec("uci {$UCI_PATH} set sabai.wlradio{$option}.wpa_group_rekey=\"" . $wpa_rekey . "\""); exec("uci {$UCI_PATH} set sabai.wlradio{$option}.wepkeys=\"" . $wepkeys . "\""); exec("uci {$UCI_PATH} set sabai.wlradio{$option}.freq=\"" . $freq . "\""); exec("uci {$UCI_PATH} set sabai.wlradio{$option}.width=\"" . $width . "\""); } exec("uci -c /etc/config commit sabai"); exec($command); // Send completion message back to UI echo "res={ sabai: true, msg: 'Wireless settings applied' }"; } //Check what wl device must be configured if (isset($_POST['form_wl0'])) { setVar("wl", "0"); } else { setVar("wl1", "1"); }
function accept_connection($socket) { while (1) { try { $conn = stream_socket_accept($socket, 0); stream_set_blocking($conn, 0); stream_set_timeout($conn, 120); debug("new connection"); $start = time(); while (!feof($conn)) { if (time() - $start > 10) { break; } $req = trim(stream_socket_recvfrom($conn, 1024)); if (strlen($req) == 0) { continue; } debug("received {$req}"); $eof = false; if (strpos($req, "EOF") !== false) { $eof = true; $req = str_replace("EOF", "", $req); } $cmd = explode("|", $req); debug("command count: " . (count($cmd) - 1)); for ($i = 0; $i < count($cmd) - 1; $i++) { $c = $cmd[$i]; debug("command #{$i}: {$c}"); $c = preg_replace('/ 0+(\\d+)$/', ' $1', $c); $id = substr($c, 0, strpos($c, " ")); $c = substr($c, strpos($c, " ") + 1); if (!preg_match(SYNTAX, $c) && !preg_match(SYNTAX_IP, $c) && !preg_match(SYNTAX_PORT, $c) || !is_numeric($id) && $id != '*') { debug("invalid entry: " . $cmd[$i]); continue; } $host = substr($c, strpos($c, "-s ") + strlen("-s "), strpos($c, "/32") - strpos($c, "-s ") - strlen("-s ")); $cmds = array(); $type = substr($c, 0, strpos($c, " ")); debug("type = {$type}"); if ((preg_match(SYNTAX, $c) || preg_match(SYNTAX_IP, $c)) && preg_match('/[^0-9\\.]/', $host)) { debug("getting ip"); $ips = getips($id, $host, $type); //debug("lock block 1 took " .(microtime(true) - $start)); debug("got ip"); // for these hosts, let the rules be evicted rather than remove them, since it will be overkill // as they are used very often foreach ($ips as $ip) { $cmds[] = str_replace($host, $ip, $c); } } else { $cmds[] = $c; } foreach ($cmds as $c) { $c = substr($c, strpos($c, " ") + 1); lock(); //$start = microtime(true); $adds = getVar(); if ($type == '-A') { $exists = $adds[$c]; if ($exists && my_array_search($id, $adds[$c]) !== false) { unlock(); continue; } $adds[$c][] = $id . ":" . time(); setVar($adds); if (!$exists) { debug("adding entry {$c}"); iptables($c, "-A"); } } else { if ($type == '-D') { if (checkDeleted($adds, $id, $c)) { debug("deleting entry {$c}"); iptables($c, "-D"); } } } //debug("lock block 2 took " .(microtime(true) - $start)); unlock(); } } if ($eof) { debug("next.."); break; } usleep(50000); } stream_socket_sendto($conn, "BYE"); @fclose($conn); } catch (Exception $e) { try { unlock(); // in case it was locked unlock(DNS_INDEX); } catch (Exception $ex) { // ignore } } usleep(50000); } }
function head($args) { global $pdo; //Defining all variables $default_values = ['title' => 'Green Engrave - Creatieve naambordjes voor al uw flora', 'desc' => 'Stijlvolle naambordjes gegraveerd op duurzaam kunstof voor al uw bomen, planten, struiken en andere flora. Uw eigen design eenvoudig besteld bij Green Engrave.', 'keywords' => 'Green, Engrave, Flora, Bloemen, Naambordjes, Graveerd, Gegraveerde, Bomen, Struiken, Kunstof, Designed, Database, Uniek, Online, Bestellen', 'body_extend' => '', 'header_title' => '', 'header_desc' => '']; $args = array_merge($default_values, array_intersect_key($args, $default_values)); list($title, $desc, $keywords, $body_extend, $header_title, $header_desc) = array_values($args); //Checking what header to use if (strpos($body_extend, 'intro') !== false) { $intro = 1; // big intro header $large_header = 1; // large/fixed header } else { $intro = 0; // no big intro header if (empty($header_title) and empty($header_desc)) { $large_header = 0; // small static header } else { $large_header = 1; // large fixed header } } if (isset($_GET['actie']) and $_GET['actie'] == 'verwijder') { $errors = []; $error_count = 0; $id = input($_GET['id']); $query = $pdo->prepare("SELECT cookie_uid FROM cartitems WHERE id = :id"); $query->execute(array(':id' => $id)); $item = $query->fetch(PDO::FETCH_OBJ); if (!count($item) || $item->cookie_uid != $_COOKIE['UID']) { $pdo = null; header('Location: /'); exit; } $query = $pdo->prepare("DELETE FROM cartitems WHERE id = :id"); $query->execute(array(':id' => $id)); } ?> <!DOCTYPE html> <html lang="nl"> <head> <meta charset="utf-8"> <title><?php echo $title; ?> </title> <!-- SEO --> <meta name="description" content="<?php echo $desc; ?> " /> <meta name="keywords" content="<?php echo $keywords; ?> " /> <!-- Favicons --> <link rel="shortcut icon" href="/img/favicon.ico" /> <!-- Responsive Tag --> <meta name="viewport" content="width=device-width" /> <!-- CSS Files --> <link rel="stylesheet" href="/css/bootstrap.min.css" /> <link rel="stylesheet" href="/css/font-awesome/css/font-awesome.css" /> <link rel="stylesheet" href="/css/plugin.css" /> <link rel="stylesheet" href="/css/main.css" /> <link href="/css/themes/green.css" rel="stylesheet" /> <!--[if lt IE 9]> <script src="js/vendor/html5-3.6-respond-1.4.2.min.js"></script> <![endif]--> </head> <body<?php echo $body_extend; ?> > <!--[if lt IE 8]> <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p> <![endif]--> <!-- Preloder--> <div class="preloder animated"> <div class="scoket"> <img src="/img/preloader.svg" alt="" /> </div> </div> <div class="body"> <?php if (!$intro) { echo ' <div class="main-wrapper"> '; } ?> <!-- Navigation--> <nav class="navbar<?php echo $large_header ? ' navbar-fixed-top' : ' navbar-static-top'; ?> "> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="/"> <img src="/img/nav-logo.png" alt="nav-logo"> </a> </div> <div id="navbar" class="navbar-collapse collapse"> <ul class="nav navbar-nav navbar-right"> <li><a href="/">Home</a></li> <li><a href="/naambordjes-ontwerpen">Naambordjes</a></li> <li><a href="/flora-database">Flora Database</a></li> <li><a href="/recensies">Recensies</a></li> <li><a href="/contact">Contact</a></li> <li class="dropdown"> <a href="/aanmelden" class="css-pointer dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-user fsc pull-left"></i> <span class="caret"></span> </a> <ul class="dropdown-menu"> <?php if (getRole() == 0) { // For guests ?> <li><a href="/aanmelden">Inloggen</a></li> <li><a href="/registreren">Registreren</a></li> <?php } else { // For users ?> <li><a href="/gebruikerspaneel">Gebruikerspaneel</a></li> <?php if (getRole() >= 2) { //For Mod/Admin ?> <li><a href="/beheerderspaneel/index">Beheerderspaneel</a></li> <?php } ?> <li><a href="/gebruikerspaneel/uitloggen">Uitloggen</a></li> <?php } ?> </ul> </li> <li class="dropdown"> <a href="/winkelwagen" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-shopping-cart fsc pull-left"></i> <span class="cart-number"> <?php $query = $pdo->prepare("SELECT * FROM cartitems WHERE cookie_uid = :cookie_uid ORDER BY created ASC"); $query->execute(array(':cookie_uid' => $_COOKIE['UID'])); $count = $query->rowCount(); echo $count; ?> </span> <span class="caret"></span> </a> <div class="cart-content dropdown-menu"> <div class="cart-title"> <h4>Winkelwagen</h4> </div> <div class="cart-items"> <?php $total = '0.00'; if ($count > 0) { while ($cart = $query->fetch(PDO::FETCH_OBJ)) { $query_product = $pdo->query("SELECT * FROM products WHERE id = {$cart->products_id}"); $query_material = $pdo->query("SELECT * FROM materials WHERE id = {$cart->materials_id}"); $query_size = $pdo->query("SELECT * FROM sizes WHERE id = {$cart->sizes_id}"); $query_font = $pdo->query("SELECT * FROM fonts WHERE id = {$cart->fonts_id}"); $query_color = $pdo->query("SELECT * FROM colors WHERE id = {$cart->colors_id}"); $query_extra = $pdo->query("SELECT * FROM extras WHERE id = {$cart->extras_id}"); $product = $query_product->fetch(PDO::FETCH_OBJ); $material = $query_material->fetch(PDO::FETCH_OBJ); $size = $query_size->fetch(PDO::FETCH_OBJ); $font = $query_font->fetch(PDO::FETCH_OBJ); $color = $query_color->fetch(PDO::FETCH_OBJ); $extra = $query_extra->fetch(PDO::FETCH_OBJ); // Calculate subtotal for each cart item. $subtotal = $cart->quantity * ($product->price + $material->price + $size->price + $extra->price); $total = setVar($total) + $subtotal; ?> <div class="cart-item clearfix"> <div class="cart-item-image"> <a href="./shop_single_full.html"><img src="/img/cart-img1.jpg" alt="Bordje 2"></a> </div> <div class="cart-item-desc"> <a href="./shop_single_full.html">N44M80RDJ3</a> <span class="cart-item-price"><?php echo $subtotal; ?> </span> <span class="cart-item-quantity">(<?php echo $cart->quantity; ?> )</span> <a href="?actie=verwijder&id=<?php echo $cart->id; ?> "><i class="fa fa-times ci-close"></i></a> </div> </div> <?php } } ?> </div> <div class="cart-action clearfix"> <span class="pull-left checkout-price">€ <?php echo $total; ?> </span> <a class="btn btn-default pull-right" href="/winkelwagen">Bestellen</a> </div> </div> </li> </ul> </div> <!--/.navbar-collapse --> </div> </nav> <?php if (!$intro) { ?> <!-- Page Header --> <section class="page_header<?php echo $large_header ? '' : ' vertical-padding'; ?> "> <?php if ($large_header) { ?> <div class="container"> <div class="row"> <div class="col-md-12 text-center"> <h2 class="text-uppercase"><?php echo $header_title; ?> </h2> <p><?php echo $header_desc; ?> </p> </div> </div> </div> <?php } ?> </section> <?php } ?> <?php }
} /* echo 'REQUEST_URI:'.$_SERVER['REQUEST_URI']; echo 'QUERY_STRING:'.$_SERVER['QUERY_STRING']; print_r($_REQUEST); exit; */ // BRANDS MOD setVarFromRequest("brandID",0,1); // numeric if (! brands::isValidBrandForFilter($brandID) ) setVar("brandID",0); setVarFromRequest("pilotID",0,0); setVarFromRequest("takeoffID",0,1); setVarFromRequest("country",$PREFS->viewCountry); if ($country=='world') setVar('country',0); setVarFromRequest("op",$CONF_main_page); setVarFromRequest("cat",$PREFS->viewCat,1); setVarFromRequest("class",0,1); setVarFromRequest("xctype",0,1); setVarFromRequest("subcat","pg"); setVarFromRequest("comp",0,1); setVarFromRequest("rank",0,1); setVarFromRequest("subrank",0,1); setVarFromRequest("clubID",0,1); /// Martin Jursa 17.05.2007 : values for nacclub filtering added setVarFromRequest("nacclubid", 0, 1); setVarFromRequest("nacid", 0, 1); // The filter for displaying only flights with photos
echo 'REQUEST_URI:'.$_SERVER['REQUEST_URI']; echo 'QUERY_STRING:'.$_SERVER['QUERY_STRING']; print_r($_REQUEST); exit; */ // BRANDS MOD setVarFromRequest("brandID", 0, 1); // numeric if (!brands::isValidBrandForFilter($brandID)) { setVar("brandID", 0); } setVarFromRequest("pilotID", 0, 0); setVarFromRequest("takeoffID", 0, 1); setVarFromRequest("country", $PREFS->viewCountry); if ($country == 'world') { setVar('country', 0); } setVarFromRequest("op", $CONF_main_page); setVarFromRequest("cat", $PREFS->viewCat, 1); setVarFromRequest("class", 0, 1); setVarFromRequest("xctype", 0, 1); setVarFromRequest("subcat", "pg"); setVarFromRequest("comp", 0, 1); setVarFromRequest("rank", 0, 1); setVarFromRequest("subrank", 0, 1); setVarFromRequest("clubID", 0, 1); /// Martin Jursa 17.05.2007 : values for nacclub filtering added setVarFromRequest("nacclubid", 0, 1); setVarFromRequest("nacid", 0, 1); // The filter for displaying only flights with photos setVarFromRequest("filter01", 0, 1);
?> <tr> <td><?php echo $order->id; ?> </td> <td><?php echo statusPayment($order->transaction); ?> </td> <td><?php echo statusOrder($order->status); ?> </td> <td><?php echo setVar($total); ?> </td> <td><?php echo $order->created; ?> </td> <td><a href="gebruikerspaneel?id=<?php echo $order->id; ?> ">View</a></td> </tr> <?php unset($total); // Unset total price for next orders. }
global $pdb; $name = htmlspecialchars(trim($name)); $value = htmlspecialchars(trim($value)); $pdb->query("UPDATE goodie_vars SET value='$value' WHERE name='$name'"); if($pdb->affectedRows() == 0) { $pdb->query("INSERT INTO goodie_vars (name,value) VALUES('$name', '$value')"); } } //process POST if($_POST['save_general']) { //save data setVar('admin_number', $_POST['admin_number']); setVar('phone_number', $_POST['phone_number']); setVar('email', $_POST['email']); setVar('notification_subject', $_POST['subject']); //save files if($_FILES['intro']['tmp_name']) { $uploadOK = move_uploaded_file($_FILES['intro']['tmp_name'], $config['recorded_dir'] . "/intro.wav"); } if($_FILES['help']['tmp_name']) { $uploadOK = move_uploaded_file($_FILES['help']['tmp_name'], $config['recorded_dir'] . "/help.wav"); } if($_FILES['navigation']['tmp_name']) { $uploadOK = move_uploaded_file($_FILES['navigation']['tmp_name'], $config['recorded_dir'] . "/navigation.wav"); } if($_FILES['applicant_intro']['tmp_name']) { $uploadOK = move_uploaded_file($_FILES['applicant_intro']['tmp_name'], $config['recorded_dir'] . "/applicant_intro.wav"); } if($_FILES['applicant_help']['tmp_name']) {
$board_config['sitename'] = $_SERVER['SERVER_NAME']; $lang['ENCODING'] = $langEncodings[$currentlang]; // set page title $page_title = 'LEONARDO'; // Start session management $user->session_begin(); $auth->acl($user->data); $user->setup(); $mode = request_var('mode', ''); // print_r($user); if (!function_exists('is_user')) { function is_user($user) { if ($user->data['userID']) { return true; } else { return false; } } } require_once dirname(__FILE__) . '/functions.php'; setVarFromRequest("clubID", 0, 1); $clubID = makeSane($clubID, 1); if ($clubID) { // some things we do when first in club if (is_array($clubsList[$clubID]['gliderCat'])) { setVar("cat", 0); } setVar("lng", $clubsList[$clubID]['lang']); $currentlang = $lng; }
while ($cart = $query->fetch(PDO::FETCH_OBJ)) { $query_product = $pdo->query("SELECT * FROM products WHERE id = {$cart->products_id}"); $query_material = $pdo->query("SELECT * FROM materials WHERE id = {$cart->materials_id}"); $query_size = $pdo->query("SELECT * FROM sizes WHERE id = {$cart->sizes_id}"); $query_font = $pdo->query("SELECT * FROM fonts WHERE id = {$cart->fonts_id}"); $query_color = $pdo->query("SELECT * FROM colors WHERE id = {$cart->colors_id}"); $query_extra = $pdo->query("SELECT * FROM extras WHERE id = {$cart->extras_id}"); $product = $query_product->fetch(PDO::FETCH_OBJ); $material = $query_material->fetch(PDO::FETCH_OBJ); $size = $query_size->fetch(PDO::FETCH_OBJ); $font = $query_font->fetch(PDO::FETCH_OBJ); $color = $query_color->fetch(PDO::FETCH_OBJ); $extra = $query_extra->fetch(PDO::FETCH_OBJ); // Calculate subtotal for each cart item. $subtotal = $cart->quantity * ($product->price + $material->price + $size->price + $extra->price); $total = setVar($total) + $subtotal; ?> <form method="post" action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']); ?> "> <input type="hidden" name="id" value="<?php echo $cart->id; ?> "> <tr> <td><?php echo $material->name; ?> </td> <td><?php
function icqStatus($uin, $return = false) { $stored = getVar('icq:' . $uin); $upd = true; $nowtime = time(); if (!empty($stored)) { $stored = unserialize($stored); if ($stored['when'] + 3600 <= $nowtime) { $upd = true; } else { $upd = false; } } if ($upd) { //Проверка icq статуса $status = 'na'; $fp = @fsockopen("status.icq.com", 80); if ($fp) { fputs($fp, "GET /online.gif?icq={$uin}&img=5 HTTP/1.0\n\n"); while ($line = fgets($fp, 128)) { if (strpos($line, 'Location') !== false) { if (strpos($line, 'online1') !== false) { $status = 'online'; } elseif (strpos($line, 'online0') !== false) { $status = 'offline'; } break; } } } $stored = array('when' => $nowtime, 'status' => $status); setVar('icq:' . $uin, serialize($stored)); } if ($return) { return $stored['status']; } else { echo '<img src="/Images/Icons/icq/' . $stored['status'] . '.gif" width="15" height="15" alt="icq ' . $stored['status'] . '" /> ' . $uin; } }