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) C:\AmbienteBogota\comments\admin\ drwxrwxrwx |
Viewing file: Select action/file-type: <?php /** * Copyright 2008 Grestul Group * Powered by Grestul * admin panel creator: Imad Jomaa **/ ?> <?php session_start(); define('GRESTUL_ROOT', dirname(dirname(__FILE__))."/"); require "inc/config.php"; if(!isset($_SESSION['loggedin'])) { header('Location: index.php?error'); exit(); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <title><?php echo "$webad"; ?></title> <link href="inc/admin.css" rel="stylesheet" type="text/css" /> <link href="inc/general.css" rel="stylesheet" type="text/css" /> </head> <body> <img src="inc/images/logo.png" class="logo" /> <div class="logout"><a href="close.php">Logout</a></div> <div class="navi"> <a href="home.php"><img src="inc/images/homeoff.png" class="navihoff" /></a> <a href="management.php"><img src="inc/images/manageoff.png" class="navioff" /></a> <a href="stylehome.php"><img src="inc/images/styleon.png" class="navion" /></a> </div> <div class="contentrep"> <div class="infobar"> <div class="infotext"> Here, you can modify the main templates of the admin control panel. Be sure to modify with care and to leave the comments in for refrence. </div> </div> <div class="btite"> Grestul Management - Main Comments Style. </div> <div class="smalltite"> You are currently modifying: Main comment style. </div> <div class="bodycontent"> <?php if($_POST['Submit']){ echo '<div class="pass">'; echo "Template Updated!"; echo '</div>'; } else if($_POST['Submit']){ echo '<div class="fail">'; echo "Can't update the template! — make sure the file is CHMODded."; echo '</div>'; } ?> <fieldset> <legend>Main Comment Style</legend> <?php if($_POST['Submit']){ $open = fopen(GRESTUL_ROOT.'inc/style.css',"w+"); $styler = $_POST['update']; fwrite($open, $styler); fclose($open); $file = file(GRESTUL_ROOT.'inc/style.css'); echo "<form action=\"".$PHP_SELF."\" method=\"post\">"; echo "<textarea Name=\"update\" cols=\"79\" rows=\"10\">"; foreach($file as $styler) { echo stripslashes($styler); } echo "</textarea>"; echo "</fieldset>"; echo "<input name=\"Submit\" type=\"submit\" class=\"submit\" value=\"Update\" />\n </form>"; }else if(is_writable(GRESTUL_ROOT.'inc/style.css')) { $file = file(GRESTUL_ROOT.'inc/style.css'); echo "<form action=\"".$PHP_SELF."\" method=\"post\">"; echo "<textarea Name=\"update\" cols=\"79\" rows=\"10\">"; foreach($file as $styler) { echo stripslashes($styler); } echo "</textarea>"; echo "</fieldset>"; echo "<input name=\"Submit\" type=\"submit\" class=\"submit\" value=\"Update\" />\n </form>"; } else { echo '<div class="fail">'; echo "The style.css file isn't writable! Please CHMOD inc/style.css to use this editor"; echo '</div>'; } ?> </div> </div> <div class="footer"> <!-- DO NOT CHANGE, REMOVE, OR HINDER WITH THE COPYRIGHT OR POWERED BY LINES BELOW --> <!-- YOU AGREED TO THE AGREEMENT WHEN YOU DOWNLOADED AND INSTALLED OUR SOFTWARE --> <!-- REMOVING THE LINES BELOW WILL FORCE US TO TAKE LEGAL ACTION --> <!-- BE FAIR AND KEEP THE POWERED BY AND COPYRIGHT LINES. --> Powered By: <a href="http://grestul.com" target="_blank">Grestul,</a> Copyright © 2008 <a href="http://grestul.com" target="_blank">Grestul Group.</a> </div> </body> </html> |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0156 ]-- |