!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 8.8 GB of 239.26 GB (3.68%)
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:     category.php (3.17 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once 'includes/init.php';

// load user and global cats
load_user_categories ();

$error "";

if ( 
$categories_enabled == "N" ) {
  
send_to_preferred_view ();
  exit;
}

// If editing, make sure they are editing their own
// (or they are an admin user).
if ( ! empty ( $id ) ) {
  
$res dbi_query "SELECT cat_id, cat_owner FROM webcal_categories WHERE " .
    
"cat_id = $id);
  if ( 
$res ) {
    if ( 
$row dbi_fetch_row $res ) ) {
      if ( 
$row[0] != $id )
        
$error translate "Invalid entry id" ) . ": " $id;
      else if ( 
$row[1] != $login && ! $is_admin )
        
$error translate "You are not authorized" ) . ".";
    }
    
dbi_free_result $res );
  } else {
    
$error translate("Database error") . ": " dbi_error ();
  }
}

print_header();
?>
<h2><?php etranslate("Categories")?></h2>
<a title="<?php etranslate("Admin"?>" class="nav" href="adminhome.php">&laquo;&nbsp;<?php etranslate("Admin"?></a><br /><br />
<?php

if ( empty ( $add ) )
  
$add 0;

// Adding/Editing category
if ( ( ( $add == '1' ) || ( ! empty ( $id ) ) ) && empty ( $error ) ) {
  
$button translate("Add");
  
?>
  <form action="category_handler.php" method="post">
  <?php
  
if ( ! empty ( $id ) ) {
    echo 
"<input name=\"id\" type=\"hidden\" value=\"$id\" />";
    
$button translate("Save");
    
$catname $categories[$id];
    
$catowner $category_owners[$id];
  } else {
    
$catname '';
  }
  
?>
  <?php etranslate("Category Name")?>: <input type="text" name="catname" size="20" value="<?php echo htmlspecialchars $catname ); ?>" />
  <br />
  <?php if ( $is_admin && empty ( $id ) ) { ?>
    <?php etranslate("Global")?>:
      <label><input type="radio" name="isglobal" value="N" <?php if ( ! empty ( $catowner ) || empty ( $id ) ) echo " checked=\"checked\"";?> />&nbsp;<?php etranslate("No")?></label>&nbsp;&nbsp;
      <label><input type="radio" name="isglobal" value="Y" <?php if ( empty ( $catowner ) && ! empty ( $id ) ) echo " checked=\"checked\"";?> />&nbsp;<?php etranslate("Yes")?></label>
  <?php ?>
  <br /><br />
  <input type="submit" name="action" value="<?php echo $button;?>" />
  <?php if ( ! empty ( $id ) ) {  ?>
    <input type="submit" name="action" value="<?php etranslate("Delete");?>" onclick="return confirm('<?php etranslate("Are you sure you want to delete this entry?"); ?>')" />
  <?php }  ?>
  </form>
  <?php
} else if ( empty ( $error ) ) {
  
// Displaying Categories
  
$global_found false;
  if ( ! empty ( 
$categories ) ) {
    echo 
"<ul>";
    foreach ( 
$categories as $K => $V ) {
      echo 
"<li>";
      if ( 
$category_owners[$K] == $login || $is_admin )
        echo 
"<a href=\"category.php?id=$K\">$V</a>";
      else
        echo 
$V;
      if ( empty ( 
$category_owners[$K] ) ) {
        echo 
"<sup>*</sup>";
    
$global_found true;
      }
      echo 
"</li>\n";
    }
    echo 
"</ul>";
  }
  if ( 
$global_found )
    echo 
"<br /><br />\n<sup>*</sup> " translate "Global" );
  echo 
"<p><a href=\"category.php?add=1\">" translate("Add New Category") . "</a></p><br />\n";
}

if ( ! empty ( 
$error ) ) {
  echo 
"<span style=\"font-weight:bold;\">" translate "Error" ) . ":</span>" $error;
}
?>

<?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 ]--