może ktoś sprawdzić ten kod gdzie jest błąd, nie wiem czy da się to poprawić jeśli ktoś nie wie do czego to jest ale być może gdzieś jest jakaś literówka.
<?php
session_start();
include(‘config_pacc.php’);
$sms = $_POST[‘sms’];
$buy = $_POST[‘buy’];
$name = basename($_POST[‘nick’]);
if( !preg_match(’/^[0-9a-z]{8}$/i’, $sms) )
{
$_SESSION[‘sms_error’] = ‘Nieprawidłowy kod SMS.’;
header(‘Location: sms.php’);
exit;
}
if( !preg_match(’/’ . $sms . ‘/’, file_get_contents($smsFile) ) )
{
$_SESSION[‘sms_error’] = ‘Nieprawidłowy kod SMS.’;
header(‘Location: sms.php’);
exit;
}
if( !file_exists($path . ‘players/’ . $name . ‘.xml’) )
{
$_SESSION[‘sms_error’] = ‘Postac o tym imieniu nie istnieje na ots.’;
header(‘Location: sms.php’);
exit;
}
$player = new DOMDocument();
$player->load($path . ‘players/’ . $name . ‘.xml’);
$root = $player->documentElement;
$ticks = $root->getAttribute(‘premticks’);
$root->setAttribute(‘premticks’, $ticks + 359950000);
$player->save($path . ‘players/’ . $name . ‘.xml’);
file_put_contents($smsFile, trim( str_replace($sms, ‘’, file_get_contents($smsFile) ) ) );
?>
<?php
include(‘engine/top.php’); ?>
cellpadding=“0”>
cellpadding=“0” style="margin-left:0px; margin-top:5px; margin-right:px ">
Wszystko przebiegło pomyślnie Pacc został aktywowany jeżeli byłeś tylko wylogowany z gry.
?php
include(‘engine/stop.php’);?
to co pogrubione będzie źle, a może da się zastosować coś innego niż DOM, proszę o pomoc