Пример #1
0
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
require_once "p/config.php";
require_once "p/init.php";
global $pakiety;
$DB = new BazaDanych($__dbHost, $__dbName, $__dbUser, $__dbPass);
$GFS = new FSPlayer();
$Szablon = new Szablon();
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    $bledy = array();
    $nick = $_POST['nick'];
    if (strlen($nick) < 3 || strlen($nick) > 24) {
        $bledy[] = "Błędny nick!";
    }
    $nick = mysql_real_escape_string($nick);
    $email = mysql_real_escape_string($_POST['email']);
    $GFS = new FSPlayer();
    $GFS->fetchByNickOffline($nick);
    if (!($GFS->accountID > 0)) {
        $bledy[] = "Nie odnaleziono zadnego gracza o podanym nicku. Być może jesteś obecnie OnLine na serwerze?";
    }
    $GFS->fetchByEmail($email);
    if (!($GFS->accountID > 0)) {
Пример #2
0
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
require_once "p/config.php";
require_once "p/init.php";
global $pakiety;
$DB = new BazaDanych($__dbHost, $__dbName, $__dbUser, $__dbPass);
$Szablon = new Szablon();
$GFS = new FSPlayer();
$GFSdom = new FSDom(intval($_REQUEST['domid']));
if (!$GFSdom->ok) {
    $Szablon->assign('html_title', "Domy na FullServerze");
    $Szablon->assign('domy', $GFSdom);
    $Szablon->display('index.tpl');
    exit;
}
$ht = htmlspecialchars($GFSdom->descr);
if (!$GFSdom->wolny) {
    $ht .= " - " . $GFSdom->owner_nick;
}
$ht .= " - " . $GFSdom->zone_name;
$Szablon->assign('html_title', $ht);
$prawdopodobny_nick = $DB->wynik("SELECT nick FROM fs_players WHERE ip_last='" . mysql_real_escape_string($_SERVER['REMOTE_ADDR']) . "' AND respect>=25 ORDER BY datetime_last DESC LIMIT 1");
Пример #3
0
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

require_once("p/config.php");
require_once("p/init.php");
global $pakiety;
$DB=new BazaDanych($__dbHost,$__dbName,$__dbUser,$__dbPass);
$GFS=new FSPlayer();
$Szablon=new Szablon();

$Szablon->assign('pakiety',$pakiety);

if ($_SERVER['REQUEST_METHOD']=='POST') {
    $bledy=Array();
    if (!($_POST['regulamin']))	
	    $bledy[]="Akceptacja regulaminu jest wymagana.";
    if (strlen($_POST['kod'])!=8) 
	    $bledy[]="Błędny kod SMS!";
    else $kod=strtr($_POST['kod'],'&?=\\/@"','_______');
    $nick=$_POST['nick'];
    if (strlen($nick)<3 || strlen($nick)>24)
	    $bledy[]="Błędny nick!";
    $nick=mysql_real_escape_string($nick);
    $email=mysql_real_escape_string($_POST['email']);
Пример #4
0
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
$CFG_page_name = "FullServer - Statystyki";
require_once "p/libs/misc.php";
require_once "p/libs/Szablon.class.php";
$szablon = new Szablon();
$szablon->setCaching(Smarty::CACHING_LIFETIME_SAVED);
$szablon->dodaj_js('/s/js/jquery.dataTables.min.js');
$szablon->dodaj_js('/s/js/statystyki.js');
require_once "p/libs/BazaDanych.class.php";
require_once "p/__config.php";
$RDB = new BazaDanych($__dbHost, $__dbName, $__dbUser, $__dbPass);
$szablon->assign('RDB', $RDB);
$szablon->setCacheLifetime(3600);
switch ($_REQUEST['m']) {
    case "mapa":
        $szablon->setCacheLifetime(36000);
        $szablon->dodaj_js('http://maps.google.com/maps/api/js?sensor=false');
        $szablon->dodaj_js('/s/js/SanMap.min.js');
        $szablon->plik = "m.statystyki.mapa.tpl";
        $szablon->assign("sel", 8);
Пример #5
0
<?php

session_name("LSS-RP");
session_start();
Header("Access-Control-Allow-Origin: http://forum.lss-rp.pl");
$CFG_page_name = "LSS-RP";
require_once "p/libs/xmlrpc.inc";
require_once "p/libs/phpbbauth.php";
ini_set('display_errors', '0');
//print_r($user->data);
require_once "p/libs/misc.php";
require_once "p/libs/Szablon.class.php";
$szablon = new Szablon();
//$szablon->setCaching(Smarty::CACHING_LIFETIME_SAVED);
//$szablon->dodaj_js('/s/js/jquery.validate.min.js');
//$szablon->dodaj_js('/s/js/jquery.dataTables.min.js');
//$szablon->dodaj_js('/s/js/statystyki.js');
$szablon->add_bc('LSS-RP', '/');
////require_once("p/libs/BazaDanych-adodb.class.php");
require_once "p/libs/adodb5/adodb.inc.php";
$RDB = NewADOConnection("mysql");
// TU WPROWADZ DANE DO BAZY DANYCH SERWERA
$RDB->Connect("mysql-1.serverproject.pl", "db_3426", "xxxxxxxxxxxx", "db_3426");
$RDB->Execute("set names utf8");
require_once "p/libs/LSS.class.php";
$LSS = new LSS();
$szablon->assign('RDB', $RDB);
$szablon->assign('LSS', $LSS);
//$szablon->setCacheLifetime(3600*3);
$modul = preg_replace('/[^a-z\\-]/', '', $_REQUEST['m']);
if (strlen($modul) == 0) {