Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Wklejka 185j33hojpn67 dodana przez Kawon, 10.07.2013 20:50
Typ:



1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
<?php
 
/**
 * @author Kawon
 * @copyright 19.06.2012
 * @lastmodified 14.06.2013
 */
 
session_start();
 
if (file_exists("install.php")) {
    header("Location: install.php");
    exit;
}
 
require_once("include/config.inc.php");
require_once("include/access.inc.php");
require_once("include/menu.inc.php");
require_once("include/steam.inc.php");
require_once("include/sql.inc.php");
require_once("include/logfunc.inc.php");
require_once("include/functions.inc.php");
require_once("include/geoip.inc");
require_once("include/thumbs.inc.php");
 
// Template generieren
$title = "_LISTSCREEN";
$smarty = new dynamicPage;
 
 
$screen_site="";
if (!$screen_site) {
    $query = mysql_query("SELECT COUNT(id) FROM `".$config->db_prefix."_screeny`") or die (mysql_error());
    $ss_count = mysql_result($query,0);
    $ss_page_max = ceil($ss_count / $config->bans_per_page);
 
    if (isset($_REQUEST["site"])) $page=(int)$_REQUEST["site"];
    if (isset($_REQUEST["siteback_x"])) $page=(int)$_REQUEST["site"];
    if (isset($_REQUEST["sitenext_x"])) $page=(int)$_REQUEST["site"];
    if (isset($_REQUEST["sitestart_x"])) $page=1;
    if (isset($_REQUEST["siteend_x"])) $page=$ss_page_max;
 
    $ss_page_curr=($page==0 || $page>$ss_page_max) ? 1:$page;
    $min=($config->bans_per_page * $ss_page_curr)-$config->bans_per_page;
    $ss_page=array(
            "current"       => $ss_page_curr,
            "max_page"      => ($ss_page_max)? $ss_page_max:1,
            "per_page"      => $config->bans_per_page
    );
 
    $query = mysql_query("SELECT * FROM `".$config->db_prefix."_screeny` ORDER BY `id` DESC LIMIT ".$min.",".$config->bans_per_page) or die(mysql_error());
    $screens=array();
    while ($result = mysql_fetch_object($query)) {
        $steamid = htmlentities($result->sid_player, ENT_QUOTES);
        $steamcomid = GetFriendId($steamid);
 
        $screen = array(
            "id"            => $result->id,
            "nick"          => htmlspecialchars($result->nick),
            "admin_name"    => htmlspecialchars($result->admin_name),
            "data"          => $result->data,
            "mapa"          => $result->mapa,
            "player_ip"     => $result->ip_player,
            "player_sid"    => htmlentities($result->sid_player),
            "player_comid"  => $steamcomid,
            "hostname"      => substr($result->hostname, 0, strpos($result->hostname, "@")),
            "screens"       => $result->screens
        );
        $screens[]=$screen;
    }
    $smarty->assign("ss_page",$ss_page);
}
 
 
$smarty->assign("pagenav", construct_vb_page_nav($ss_page['current'], $ss_page['max_page'], 3, array(10, 50, 100, 500, 1000)));
$smarty->assign("screens", $screens);
$smarty->assign("title",$title);
$smarty->assign("title2",$title2);
$smarty->assign("version_web",$config->v_web);
if(file_exists("templates/".$config->design."/main_header.tpl")) {
	$smarty->assign("design",$config->design);
}
$smarty->assign("dir",$config->document_root);
$smarty->assign("this",$_SERVER['PHP_SELF']);
$smarty->assign("vars",$vars);
$smarty->assign("menu",$menu);
$smarty->assign("banner",$config->banner);
$smarty->assign("banner_url",$config->banner_url);
 
$smarty->display('main_header.tpl');
$smarty->display('screeny.tpl');
$smarty->display('main_footer.tpl');
?>

Dodanych wklejek: 11179
Powered By (Pav32) Pastebin © 2011