All pastes #294839 Raw Edit

ERMAC

public php v1 · immutable
#294839 ·published 2006-12-28 21:34 UTC
rendered paste body
// Case/Break Functions from Index.php		<?php/* RSS/XML */switch ($_GET['action']) {	case "edit-st_news":	include("/home/aristot/public_html/admin/edit_files/rss/st_news.php");	break;		case "edit-qotd":	include("/home/aristot/public_html/admin/edit_files/rss/qotd.php");	break;/* Download Manager */	case "edit-rsssync_1.0.121706":	include("/home/aristot/public_html/admin/edit_files/downloadmanager/rsssync_1.0.121706.php");	break;		case "edit-supportsuit_3.00.32":	include("/home/aristot/public_html/admin/edit_files/downloadmanager/supportsuit_3.00.32.php");	break;/* MySpeed */	case "ms-view_by_ip":	include("/home/aristot/public_html/admin/edit_files/myspeed/view_by_ip.php");	break;		case "ms-view_by_name":	include("/home/aristot/public_html/admin/edit_files/myspeed/view_by_name.php");	break;/* Documentation */		case "edit-todo":	include("/home/aristot/public_html/admin/edit_files/docs/todo.php");	break;		default:	include('/home/aristot/public_html/admin/edit_files/main.php');	break;}?>// qotd.php<?  /**	* filename.php	*	* Main file for CMX-Networks	*	* @author     Phillip Tanner <ptanner@cmx-networks.net>	* @link       http://www.cmx-networks.net	* @since      March 10, 2006	* @version    $Revision: 1.0 $	* @package    CodeName : Source	*   	*/$filename = "/home/aristot/public_html/rss/qotd.xml";if($_POST['Submit']){        $open = fopen("$filename","w+");        $text = $_POST['update'];        $text = str_replace("\\", "", $text);        fwrite($open, $text);        fclose($open);        echo "File updated.'$filename'.<br />";        echo "</pre><p><a href=\"./livepage.php\">click here to view the live updated webpage</a></p>";        echo "<p><a href=\"./mainadminpage.php\">click here to view the admin menu</a></p>"; }else{        $file = file("$filename");echo '<form action="edit_files/rss/qotd.php" method="post">';        echo "<pre><textarea Name=\"update\" cols=\"100\" rows=\"40\">";        foreach($file as $text)                echo $text;        echo "</textarea></pre>\n";        echo "<input name=\"Submit\" type=\"submit\" value=\"Save\" /></form>";} ?>