Jump to content

I thought it was right...


maxudaskin

Recommended Posts

<?php
  if(!$logged_in){
  echo 'You are not logged in';
  }else{
  if($_SESSION['type'] != 1){
  $action = $_GET['action'];
  $pirep  = $_GET['pirep'];
  $user   = 'OOM'.$_SESSION['username'].' '.$_SESSION['name'];
  $date   = '';
  if(!empty($action) && !empty($pirep)){
  if($action = 'accept'){
  
  $acceptsql = mysql_query("UPDATE `zoomdb`.`pireps` SET `type` = '0' WHERE `pireps`.`pirepid` ='{$pirep}' LIMIT 1");
  if($acceptsql){
  echo 'Application Accepted';
  }else{
  die('ERROR: Application not accepted due to internal error.');
  }
  }elseif($action = 'deny'){
  $denysql = mysql_query("UPDATE `zoomdb`.`pireps` SET `type` = '2' WHERE `pireps`.`pirepid` ='{$pirep}' LIMIT 1");
  }else{
  echo 'You have specified an unknown action.';
  }
  }else{
  echo 'You do not have either an action or a pirep specified or both.';
  }}}
  ?>

 

It does not output anything, but it does not give an error either... no actions at all.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.