Búsqueda en el Foro:
Buscar


« Ver tema anterior :: Ver siguiente tema »  
Autor Mensaje
Mensaje19-04-2009, 15:07 (UTC)    
Título del mensaje: Ayuda con mi Web Porfavor

Buenas tengo un Servidor de Pko o ToP como lo conozcan y necesito una pagina con estas configuraciones Ayuda porfavor...

Config.php
Cita:
<?

$host = '190.37.205.112';
$username = 'sa';
$password = 'ola';
$chinese_jobs = true; //are the jobs stored in chinese?

$connection = mssql_connect($host,$username,$password) OR DIE("Can't connect to DB!!");

function do_query($query,$database)
{
mssql_select_db($database) OR DIE("Can't find the database!!");
return mssql_query($query);
}

function auth()
{
if(isset($_COOKIE['PKO_login']))
{
if(isset($_COOKIE['PKO_password']))
{
$login = $_COOKIE['PKO_login'];
$password = $_COOKIE['PKO_password'];
$result = do_query("SELECT * FROM account_login WHERE name LIKE '$login' AND password = '$password'","AccountServer");
if(mssql_num_rows($result) > 0)
{
$result = do_query("SELECT gm FROM account WHERE act_name LIKE '$login'","GameDB");
$gm_level = mssql_fetch_array($result);
$gm_level = $gm_level['gm'];
return $gm_level;
}
else
{
setcookie("PKO_login", $login, -time()+60*60*24*30);
setcookie("PKO_password",$pw, -time()+60*60*24*30);

$page = "<font color=\"red\">Your cookies are not correct! You've been trying to hack me!</font><br>
<a href=\"index.php\">Login</a>";
}
}
else
{
setcookie("PKO_login", $login, -time()+60*60*24*30);
setcookie("PKO_password",$pw, -time()+60*60*24*30);

$page = "<font color=\"red\">Your cookies are not correct! You've been trying to hack me!</font><br>
<a href=\"index.php\">Login</a>";

}
}
else
{
return -1;
}
}

function exp_to_lv($exp)
{
$file = fopen("exp.txt","r");
while($line = explode(";",fgets($file)))
{
if($line[2] > $exp)
{
$level = $line[1] - 1;
break;
}
}
fclose($file);
return $level;
}

function zh_to_eng($zh_job,$zh_jobs)
{
if($zh_jobs === true)
{
$file = fopen("job.txt","r");
$i=0;
while($line = explode(";",fgets($file)))
{ $i++;
if($line[0] == $zh_job)
{
$job = $line[2];
break;
}
if($i >20)
break;
}
fclose($file);
if(isset($job))
{
return $job;}
else {
return $zh_job;}
}
else
return $zh_job;
}

function eng_to_zh($eng_job,$zh_jobs)
{
if($zh_jobs === true)
{
$file = fopen("job.txt","r");
$i=0;
while($line = explode(";",fgets($file)))
{$i++;

if(strcasecmp($line[2],$eng_job) == 0) // YOU MIGHT NEED TO CHANGE THIS!!!
{
$job = $line[0];
break;
}
if($i >10)
break;
}
fclose($file);
if(isset($job))

return $job;
else
return $eng_job;
}
else
return $eng_job;
}
?>


Index.Php
Cita:
<?php
include "config.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>ToP Private Server</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="styles.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="main">
<!-- start header -->
<div id="header">
<div id="logo">
<h1>&nbsp;</h1>
<h2>&nbsp;</h2>
</div>
<!--Header end -->


<div id="menu">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="inf.php">Information</a></li>
<li><a href="reg.php">Registration</a></li>
</ul>
</div>
</div>
<!-- end header -->
<!-- start page -->
<div id="page">
<!-- start leftbar -->
<div id="leftbar" class="sidebar">
<center><h2> Statistic</h2>
<div class="back"> <?

echo "<center>".$page;

$result = do_query("SELECT * FROM account_login","AccountServer");
$num_act = mssql_num_rows($result);

$result = do_query("SELECT cha_id FROM character","GameDB");
$num_char = mssql_num_rows($result);

$result = do_query("SELECT guild_id FROM guild","GameDB");
$num_guild = mssql_num_rows($result);

echo "
<table>
<tr><td>Accounts:</td><td>$num_act</td></tr>
<tr><td>Character:</td><td>$num_char</td></tr>
<tr><td>Guild List:</td><td>$num_guild</td></tr>
</table>";

?>
</div><div class="bottom"></div>
<center><h2>vote / friends</h2>
<div class="back">
<ul><li><center>


<center><a href="http://tuti.dmn.lv/"><img src="http://bildites.lv/images/nxkfstoob2x6hrchz55n.gif" alt="Tutorials" title="Tutorials" border="0" /></a> <center><a href="http://www.dmn.lv/"><img src="http://www.dmn.lv/smallbanner.gif" alt="DmN" title="DmN" border="0" /></a> <center><a href="http://tracker.dmn.lv"><img src="http://bildites.lv/images/198tmc7nlvp7iblgscy.gif" title="DmN Top" border="0" /></a> <center><a href="http://www.fraglife.lv/"><img src="http://fraglife.lv/tournaments/theme/flbaneris2.jpg" alt="FragLife" title="FragLife" border="0" /></a>
</ul>
</div>
<div class="bottom"></div>
</div>
<!-- end leftbar -->
<!-- start content -->
<div id="content">
<div class="post">
<h1 class="title">Welcome To Server Website</h1>
<p class="meta"><small>El 19 Abril, 2008 por</small> [GM]xXIchigoXx</p>
<p>Hola,</p>
<p>Bienvenidos a BleachTopServer Tenemos muy Buenos GMs Eventos todos los Dias Espero les Guste<br />
<br />Link de Descarga http://www.megaupload.com/?d=LYL0WM4G
Espero les Guste<br />
<br />
Bleach Server By xXIchigoXx-Copyrigth</p>
<p>Truenox1@hotmail.com</p>
</div>
</div>
<!-- end content -->
<!-- start rightbar -->
<div id="rightbar" class="sidebar">
<center><h2>Account</h2>
<center>Welcome <?
if(auth() == -1){
echo "<strong>Guest</strong>!";}
else{
echo "<Strong>".$_COOKIE['PKO_login']."</strong>!";}
?>
<?

$page = " ";
$auth = auth();
if($auth == -1)
{
$page = "<form action=\"login.php\" method=\"POST\">
<center><table class=\"tabset_content\">
<tr><td>User:</td><td><input class=\"text\" type=\"text\" width=15 name=\"login\" /></td></tr>
<tr><td>Pas:</td><td><input class=\"text\" type=\"password\" width=15 name=\"password\" /></td></tr>
<tr><td><a href=\"reg.php\">Register</a></td><td align=\"right\"><input type=\"submit\" class=\"button\" value=\" Login \" /></td></tr>
</table>
</form>";
}
if($auth == 0)
{
//do normal player??
$page = "<center><table class=\"tabset_content\">
Character Panel Will Be Done In V2.0!
<tr align=\"left\"><td><a href=\"logout.php\">Logout</a></td></tr>
</table>";
}

if($auth == 99)
{
//do gm
$page = "<center><table class=\"tabset_content\">
<tr align=\"left\"><td><a href=\"list.php?type=act\">Accounts</a></td></tr>
<tr align=\"left\"><td><a href=\"info.php\">Iteminfo</a></td></tr>
<tr align=\"left\"><td><a href=\"logout.php\">Logout</a></td></tr>
</table>";
}

?>

<?
//bgcolor="0099FF"
echo $page;

$result = do_query("SELECT * FROM account_login","AccountServer");
$num_act = mssql_num_rows($result);

$result = do_query("SELECT cha_id FROM character","GameDB");
$num_char = mssql_num_rows($result);



?>
<div class="bottom"></div>
<center>
<h2>Join Guide</h2>
<div class="back">
<div id="calendar"> <p>
<center>Registration <A HREF="reg.php">Here</A><br>
Information <A HREF="inf.php">Here</A><br>

</div>
</div><div class="bottom"></div>
</div>
<!-- end rightbar -->
<div style="clear: both;">&nbsp;</div>
</div>
<!-- end page -->
<div id="footer">
<p>Tales Of Pirates Private Server Web V1.0</p>
<p>Design by xXIchigoXx and Keybo</p>

</div>
</div>
</body>
</html>


Reg.Php
Cita:
<?php
include "config.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>ToP Private Server</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="styles.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="main">
<!-- start header -->
<div id="header">
<div id="logo">
<h1>&nbsp;</h1>
<h2>&nbsp;</h2>
</div>
<!--Header end -->


<div id="menu">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="dow.php">Downloads</a></li>
<li><a href="reg.php">Registration</a></li>
</ul>
</div>
</div>
<!-- end header -->
<!-- start page -->
<div id="page">
<!-- start leftbar -->
<div id="leftbar" class="sidebar">
<center><h2>Statistic</h2>
<div class="back"><?

echo "<center>".$page;

$result = do_query("SELECT * FROM account_login","AccountServer");
$num_act = mssql_num_rows($result);

$result = do_query("SELECT cha_id FROM character","GameDB");
$num_char = mssql_num_rows($result);

$result = do_query("SELECT guild_id FROM guild","GameDB");
$num_guild = mssql_num_rows($result);

echo "
<table>
<tr><td>Accounts:</td><td>$num_act</td></tr>
<tr><td>Character:</td><td>$num_char</td></tr>
<tr><td>Guild List:</td><td>$num_guild</td></tr>
</table>";

?>


</div><div class="bottom"></div>
<center><h2>Top 5 Characters</h2>
<div class="back">
<ul><li><center><a href="http://tuti.dmn.lv/"><img src="http://bildites.lv/images/nxkfstoob2x6hrchz55n.gif" alt="Tutorials" title="Tutorials" border="0" /></a> <center><a href="http://www.dmn.lv/"><img src="http://www.dmn.lv/smallbanner.gif" alt="DmN" title="DmN" border="0" /></a> <center><a href="http://tracker.dmn.lv"><img src="http://bildites.lv/images/198tmc7nlvp7iblgscy.gif" title="DmN Top" border="0" /></a> <center><a href="http://www.fraglife.lv/"><img src="http://fraglife.lv/tournaments/theme/flbaneris2.jpg" alt="FragLife" title="FragLife" border="0" /></a> </li>
</ul>
</div>
<div class="bottom"></div>
</div>
<!-- end leftbar -->
<!-- start content -->
<div id="content">
<div class="post">
<h1 class="title">Registration!</h1>
<p class="meta"><?

$page = "<form action=\"reg.php\" method=\"POST\">
<input type=\"hidden\" name=\"reg\" value=\"reg\" />
<table class=\"tabset_content\">
<tr><td>Username:</td><td><input type=\"text\" class=\"text\" width=20 name=\"login\" /></td></tr>
<tr><td>Password:</td><td><input type=\"password\" class=\"text\" width=20 name=\"password\" /></td></tr>
<tr><td>Confirm:</td><td><input type=\"password\" class=\"text\" width=20 name=\"password2\" /></td></tr>
<td align=\"right\"><input class=\"button\" type=\"submit\" value=\" Register! \" /></td></tr>
</table>
</form>
";

if(isset($_POST['login']) AND isset($_POST['password']) AND isset($_POST['password2']))
{
if($_POST['password'] == $_POST['password'])
{
$login = $_POST['login'];
$pass = $_POST['password'];
if ((eregi("[^a-zA-Z0-9_-]", $login)) || (eregi("[^a-zA-Z0-9_-]", $pass)) )
{
echo("SQL Injection Detected<br>");
exit();
}
$encr_pass = strtoupper(md5($_POST['password']));

if(strlen($login) > 4 AND strlen($pass) > 4)
{

$result = do_query("SELECT * FROM account_login WHERE name LIKE '$login'","AccountServer");
if(mssql_num_rows($result) > 0) $page = "<font color=\"red\">That login already exists!</font>".$page;
else
{
$result = do_query("SELECT TOP 1 * FROM account_login ORDER BY id DESC","AccountServer");
$high_id = mssql_fetch_array($result);
$id = $high_id['id'] +1;

do_query("INSERT INTO account_login (name,password,originalPassword) VALUES ('$login','$encr_pass','$pass')","AccountServer");

$page = "Account has been created! Click <a href=\"index.php\">here</a> to continue.";
}
}
else $page = "<font color=\"red\">Login and password should be longer than 4 characters</font>".$page;
}
else $page = "<font color=\"red\">Passwords do not match!</font>".$page;

}
else if(isset($_POST['reg']))
{
$page = "<font color=\"red\">Please fill in the full form!</font>".$page;
}

?>
<?

echo "<center>".$page;

$result = do_query("SELECT * FROM account_login","AccountServer");
$num_act = mssql_num_rows($result);

$result = do_query("SELECT cha_id FROM character","GameDB");
$num_char = mssql_num_rows($result);

echo "<br><br>
<table>

</table>";

?><br>Welcome To "YouServerName" Server! Before Registration, Dont Forget Read Rules, And Tutorials, How To Join Server! This Registration Is Protected, Thatswhy Even Dont Try Make Injection! Web Coded By FoxY & Neo6! Thanks For Attention, Enjoy!
</p>
</div>
</div>
<!-- end content -->
<!-- start rightbar -->
<div id="rightbar" class="sidebar">
<center><h2>Account</h2>
<center>Welcome <?
if(auth() == -1){
echo "<strong>Guest</strong>!";}
else{
echo "<Strong>".$_COOKIE['PKO_login']."</strong>!";}
?>

<?

$page = " ";
$auth = auth();
if($auth == -1)
{
$page = "<form action=\"login.php\" method=\"POST\">
<center><table class=\"tabset_content\">
<tr><td>User:</td><td><input class=\"text\" type=\"text\" width=15 name=\"login\" /></td></tr>
<tr><td>Pas:</td><td><input class=\"text\" type=\"password\" width=15 name=\"password\" /></td></tr>
<tr><td><a href=\"reg.php\">Register</a></td><td align=\"right\"><input type=\"submit\" class=\"button\" value=\" Login \" /></td></tr>
</table>
</form>";
}
if($auth == 0)
{
//do normal player??
}

if($auth == 99)
{
//do gm
$page = "<table class=\"tabset_content\">
<tr align=\"left\"><td><a href=\"list.php?type=char\">Characters</a></td></tr>
<tr align=\"left\"><td><a href=\"list.php?type=act\">Accounts</a></td></tr>
<tr align=\"left\"><td><a href=\"info.php\">Iteminfo</a></td></tr>
<tr align=\"left\"><td><a href=\"logout.php\">Logout</a></td></tr>
</table>";
}

?>

<?
//bgcolor="0099FF"
echo $page;

$result = do_query("SELECT * FROM account_login","AccountServer");
$num_act = mssql_num_rows($result);

$result = do_query("SELECT cha_id FROM character","GameDB");
$num_char = mssql_num_rows($result);



?>
<div class="bottom"></div>
<center><h2>Join Guide</h2>
<div class="back">
<div id="calendar"><p>
<center>Registration <A HREF="reg.php">Here</A><br>
Downloads <A HREF="dow.php">Here</A><br>
Information <A HREF="inf.php">Here</A><br>
Enjoy <A HREF="index.php">Home</A><br>
Friends <A HREF="http://tuti.dmn.lv">Here</A><br> Please Lets Follow Rules, And Make Peacce Full Game!
</p></div>
</div>
<div class="bottom"></div>
</div>
<!-- end rightbar -->
<div style="clear: both;">&nbsp;</div>
</div>
<!-- end page -->
<div id="footer">
<p>Copyright &copy; 2009 DmN &amp; FoxLv Networks!</p>
<p>Design by FoxY &amp; Neo6</p>

</div>
</div>
</body>
</html>


Login.php
Cita:
<?
?>
<?
include("./config.php");

if($_POST['login'])
{
$login = $_POST['login'];
$pw = strtoupper(md5($_POST['password']));
if ((eregi("[^a-zA-Z0-9_-]", $login)) || (eregi("[^a-zA-Z0-9_-]", $pw)) )
{
echo("SQL Injection Detected<br>");
exit();
}

$result = do_query("SELECT * FROM account_login WHERE name LIKE '$login' AND password = '$pw'","AccountServer");
$num = mssql_num_rows($result);

if($num > 0)
{
setcookie("PKO_login", $login, time()+60*60*24*30);
setcookie("PKO_password",$pw, time()+60*60*24*30);
echo "You logged in. Click <a href=\"index.php\">here</a> to continue.";
}
else
{
echo "Login or password is incorrect! Click <a href=\"index.php\">here</a> to retry";
}


}
else
{
header("Location: index.php");
}

?>


Logout.php
Cita:
<?
?>
<?
setcookie("PKO_login", $login, -time()+60*60*24*30);
setcookie("PKO_password",$pw, -time()+60*60*24*30);
echo "You logged out. Click <a href=\"index.php\">here</a> to continue.";
?>


Info.php
Cita:
<?
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<Title>Tales of Pirates Cotrol Panel</title>
<link rel="stylesheet" href="styles.css" type="text/css">
</head>

<body bgcolor="0099FF">
<center><h1><br />
<textarea rows=10 cols=70>
<?
$file = fopen("items.txt","r");
$items = fread($file, filesize("items.txt"));
echo $items;
?>
</textarea>
</h1>
<h1> <A HREF="index.php">Back To Home</A><br>
</h1>
</center>
</body>

</html>


List.php
Cita:
<?
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<?
$page = "";
include("config.php");
$auth = auth();
if($auth != 99)
$page = "You are not supposed to be here! Get <a href=\"index.php\">back</a>!";
else
{
if(isset($type) AND $type == "act")
{
$page = "<span class=\"t_n_t\">List of all accounts registered</span><br /><br />";
$page .= "\n<table width=\"550\"\ class=\"tabset_content\">";
$page .= "\n <tr><td width=\"50\"\>ID</td><td width=\"200\"\>Name</td><td width=\"200\"\>Last IP</td><td width=\"200\"\>GM level</td><td width=\"50\"\>Delete</td></tr>";
$result = do_query("SELECT * FROM account_login ORDER BY 1 ASC","AccountServer");
while($result2 = mssql_fetch_object($result))
{
$res = do_query("SELECT last_leave,last_ip,gm FROM account WHERE act_id = '$result2->id'","GameDB");
$res2 = mssql_fetch_object($res);
$page .= "\n <form type=\"GET\" <tr
class=\"t_b_f\"><td>$result2->id</td><td><a href=\"index.php\"> $result2->name</a></td><td> $res2->last_ip</td><td>$res2->gm</td><td width=\"50\"\><input type=\"hidden\" name=\"id\" value=$result2->id /><input type=\"hidden\" name=\"del\" value=\"true\" /><input type=\"submit\" value=\"Delete\" /></td></tr></form>"; }
$page .= "</table>";
}

if(isset($type) AND $type == "char")
{
$page = "<span class=\"t_n_t\">List of all characters created</span><br /><br />";
$page .= "\n<table width=550 class=\"tabset_content\">";
$page .= "\n <tr><td width=\"50\"\>ID</td><td width=\"150\"\>Name</td><td width=\"170\"\>Job</td><td width=\"130\"\>Experience</td><td width=\"50\"\>Delete</td></tr>";

$result = do_query("SELECT cha_id,cha_name,job,exp FROM character","GameDB");
while($result2 = mssql_fetch_object($result))
{
$level = exp_to_lv($result2->exp);
$job = zh_to_eng($result2->job,$chinese_jobs);
$page .= "\n <form type=\"GET\" <tr class=\"t_b_f\"><td width=\"50\"\>$result2->cha_id</td><td width=\"150\"\><a href=\"edit.php?cha_id=$result2->cha_id\">$result2->cha_name</a></td><td width=\"170\"\>$job ($result2->job)</td><td width=\"130\"\>$result2->exp (lv: $level)</td><td width=\"50\"\><input type=\"hidden\" name=\"id\" value=$result2->cha_id /><input type=\"hidden\" name=\"del\" value=\"true\" /><input type=\"submit\" value=\"Delete\" /></td></tr></form>";
}
$page .= "</table>";
}

if(isset($act))
{
$result = do_query("SELECT name FROM account_login WHERE id = '$act'","AccountServer");
if(mssql_num_rows($result)>0)
{
$page = "<span class=\"t_n_t\">Characters from account: $act </span><br /><br />";
$page .= "\n<table width=550 class=\"tabset_content\">";
$page .= "\n <tr><td width=\"50\"\>ID</td><td width=\"150\"\>Name</td><td width=\"150\"\>Job</td><td width=\"150\"\>Experience</td><td width=\"50\"\>Delete</td></tr>";

$result = do_query("SELECT cha_id,cha_name,job,exp FROM character WHERE act_id = '$act'","GameDB");
while($result2 = mssql_fetch_object($result))
{
$level = exp_to_lv($result2->exp);
$job = zh_to_eng($result2->job,$chinese_jobs);
$page .= "\n <form type=\"GET\" action=\"edit.php\"><tr class=\"t_b_f\"><td width=\"50\"\>$result2->cha_id</td><td width=\"150\"\><a href=\"edit.php?cha_id=$result2->cha_id\">$result2->cha_name</a></td><td width=\"170\"\>$job ($result2->job)</td><td width=\"130\"\>$result2->exp (lv: $level)</td><td width=\"50\"\><input type=\"hidden\" name=\"id\" value=$result2->cha_id /><input type=\"hidden\" name=\"del_char\" value=\"true\" /><input type=\"submit\" value=\"Delete\" /></td></tr></form>";
}
$page .= "</table>";
}
else $page = "No account exist with that ID!";
}
}
?>

<HTML>
<HEAD>
<Title>Tales of Pirates Cotrol Panel</title>
<link rel="stylesheet" href="styles.css" type="text/css">


</head>

<body >
<center>
<?

echo "<br><br>".$page;





$result = do_query("SELECT * FROM account_login","AccountServer");
$num_act = mssql_num_rows($result);

$result = do_query("SELECT cha_id FROM character","GameDB");
$num_char = mssql_num_rows($result);

echo "<br><br>
<table>

</table>";
echo "<br> <a href=\"index.php\">Home</a> :: <a href=\"logout.php\">Log Out</a>";

?>
<br><br>
</center>
</body>

</html>


Styles

Cita:
/*
Design by Metamorphosis Design
http://www.metamorphozis.com
Released for free under a Creative Commons Attribution 2.5 License
*/

*
{
margin: 0px;
padding: 0px;
}

body {
background: #AAE0FE url(images/back_all.gif) repeat-x;
font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
color: #A4E4F5;
margin-top: 60px;
margin-bottom: 20px;
}

input, textarea {
background: #A4E4F5;
border: 1px solid #FFFFFF;
font: bold 13px Arial, Helvetica, sans-serif;
color: #0F5B96;
}

h1, h2, h3, p, ol, ul {
margin-top: 0;
}

h1, h2, h3 {
font-family: Arial, Helvetica, sans-serif;
}

h1, h2 {
text-transform: lowercase;
font-weight: normal;
}

h1 {
font-size: 2.4em;
}

h2 {
font-size: 1.8em;
}

p, ol, ul {
margin-bottom: 1.5em;
line-height: 150%;
}

a {
color: #1D74A6;
}

a:hover {
text-decoration: none;
color: #1D74A6;
}



hr {
display: none;
}

#main
{
width: 904px;
margin: 0 auto;
border: 10px solid #ffffff;
}

/* Header */

#header {
height: 424px;
width: 904px;
}

#logo {
width: 904px;
height: 375px;
background: url(images/header.jpg) repeat-x;
}

#logo h1, #logo p {
margin: 0;
line-height: normal;
}

#logo h1 {
padding: 47px 0 0 20px;
font-size: 24px;
color: #62D6F5;
}
#logo h2 {
padding: 10px 0 0 20px;
font-size: 10px;
text-transform: uppercase;
color: #62D6F5;
}

#logo a {
text-decoration: none;
color: #62D6F5;
}

#menu {
height: 49px;
padding-left: 140px;
background: url(images/menu.gif) no-repeat;
}

#menu ul {
margin: 0;
list-style: none;
}

#menu li {
display: inline;
}

#menu a {
float: left;
width: 120px;
height: 35px;
margin: 0 0 0 2px;
padding: 14px 0 0 0;
text-decoration: none;
text-align: center;
letter-spacing: -1px;
font-size: 1.1em;
font-weight: bold;
color: #000000;
}

#menu a:hover {
background: url(images/menu_r.gif) repeat-x;
}

/* Page */

#page {
width: 904px;
background: #ffffff;
margin: 0 auto;
}

/* Content */

#content {
float: left;
width: 452px;
margin-left: 10px;
}

#content .post ul, #content .post ol
{
margin-left: 30px;
}

.post {
margin-bottom: 15px;
background: #AAE0FE;
padding: 10px;
color: #0A416B;
}

.post a {
color: #1D74A6;
}

.post a:hover {
color: #FFFFFF;
}


/* Sidebars */

.sidebar {
float: left;
width: 216px;
margin-top: 10px;
color: #0D699B
}

.sidebar ul {
margin: 0;
padding: 0;
list-style: none;
line-height: normal;
}


.sidebar li {
padding: 6px 0 6px 20px;
}

.sidebar a {
text-decoration: none;
color: #0D699B;
font-size: 11px;
}
.sidebar a:hover {
color: #0D699B;
text-decoration: underline;
}

.sidebar h2 {
padding-top: 10px;
color: #FFFFFF;
background: url(images/title.gif) no-repeat;
height: 34px;
padding-left: 20px;
}

/* Left Sidebar */

#leftbar {
}

/* Right Sidebar */

#rightbar {
margin-left: 10px;
}

#leftbar .back, #rightbar .back
{
background: url(images/box_back.gif) repeat-y;
padding: 10px;
}

#leftbar .bottom, #rightbar .bottom
{
background: url(images/box_bottom.gif) no-repeat;
height: 3px;
width: 216px;
margin-bottom: 10px;
}


/* Calendar */

#calendar table {
width: 100%;
text-align: center;
}

#calendar thead {

}

#calendar tbody td {
border: 1px solid #F1F1F1;
}

#calendar #prev {
text-align: left;
}

#calendar #next {
text-align: right;
}

#calendar tfoot a {
text-decoration: none;
font-weight: bold;
}

#calendar #now {
background: #696969;
border: 1px solid #ff0000;
font-weight: bold;
color: #ffffff
}


/* Footer */

#footer {
clear: both;
padding-top: 20px;
height: 62px;
background: url(images/footer.gif) repeat-x;
}

#footer p {
text-align: center;
font-size: smaller;
color: #0F5B96;
}

#footer a {
color: #0F5B96;
}


SQL.INC
Cita:
<?PHP
include "index.php";
if (!mssql_connect($Sql['host'] , $Sql['user'], $Sql['password'])) die("<center>Can't Connect To Database</center>");
if (!mssql_select_db($Sql['database'])) die("<center>Can't Connect To Database</center>");


function xw_sanitycheck($str){
if(strpos(str_replace("''",""," $str"),"'")!=false)
return str_replace("'", "''", $str);
else
return $str;
}


function secure($str){
// Case of an array
if (is_array($str)) {
foreach($str AS $id => $value) {
$str[$id] = secure($value);
}
}
else
$str = xw_sanitycheck($str);

return $str;
}

// Get Filter
$xweb_AI = array_keys($_GET);
$i=0;
while($i<count($xweb_AI)) {
$_GET[$xweb_AI[$i]]=secure($_GET[$xweb_AI[$i]]);
$i++;
}


// Request Filter
$xweb_AI = array_keys($_REQUEST);
$i=0;
while($i<count($xweb_AI)) {
$_REQUEST[$xweb_AI[$i]]=secure($_REQUEST[$xweb_AI[$i]]);
$i++;
}


// Post Filter
$xweb_AI = array_keys($_POST);
$i=0;
while($i<count($xweb_AI)) {
$_POST[$xweb_AI[$i]]=secure($_POST[$xweb_AI[$i]]);
$i++;
}

// Cookie Filter
$xweb_AI = array_keys($_COOKIE);
$i=0;
while($i<count($xweb_AI)) {
$_COOKIE[$xweb_AI[$i]]=secure($_COOKIE[$xweb_AI[$i]]);
$i++;
}
?>


Gracias
Mensaje19-04-2009, 15:32 (UTC)    
Título del mensaje:

A todo esto hay un problema, PWG no admite PHP, así que tendría que ser htm

Que tenga suerte

Salu2
______________

Recuerda las Normas del Foro
Utiliza el Buscador del Foro
No hagas doble post (EDITA)
Mira como se usa el FORO
Get Sabinico Toolbar
Mostrar mensajes anteriores:   


Powered by phpBB © 2001, 2005 phpBB Group