function product_picture_thumb($product_id) { $connect = Database(); include 'setting.php'; $picture = mysqli_fetch_array(mysqli_query($connect, "SELECT picture_id,picture_type FROM product_pictures WHERE product_id='{$product_id}' AND picture_index='#';")); $picture_id = $picture['picture_id']; $picture_type = $picture['picture_type']; $picture_url = $site_url . "/gallery/products/thumb/" . $picture_id . "." . $picture_type; return $picture_url; }
function wordvar($wordvar) { $connect = Database(); isset($_SESSION['language_code']) ? $language_code = $_SESSION['language_code'] : ($language_code = me('language_code')); if (empty($language_code)) { $language_code = "en"; } $query = mysqli_query($connect, "SELECT word FROM wordvars WHERE wordvar='{$wordvar}' AND language_code='{$language_code}'"); if (mysqli_num_rows($query) > 0) { $result = mysqli_fetch_assoc($query); $word = $result['word']; return $word; } else { return $wordvar; } }
function getcountry($ipaddress) { $connect = Database(); $query = mysqli_query($connect, "select country_code from geoIP where '{$ipaddress}' between ip_long_from and ip_long_to limit 0,1"); $result = mysqli_fetch_object($query); return $result->country_code; }
LicenseDomain_Add(); exit; } if (isset($_GET["LicenseDomain_edit"])) { LicenseDomain_edit(); exit; } if (isset($_GET["LicenseDomain_Delete"])) { LicenseDomain_Delete(); exit; } if (isset($_GET["action_keepup2date"])) { action_keepup2date(); exit; } $html = "<table><tr><td valign='top'>" . array_infos() . "</td><td valign='top' width=50%>" . LicenceInfos() . Database() . "</td></tr></table>"; $tpl = new templates('{title}', $html); echo $tpl->web_page; function array_infos() { $kav4mailservers = new kav4mailservers(); if ($kav4mailservers->error == true) { return "{error_no_socks}"; } $html = "\n<FIELDSET><LEGEND>{kav_title_infos}</LEGEND>\n<table style='width:400px'>\n<tr class=rowA>\n<td align=right>{pversion}:</td>\n<td align=right>{$kav4mailservers->version}</td>\n</tr>\n<tr class=rowA>\n<td align=right>{BasesPath}:</td>\n<td align=right>{$kav4mailservers->array_conf["path"]["BasesPath"]}</td>\n</tr>\n\n<tr class=rowA>\n<td align=right>{LocalSocketPath}:</td>\n<td align=right>{$kav4mailservers->array_conf["path"]["LocalSocketPath"]}</td>\n</tr>\n\n<tr class=rowA>\n<td align=right>{ForwardMailer}:</td>\n<td align=right>{$kav4mailservers->array_conf["smtpscan.general"]["ForwardMailer"]}</td>\n</tr>\n<tr class=rowA>\n<td align=right valign='top'>{protected_domains}:</td>\n<td align=right width=5%><div id='protected_domain'>" . protected_domains() . "</div></td>\n</tr>\n\n</table>"; /* =/var/run/aveserver AVSpidPATH=/var/run/aveserver.pid TempPath=/tmp
function useronline($session, $time, $time_check, $memberid) { $connect = Database(); if (!empty($_SERVER['HTTP_CLIENT_IP'])) { $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip = $_SERVER['REMOTE_ADDR']; } $getdetails = json_decode(file_get_contents("http://ipinfo.io/{$ip}")); $countrycode = $getdetails->country; $sql = "SELECT * FROM members_online WHERE session='{$session}' "; $result = mysqli_query($connect, $sql); $count = mysqli_num_rows($result); if ($count == 0) { $sql1 = "INSERT INTO members_online(session,member_id,ip,time,country) VALUES('{$session}','{$memberid}','{$ip}','{$time}','{$countrycode}')"; mysqli_query($connect, $sql1); } else { "{$sql2}=UPDATE members_online SET time='{$time}' WHERE session = '{$session}'"; $result2 = mysqli_query($connect, $sql2); } // if over 10 minute, delete session $sql4 = "DELETE FROM members_online WHERE time<{$time_check}"; $result4 = mysqli_query($connect, $sql4); //return $sql1; }
<link href="http://www.jinuemall.com/genius/css/style-responsive.css" rel="stylesheet" /> <table cellpadding="0" cellspacing="0" border="0" class="display table table-striped table-hover" id="dynamic-table"> <thead> <tr> <th>Pictured</th> <th>Fullname</th> <th class="hidden-phone">IP</th> <th class="hidden-phone">Country</th> <th class="hidden-phone">Session ID</th> <th class="hidden-phone">Time</th> </tr> </thead> <tbody> <?php $connect = Database(); $member_sql = mysqli_query($connect, 'SELECT * FROM members_online where 1 order by member_id DESC'); while ($member = mysqli_fetch_array($member_sql)) { ?> <tr> <td><img src="<?php echo $site_main; ?> /gallery/avatar/<?php echo selectname('members', 'member_avatar', 'member_id', $member['member_id']); ?> " width="35" width="35" alt="avatar member" class="img-circle"></td> <td><u><a href="<?php echo $site_url; ?> /profile/?id=<?php