Jump to content

3 days thinking of it


egturnkey

Recommended Posts

Hi there,

 

for every case we have "gooo" as commen in all

how this could be one code using anything like elseif or switch whatever...

 

if($refere && (stripos($r, $refere) === false)){ 
echo "x1"
}else{
echo"goooo"
}

 

And

 

if($limited && ($line[hits] >= $limited)){ 
echo "x2"
}else{
echo"goooo"
}

 

And

 

if($pword && (isset($_POST['password']) && $_POST['password'] == $pword) ){
echo"goooo"
}else{
echo"x3"
}

 

And

 

if ($line[capt] == 1 && ($_SESSION["security_code"]) ){
echo"goooo"
}else{
echo"x4"
}

 

 

thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/214635-3-days-thinking-of-it/
Share on other sites

echo ($refere && (stripos($r, $refere) === false)) &&
     ($limited && ($line['hits'] >= $limited)) &&
     !($pword && (isset($_POST['password']) && $_POST['password'] == $pword) &&
     !($line['capt'] == 1 && ($_SESSION['security_code'])
   ? 'x'
   : 'gooooo';

 

LOOOLLLLL

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.