cRPG

Strategus => Strategus Issues => Topic started by: Brightness on July 27, 2012, 07:14:15 pm

Title: Strategus Site (Some variables un defined)
Post by: Brightness on July 27, 2012, 07:14:15 pm
Basically I decided to press logout in CRPG and then refresh the Strategus page and received this,
Quote
Notice: Undefined index: username in /var/www/crpg/webcrpg/strategus/news.php on line 19

Notice: Undefined index: password in /var/www/crpg/webcrpg/strategus/news.php on line 19


Of course it isn't something dangerous just un defined variables which is an easy fix using
Code: [Select]
if(!isset(variablename)) but I guess it would a lot nicer if you would add an notice that your not logged in :) (Noob safe)

(My Opinion). 
Title: Re: Strategus Site (Some variables un defined)
Post by: Lannistark on July 27, 2012, 07:33:18 pm
Code: [Select]

if (!isset(variablename)) { echo "<p>Please try logging in again <b>{$_REQUEST["username"]}"; </b></p>.  }                                                         
     
   

Imo feels better  :mrgreen:
Title: Re: Strategus Site (Some variables un defined)
Post by: Brightness on July 27, 2012, 07:51:05 pm
True feel safe like that D: