Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server
You last visited: Today at 04:30

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



UserControlPanel error

Discussion on UserControlPanel error within the Shaiya Private Server forum part of the Shaiya category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2008
Posts: 16
Received Thanks: 0
UserControlPanel error

Hi guys need help on this "cannot send session cache limiter"

on this php file:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Shaiya Nightmare: UCP</title>
<LINK REL=StyleSheet HREF="img/style.css" TYPE="text/css" MEDIA=screen>
<LINK REL=StyleSheet HREF="img/jquery.css" TYPE="text/css" MEDIA=screen>
<script type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.13.custom.min.js"></script>
<script type="text/javascript">
$(function(){
$('#tabs').tabs();
$('#tab_link').each(function(){
$('#tabs').hide();
});

$('#tabs2').tabs();
$('#tab_link').each(function(){
$('#tabs2').hide();
});
});
</script>
</head>
<body>
<?php
error_reporting(E_ALL);
//Setting informaton
include('info.php');
session_start();
if (!isset($_SESSION['session_id'])){header("location:index.php");}
checkSession($_SESSION['session_id'],$_SESSION['UserID']);

//Setting Arrays
$Status=array(0 => 'Alive',1 =>'Dead');
$Faction=array(0 => 'Alliance',1 => 'Fury',2 => 'Faction Select');
$Light=array(0 => 'Fighter',1=>'Defender',2=>'Ranger',3=>'Archer',4= >'Mage',5=>'Priest');
$Fury=array(0 => 'Warrior',1=>'Guardian',2=>'Assasin',3=>'Hunter',4 =>'Pagan',5=>'Oracle');

//Queries for Information Tabs
$User="SELECT * FROM PS_UserData.dbo.Users_Master U
INNER JOIN PS_GameData.dbo.UserMaxGrow UM ON UM.UserUID=U.UserUID
WHERE UserID='".$_SESSION['UserID']."'";
$res = odbc_exec($conn,$User);
$Info = odbc_fetch_array($res);

//Information Tabs
echo "<div id=\"tabs2\">";
echo "<ul>";
echo "<li><a href=\"#Wel\">Welcome</a></li>";
echo "<li><a href=\"#Acc\">Account</a></li>";
echo "<li><a href=\"#ChPw\">Change password</a></li>";
echo "<li><a href=\"#ChEm\">Change email</a></li>";
echo "<li><a href=\"#Log\">Logout</a></li>";
echo "</ul>";

//Welcome Message
echo "<div id=\"Wel\">";
echo "<b>Welcome, ".$_SESSION["UserID"]."</b><br>";
if (isset($_SESSION["msg"])) echo "<b>".$_SESSION["msg"]."</b><br>";
echo "</div>";

//Account info
echo "<div id=\"Acc\">";
echo "<b>";
echo "Points: ".$Info['Point']."<br>";
echo "Account IP: ".$Info['UserIp']."<br>";
echo "Current IP: ".$_SERVER['REMOTE_ADDR']."<br>";
echo "Current faction: ".$Faction[$Info['Country']]."<br>";
echo "</b>";
echo "</div>";

//Logout
echo "<div id=\"Log\">";
echo "<center><a href=\"logout.php\"><strong>Logout</strong></a></center>";
echo "</div>";

//Pass Change
echo "<div id=\"ChPw\">";
echo "<form action=\"pchange.php\" method=\"post\">";
echo "Old Password: <input type=\"password\" name=\"oldpw\" /><br>";
echo "New Password: <input type=\"password\" name=\"newpw\" /><br>";
echo "<input type=\"submit\" />";
echo "</form>";
echo "</div>";

//Email Change
echo "<div id=\"ChEm\">";
echo "<form action=\"emailch.php\" method=\"POST\">";
echo "Old E-mail address: <input type=\"text\" value=\"".$Info['Email']."\"style=\"background:#e2e2e2;\" READONLY /><br>";
echo "New E-mail address: <input type=\"email\" name=\"Email\" /><br>";
echo "<input type=\"Submit\">";
echo "</form>";
echo "</div>";

echo "</div>";

//Queries
$query = "SELECT umg.Country, c.Family, c.CharName, c.CharID, c.Job, c.Level,c.Slot,c.Del,UM.Email
FROM [PS_GameData].[dbo].[UserMaxGrow] AS umg
INNER JOIN [PS_GameData].[dbo].[Chars] AS c ON umg.UserUID = c.UserUID
INNER JOIN PS_UserData.dbo.Users_Master UM ON UM.UserUID = C.UserUID
WHERE c.UserID='".$_SESSION['UserID']."'";
$res = odbc_exec($conn,$query);

//Tabs
echo "<div id=\"tabs\">";
echo "<ul>";
if(odbc_num_rows($res)==0){echo "<li><a href=\"#Error\">Error!</a></li>";}else{
while ($Tabs=odbc_fetch_array($res)){echo "<li><a href=\"#".$Tabs['CharID']."\">".$Tabs['CharName']."</a></li>";}
}
echo "</ul>";

//Characters
$res = odbc_exec($conn,$query);
while ($row = odbc_fetch_array($res)){
echo "<div id=\"".$row['CharID']."\">";

echo "<b>";
echo "Slot: ";echo $row['Slot']+1 ."<br>";
echo "Character Name: ".$row['CharName']."<br>";
echo "Level: ".$row['Level']."<br>";
if($row['Family'] == 0 || $row['Family'] == 1){echo "Class: ".$Light[$row['Job']]."<br></form>";}
if($row['Family'] == 2 || $row['Family'] == 3){echo "Class: ".$Fury[$row['Job']]."<br></form>";}
echo "Status: ".$Status[$row['Del']]."<br>";
echo "</b>";

if($row['Del']==1){
if(($row['Country'] == 0) && ($row['Family'] == 0) || ($row['Country'] == 0) && ($row['Family'] == 1)){
echo "<form action=\"cres.php\" method=\"post\">";
echo "<input type=\"hidden\" name=\"CharID\" value=\"".$row['CharID']."\">";
echo "<input type=\"Submit\" value=\"Resurrect\">";
echo "</form>";
}
if($row['Country'] == 1 && $row['Family'] == 2 || $row['Country'] == 1 && $row['Family'] == 3){
echo "<form action=\"cres.php\" method=\"post\">";
echo "<input type=\"hidden\" name=\"CharID\" value=\"".$row['CharID']."\">";
echo "<input type=\"Submit\" value=\"Resurrect\">";
echo "</form>";
}
}
echo "<form action=\"posres.php\" method=\"post\">";
echo "<input type=\"hidden\" name=\"Char\" value=\"".$row['CharID']."\">";
echo "<input type=\"Submit\" value=\"Reset Position\">";
echo "</form>";
echo "</div>";
}

//Error catch
$res = odbc_exec($conn,$query);
if(odbc_num_rows($res)==0){
echo "<div id=\"Error\">";
echo "No characters on this account!";
echo "</div>";
}

//End Tab Div
echo "</div>";

unsetSession('msg');
?>
</body>
</html>
arnolde is offline  
Old 04/04/2012, 16:08   #2
 
RebeccaBlack's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 520
Received Thanks: 1,289
I started development on that, and quit it for other projects. It's a big work in progress and should not be fully trusted unless you understand the language and can check for any weak points.

As for the error, It looks like I sent the headers after the browser started to load the HTML Content. Moving
Code:
session_start();
to the very top (IN PHP TAGS) should remedy it for you.
RebeccaBlack is offline  
Thanks
2 Users
Old 04/04/2012, 19:13   #3
 
elite*gold: 0
Join Date: Oct 2008
Posts: 16
Received Thanks: 0
Quote:
Originally Posted by RebeccaBlack View Post
I started development on that, and quit it for other projects. It's a big work in progress and should not be fully trusted unless you understand the language and can check for any weak points.

As for the error, It looks like I sent the headers after the browser started to load the HTML Content. Moving
Code:
session_start();
to the very top (IN PHP TAGS) should remedy it for you.

sorry if im such a noob , but I still cant make it to work... T_T but tnx anyway
arnolde is offline  
Old 05/02/2012, 20:15   #4
 
elite*gold: 0
Join Date: Apr 2011
Posts: 42
Received Thanks: 6
Hi guys, can I have the original of this script? I want to put myself. thank you
Frichx is offline  
Reply


Similar Threads Similar Threads
[Error]Error when using Zero's method/And another Error
09/16/2011 - Shaiya Private Server - 5 Replies
well here is a screeny of my problem. Any assistance is greatly appreciated. I haven't come across this error before nor seen any posts up here about it. Also this is me executing the NpcQuest_cvs.bat and yes i changed python to C:/Python27/Python.exe in the command line. http://img707.imageshack.us/img707/9997/errorgx.p ng Ok So my second error involves changing Stat points per lvl here is my screen shots http://img854.imageshack.us/img854/6412/nosave.pn g



All times are GMT +1. The time now is 04:32.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.