Author Topic: Strategus Site (Some variables un defined)  (Read 368 times)

0 Members and 1 Guest are viewing this topic.

Offline Brightness

  • Beggar
  • Renown: 0
  • Infamy: 0
  • cRPG Player
    • View Profile
Strategus Site (Some variables un defined)
« on: July 27, 2012, 07:14:15 pm »
0
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). 

Offline Lannistark

  • Duke
  • *******
  • Renown: 586
  • Infamy: 118
  • cRPG Player
    • View Profile
  • Faction: Deserters
  • Game nicks: Duke
Re: Strategus Site (Some variables un defined)
« Reply #1 on: July 27, 2012, 07:33:18 pm »
0
Code: [Select]

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

Imo feels better  :mrgreen:
« Last Edit: July 27, 2012, 07:53:14 pm by Lannistark »
visitors can't see pics , please register or login

Offline Brightness

  • Beggar
  • Renown: 0
  • Infamy: 0
  • cRPG Player
    • View Profile
Re: Strategus Site (Some variables un defined)
« Reply #2 on: July 27, 2012, 07:51:05 pm »
0
True feel safe like that D: