function GetUniqueID() { static $arID = array(); $iUniq = rand(); if (in_array($iUniq, $arID)) { $iUniq = GetUniqueID(); } else { $arID[] = $iUniq; } return $iUniq; }
exit; } if (isset($_GET["status-forced"])) { Global_Applications_Status(); exit; } if (isset($_GET["system-reboot"])) { shell_exec("reboot"); exit; } if (isset($_GET["system-shutdown"])) { shell_exec("init 0"); exit; } if (isset($_GET["system-unique-id"])) { GetUniqueID(); exit; } if (isset($_GET["system-debian-kernel"])) { system_debian_kernel(); exit; } if (isset($_GET["system-debian-upgrade-kernel"])) { system_debian_kernel_upgrade(); exit; } //clamav if (isset($_GET["update-clamav"])) { ClamavUpdate(); exit; }
public function PrintAsHTML($style_addition = '') { global $parser, $_loggedin, $domain, $_loginaccount, $__server_time; $parser->parse($this->content); $username = $this->account->GetUsername(); $own_post = $_loggedin && ($this->account_id == $_loginaccount->GetID() || $_loginaccount->IsRankOrHigher(RANK_MODERATOR)); $reply_info = $this->reply_to == NULL ? NULL : $this->GetReplyInfo($this->reply_to); $object_id = GetUniqueID(); if (strpos($this->character, ':') === false) { $this->character = 'gms:' . $this->character; } $tmp = explode(':', $this->character); $main_char = $tmp[1]; $locale = $tmp[0]; $account_rank = $this->account->GetAccountRank(); ?> <div class="status<?php echo $this->override == 1 ? ' notification' : ''; echo $style_addition; ?> " status-id="<?php echo $this->id; ?> " unique-id="<?php echo $object_id; ?> "> <div class="header"> <?php MakePlayerAvatar($main_char, $locale, array('face' => $this->using_face)); ?> <br /> <p> <a href="//<?php echo $username; ?> .mapler.me/"><?php echo $this->nickname; ?> </a> <span class="faded">(@<?php echo $username; ?> )</span> <?php if ($account_rank >= RANK_MODERATOR) { ?> <span class="ct-label"><i class="icon-star"></i> <?php echo GetRankTitle($account_rank); ?> </span> <?php } if ($this->blog !== 0) { ?> <span class="ct-label"><i class="icon-bullhorn"></i> Blog Post</span> <?php } ?> </p> </div> <br /> <div class="status-contents"> <?php echo $parser->getAsHtml(); ?> </div> <div class="status-extra" style="clear:both;"> <?php if ($reply_info != NULL) { ?> <a href="//mapler.me/stream/status/<?php echo $reply_info['id']; ?> " style="float: left;" class="reply-to">Replied to <?php echo $reply_info['nickname']; ?> <i class="icon-chevron-right"></i></a> <?php } if ($_loggedin) { ?> <a href="#post" role="button" data-toggle="modal" class="mention" status-id="<?php echo $this->id; ?> " poster="<?php echo $username; ?> " mentions="<?php echo implode(';', $this->mention_list); ?> "><i class="icon-share-alt"></i> Reply (<span class="status-reply-count"><?php echo $this->reply_count; ?> </span>)</a> <?php } ?> <a href="//<?php echo $domain; ?> /stream/status/<?php echo $this->id; ?> " status-post-time="<?php echo $__server_time - $this->seconds_since; ?> " class="status-time"><?php echo time_elapsed_string($this->seconds_since); ?> ago</a> <?php if ($_loggedin) { if ($own_post) { ?> <a href="#" class="deletestatus" onclick="return false;"><i class="icon-remove"></i></a> <?php } ?> <a href="//<?php echo $domain; ?> /report/status/<?php echo $this->id; ?> " class="reportstatus"><i class="icon-flag"></i></a> <?php } ?> </div> <div class="reply-list" status-id="<?php echo $this->id; ?> " unique-id="<?php echo $object_id; ?> "></div> </div> <?php }
if(isset($_GET["kav4proxy-pattern-date"])){kav4ProxyPatternDate();exit;} // if(isset($_GET["RestartRetranslator"])){retranslator_restart();exit;} if(isset($_GET["RetranslatorSitesList"])){retranslator_sites_lists();exit;} if(isset($_GET["RetranslatorEvents"])){retranslator_events();exit;} if(isset($_GET["retranslator-status"])){retranslator_status();exit;} if(isset($_GET["retranslator-execute"])){retranslator_execute();exit;} if(isset($_GET["retranslator-dbsize"])){retranslator_dbsize();exit;} if(isset($_GET["retranslator-tmp-dbsize"])){retranslator_tmp_dbsize();exit;} if(isset($_GET["Global-Applications-Status"])){Global_Applications_Status();exit;} if(isset($_GET["status-forced"])){Global_Applications_Status();exit;} if(isset($_GET["system-reboot"])){shell_exec("reboot");exit;} if(isset($_GET["system-shutdown"])){shell_exec("init 0");exit;} if(isset($_GET["system-unique-id"])){GetUniqueID();exit;} if(isset($_GET["system-debian-kernel"])){system_debian_kernel();exit;} if(isset($_GET["system-debian-upgrade-kernel"])){system_debian_kernel_upgrade();exit;} //clamav if(isset($_GET["update-clamav"])){ClamavUpdate();exit;} if(isset($_GET["clamd-restart"])){clamd_restart();exit;} if(isset($_GET["clamav-av-pattern-status"])){clamd_pattern_status();exit;} if(isset($_GET["clamd-reload"])){clamd_reload();exit;} //reports if(isset($_GET["pdf-quarantine-cron"])){reports_build_quarantine_cron();exit;} if(isset($_GET["pdf-quarantine-send"])){reports_build_quarantine_send();exit;}