Example #1
0
     $player_id = " ";
 }
 $timezone = $config->timezone_fixx * 3600;
 $ban_start = dateShorttime($result->ban_created + $timezone);
 if (empty($result->ban_length) or $result->ban_length == 0) {
     $ban_duration = lang("_PERMANENT");
     $ban_end = "<i><font color='#677882'>" . lang("_NOTAPPLICABLE") . "</font></i>";
 } else {
     //echo $timezone;
     $ban_duration = $result->ban_length . "&nbsp;" . lang("_MINS");
     $date_and_ban = $result->ban_created + $timezone + $result->ban_length * 60;
     $now = date("U");
     if ($now >= $date_and_ban) {
         $ban_end = dateShorttime($date_and_ban) . "&nbsp;(" . lang("_ALREADYEXP") . ")";
     } else {
         $ban_end = dateShorttime($date_and_ban) . "&nbsp;(" . timeleft($now + $timezone, $date_and_ban) . "&nbsp;" . lang("_REMAINING") . ")";
     }
 }
 if ($result->ban_type == "SI") {
     $ban_type = lang("_STEAMID&IP");
 } else {
     $ban_type = "SteamID";
 }
 $ban_reason = cp1251_to_utf8($result->ban_reason);
 if ($result->server_name != "website") {
     //$query2 = "SELECT nickname FROM $config->amxadmins WHERE steamid = '".$result->admin_id."'";
     $query2 = "SELECT nickname FROM {$config->amxadmins} WHERE username = '******' OR username = '******' OR username = '******'";
     $resource2 = mysql_query($query2) or die(mysql_error());
     $result2 = mysql_fetch_object($resource2);
     $admin_name = cp1251_to_utf8($result->admin_nick) . " (" . cp1251_to_utf8($result2 ? $result2->nickname : "") . ")";
     //$server_name = $result->server_name;
Example #2
0
     $player_ip = htmlentities($result->player_ip, ENT_QUOTES);
 } else {
     $player_ip = "<i><font color='#677882'>no IP address present</font></i>";
 }
 $ban_start = dateShorttime($result->ban_created);
 if (empty($result->ban_length) or $result->ban_length == 0) {
     $ban_duration = "Permanent";
     $ban_end = "<i><font color='#677882'>Not applicable</font></i>";
 } else {
     $ban_duration = $result->ban_length . " mins";
     $date_and_ban = $result->ban_created + $result->ban_length * 60;
     $now = date("U");
     if ($now >= $date_and_ban) {
         $ban_end = dateShorttime($date_and_ban) . "&nbsp;(allready expired)";
     } else {
         $ban_end = dateShorttime($date_and_ban) . "&nbsp;(" . timeleft($now, $date_and_ban) . " remaining)";
     }
 }
 if ($result->ban_type == "SI") {
     $ban_type = "SteamID and/or IP address";
 } else {
     $ban_type = "SteamID";
 }
 $ban_reason = cp1251_to_utf8($result->ban_reason);
 if ($result->server_name != "website") {
     $query2 = "SELECT nickname FROM {$config->amxadmins} WHERE steamid = '" . $result->admin_id . "'";
     $resource2 = mysql_query($query2) or die(mysql_error());
     $result2 = mysql_fetch_object($resource2);
     $admin_name = htmlentities($result->admin_nick, ENT_QUOTES) . " (" . htmlentities($result2->nickname, ENT_QUOTES) . ")";
     $server_name = $result->server_name;
 } else {
Example #3
0
function template($content_tile_name, $data)
{
    require_once dirname(__FILE__) . '/../tiles/' . $content_tile_name . '.php';
    before($content_tile_name);
    ?>
    <div id="header" class="right"><div class="right-inner">
        <?php 
    top();
    ?>
    
    </div></div>
    <div id="content" class="right"><div class="right-inner" style="float:_left">
        <?php 
    content($content_tile_name, $data);
    ?>
    </div></div>
    <div id="homelink" class="left"><div class="left-inner">
        <a href="./" title="на главную" id="home"></a>
    </div></div>
    <div id="timeleft" class="left"><div class="left-inner">
        <?php 
    timeleft($content_tile_name);
    ?>
    </div></div>
    <?php 
    if ('standing' != $content_tile_name && 'table' != $content_tile_name) {
        ?>
        <div id="control" class="left"><div class="left-inner">
            <?php 
        menu($content_tile_name);
        ?>
        </div></div>
    <?php 
    }
    ?>
    <div id="stuff" class="right"><div class="right-inner">
        <?php 
    stuff($content_tile_name);
    ?>
    </div></div>
    <div id="toolbar">
        <?php 
    toolbar($content_tile_name);
    ?>
    </div>
    <div id="support" class="left"><div class="left-inner">
        <?php 
    support();
    ?>
    </div></div>
    <div id="contacts" class="right"><div class="right-inner">
        <?php 
    contacts();
    ?>
    </div></div>
    <script type="text/javascript">
        (function($) {
            var
                    menuWidth   = $('#menu').width()
                ,   on          = false
                ;
            $(document.body).mousemove(function(e) {
                if ($(document.body).hasClass('noleft')) {
                    if (!on) {
                        defMargin(true);
                    }
                    if ($(e.target).closest('#control').size() && !on) {
                        on = true;
                        $('#control').animate(
                                { 'marginLeft': defMargin() + menuWidth + 'px' }
                            ,   200
                        );
                    } if (!$(e.target).closest('#control').size() && on) {
                        on = false;
                        $('#control').animate(
                                { 'marginLeft': defMargin() + 'px' }
                            ,   200
                        );
                    }
                } else {
                    defMargin(true);
                }
            });
        })(jQuery);
    </script>
<?php 
    after();
    die;
}
             $txt = "Opponent has left the table.";
             $db->query("INSERT INTO {$gpre}chat ({$gpre}room, timestamp, txt) VALUES({$roomid}, unix_timestamp(), '{$txt}')");
             die;
         } else {
             if ($missfield != '') {
                 $db->query("UPDATE {$gpre}room SET {$missfield}={$missfield}+1 WHERE id={$roomid}");
             }
         }
         $game = $db->query("SELECT * FROM {$gpre}room WHERE id={$roomid}", $c) or die("1");
         $ga = $db->fetch_row($game);
     } else {
         if ($ga['turn'] == $ir['userid']) {
             $timeleft = timeleft(time() + $timeleft);
             $timetxt = "You have <b><div id='timeleft' style='display: inline;'>{$timeleft}</div></b> to make a move.<br />";
         } else {
             $timeleft = timeleft(time() + $timeleft);
             $timetxt = "<br />Your opponent has <b><div id='timeleft' style='display: inline;'>{$timeleft}</div></b> to make a move.";
             if ($ga['time_left'] > 40) {
                 if ($ga['notifyturn'] == 0) {
                     $timetxt .= "<form method='post' name='n1'><input type=hidden name='notify' value=1><input type='submit' border=0 name='nbutton' id='nbutton' value='Notify opponent via Facebook it&lsquo;s their turn!' onclick=\"postFormAjax('st_play.php', 'n1');return false;\" /></form>";
                 } else {
                     if ($ga['notifyturn'] == -1) {
                         $timetxt .= "<br /><i>Sorry, you haven't given us permission yet to post on Facebook for you.</i>";
                     } else {
                         $timetxt .= "<br /><i>Opponent notified it's their turn on Facebook.</i>";
                     }
                 }
             }
         }
     }
 }
Example #5
0
<html>
<head>
<script style=javascript>
	var totaltimeleft = "<?php 
echo timeleft();
?>
";

        function go(){
                document.topform.cl.value = 'Initialising, sec...';

<?php 
for ($e = 0; $e < sizeof($usinge); $e++) {
    for ($p = 0; $p < sizeof($usingp); $p++) {
        echo "setTimeout(\"document.topform.cl.value='" . $usingp[$p] . "'; document.topform.ce.value='" . $usingn[$e] . "'; top.progress.location.href='" . str_replace("[>URL<]", $usingp[$p], str_replace("[>EMAIL<]", $email, str_replace("[>KEYS<]", $keys, $usinge[$e]))) . "'; document.topform.ctt.value='" . ($e * sizeof($usingp) + $p) . "'; document.topform.ctr.value='" . timeleft() . "';\"," . 4000 * ($e * sizeof($usingp) + $p) . ");\n";
    }
}
echo "setTimeout(\"top.location.href='done.html';\"," . sizeof($usinge) * sizeof($usingp) * 4000 . ");";
?>
	}
</script>
</head>

<body onload="document.topform.cl.value='Ready to start the submission process, Press Go! to begin'; document.topform.ctr.value=totaltimeleft; document.topform.startbtn.value='Go!';" bgcolor=#ffffff text=#000000>

<base target=progress>
<form name=topform>
<center><B><font face=Verdana size=2>
<table border=1 cellspacing=2 cellpadding=0 bgcolor=#a8fe9e>
<tr><td><b><font size=2>Current:</font></b></td><td><font size=2><input type=text name=cl size=65 value="Retrieving pages to be submitted..."></font></td></tr>