Jump to content

Zero3X

Members
  • Posts

    19
  • Joined

  • Last visited

    Never

Everything posted by Zero3X

  1. I'm from the UK so i bought it from overclockers.co.uk. I'm well outside of their returns policy as well as Asus' 3 year warranty. So I'm just going to hope it is the motherboard and buy a new one - I actually don't see how it could be anything else; the in built graphics don't work, the USB ports aren't supplying any power and a grounding issue has pretty much been ruled out.
  2. Yep, I have reset the BIOS and tried everything I've already tried again ealier today - and after that didn't work I removed the BIOS battery for an hour, put it back in and then tried everything a third time. I've removed everything and tried to boot, that didn't work. I'm also not getting any signal from the built in DVI or VGA ports. It's definatley not the monitor because it works fine displaying input from my backup PC. I've tried a different power supply and still didn't get anywhere. I also tried the RAM in my backup PC and all works well. I might just bite the bullet and buy another motherboard - I've had my suspicions that this one was a little bit faulty since day one. Thanks for all ya help
  3. I don't have a PS/2 keyboard to hand :/ The motherboard is raised from the case and no part of the case is touching the motherboard at all. I've also tried booting up with the motherboard suspended on 4 cardboard pillars as a last resort - that didn't work. Video card is powered with a 4pin PCI connector. CPU fan as well as all other fans are turning. The CPU heatsink appears to be seated properly. Yep, the 20 pin connector and the 4 pin CPU power are plugged in. The motherboard's power status light is also illuminated. I can't see any leaking fluid or feel any bulges on the top of the capacitors (on the motherboard or the graphics card). I should also mention that there is no voltage selection switch on my power supply so that isn't causing a problem.
  4. About 4 years ago I bought an Asus M4A785TD-M Evo motherboard to go with my AMD Phenom Quad Core CPU, Sapphire HD5770, 4GB of Corsair XMS3 RAM and Corsair 950W PSU. When I first got it and put it together everything worked well - for about 4 months when the ethernet port on the motherboard stopped working. I really couldn't be bothered to send it back so I put in a spare ethernet card I had lying around. About a year in I decided to clean out the PC. The graphics card was blocking direct access to the rear fan so I took it out and proceeded to clean. Upon putting the graphics card back in I found it I wasn't getting any video. So I tried moving it about a bit but got nowhere. I then remember removing the graphics card completely and trying the motherboard's display. That didn't work so I out the graphics card back in, moved it about a bit and eventually got it working. I think I went through this same motion once before. Anyway, today I decided to move all the components into a new case. I placed everything in and connected the monitor to the graphics card. No display. I tried reseating the graphics card and still no display. There's no display on the motherboard's display either. Both the 4 pin power connector and the larger power connector (16 pin?) are in place and have been reseated quite a few times. I've tried 4 separate sticks of RAM in various slots and that didn't work. I don't have a motherboard speaker so can't tell if it's posting or not but I have tried logging in to windows blind a few times and I dont get the logon sound playing. I've also tried the above again after resetting the CMOS. I also just noticed that my keyboard and mouse aren't receiving power after turning the PC on - the optical mouse's LED isn't on and the caps/num lock LED of the keyboard doesn't work. I've tried various USB ports on the back and they didn't work. When I connected the mouse to the front USB of the case the optical LED flashes on for a second and then no more. So, is my motherboard borked?
  5. Say I have a script on server A which connects to a database and performs (for example) 10 queries a minute. If this database was stored on server B would server A benefit? Would the RAM or bandwidth use of server A be reduced?
  6. Ah! Sorry, I'm quite tired. Add exit(); after echo "<p>You did not pass the human check.</p>";
  7. I think I fixed it. Basically $human_answer was being set again when the form was submitted - so if the question was 3 + 7 and you wrote 10 when the form was submitted the question would change to 23 + 12 or something stupid. My bad. ANyway this should fix it. I also replaced the die() functions with echos. <?PHP session_start(); require_once "formvalidator.php"; $show_form=true; if (!isset($_POST['Submit'])) { $human_number1 = rand(1, 12); $human_number2 = rand(1, 38); $human_answer = $human_number1 + $human_number2; $_SESSION['check_answer'] = $human_answer; } if(isset($_POST['Submit'])) { if (!isset($_SESSION['check_answer'])) { echo "<p>Error: Answer session not set</p>"; } if($_POST['math'] != $_SESSION['check_answer']) { echo "<p>You did not pass the human check.</p>"; } $validator = new FormValidator(); $validator->addValidation("FirstName","req","Please fill in FirstName"); $validator->addValidation("LastName","req","Please fill in LastName"); $validator->addValidation("UserName","req","Please fill in UserName"); $validator->addValidation("Password","req","Please fill in a Password"); $validator->addValidation("Password2","req","Please re-enter your password"); $validator->addValidation("Password2","eqelmnt=Password","Your passwords do not match!"); $validator->addValidation("email","email","The input for Email should be a valid email value"); $validator->addValidation("email","req","Please fill in Email"); $validator->addValidation("Zip","req","Please fill in your Zip Code"); $validator->addValidation("Security","req","Please fill in your Security Question"); $validator->addValidation("Security2","req","Please fill in your Security Answer"); if($validator->ValidateForm()) { $con = mysql_connect("localhost","beatthis","Jim2Drew!") or die('Could not connect: ' . mysql_error()); mysql_select_db("beatthis_beatthis") or die(mysql_error()); $FirstName=mysql_real_escape_string($_POST['FirstName']); //This value has to be the same as in the HTML form file $LastName=mysql_real_escape_string($_POST['LastName']); //This value has to be the same as in the HTML form file $UserName=mysql_real_escape_string($_POST['UserName']); //This value has to be the same as in the HTML form file $Password= md5($_POST['Password']); //This value has to be the same as in the HTML form file $Password2= md5($_POST['Password2']); //This value has to be the same as in the HTML form file $email=mysql_real_escape_string($_POST['email']); //This value has to be the same as in the HTML form file $Zip=mysql_real_escape_string($_POST['Zip']); //This value has to be the same as in the HTML form file $Birthday=mysql_real_escape_string($_POST['Birthday']); //This value has to be the same as in the HTML form file $Security=mysql_real_escape_string($_POST['Security']); //This value has to be the same as in the HTML form file $Security2=mysql_real_escape_string($_POST['Security2']); //This value has to be the same as in the HTML form file $sql="INSERT INTO Profile (`FirstName`,`LastName`,`Username`,`Password`,`Password2`,`email`,`Zip`,`Birthday`,`Security`,`Security2`) VALUES ('$FirstName','$LastName','$UserName','$Password','$Password2','$email','$Zip','$Birthday','$Security','$Security2')"; //echo $sql; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } else{ mail('webguync@gmail.com','A profile has been submitted!',$FirstName.' has submitted their profile',$body); echo "<h3>Your profile information has been submitted successfully.</h3>"; } mysql_close($con); $show_form=false; } else { echo "<h3 class='ErrorTitle'>Validation Errors:</h3>"; $error_hash = $validator->GetErrors(); foreach($error_hash as $inpname => $inp_err) { echo "<p class='errors'>$inpname : $inp_err</p>\n"; } } } if(true == $show_form) { ?> <form name="test" id="ContactForm" method="POST" accept-charset="UTF-8" action="<?php echo $_SERVER['PHP_SELF'];?>"> <fieldset> <div class='normal_field'><label for="LastName">First Name</label></div> <div class='element_label'> <input type='text' name='FirstName' size='20'> </div> <div class='normal_field'><label for="LastName">Last Name</label></div> <div class='element_label'> <input type='text' name='LastName' size='20'> </div> </fieldset> <fieldset> <div class='normal_field'><label for="UserName">User Name</label></div> <div class='element_label'> <input type='text' name='UserName' size='20'> </div> <div class='normal_field'><label for="Password">Password</label></div> <div class='element_label'> <input type='password' name='Password' size='20'> </div> <div class='normal_field'><label for="Password2">Re-Enter Password</label></div> <div class='element_label'> <input type='password' name='Password2' size='20'> </div> <div class='normal_field'><label for="Email">Email</label></div> <div class='element_label'> <input type='text' name='email' size='20'> </div> </fieldset> <fieldset> <div class='normal_field'><label for="Zip">Zip Code</label></div> <div class='element_label'> <input type='text' name='Zip' size='20'> </div> <div class='normal_field'><label for="Birthday">Birthday(mm/dd/yyyy format)</label></div> <div class='element_label'> <input type='text' name='Birthday' size='20'> </div> <div class='normal_field'><label for="Security">Security Question</label></div> <div class='element_label'> <input type='text' name='Security' size='20'> </div> <div class='normal_field'><label for="Security2">Security Answer</label></div> <div class='element_label'> <input type='text' name='Security2' size='20'> </div> <div class='normal_field'><label for="math">What is <?php echo $human_number1." + ".$human_number2. "?"; ?></label></div> <div class='element_label'> <input type='text' name='math' size='20'> </div> </fieldset> <div id="agree"> <label for="tos"> <input type="checkbox" id="tos" name="tos" value="yes" /> I have read and agree to the <a href="ajax/serviceterms.html" id="terms">Terms of Service</a>. </label> </div> <fieldset> <div id="service-terms" class="box rounded-all"></div> <div class="controls"> <input id="submit" type="submit" name="Submit" value="CREATE PROFILE"/> </div> </fieldset> </form> <?PHP }//true == $show_form ?>
  8. Haven't tested but this should work. <?PHP require_once "formvalidator.php"; $show_form=true; $human_number1 = rand(1, 12); $human_number2 = rand(1, 38); $human_answer = $human_number1 + $human_number2; session_start(); $_SESSION['check_answer'] = $human_answer; if(isset($_POST['Submit'])) { if (!isset($_SESSION['check_answer'])) { die ("Error: Answer session not set"); } if($_POST['math'] != $_SESSION['check_answer']) { die ("You did not pass the human check."); } $validator = new FormValidator(); $validator->addValidation("FirstName","req","Please fill in FirstName"); $validator->addValidation("LastName","req","Please fill in LastName"); $validator->addValidation("UserName","req","Please fill in UserName"); $validator->addValidation("Password","req","Please fill in a Password"); $validator->addValidation("Password2","req","Please re-enter your password"); $validator->addValidation("Password2","eqelmnt=Password","Your passwords do not match!"); $validator->addValidation("email","email","The input for Email should be a valid email value"); $validator->addValidation("email","req","Please fill in Email"); $validator->addValidation("Zip","req","Please fill in your Zip Code"); $validator->addValidation("Security","req","Please fill in your Security Question"); $validator->addValidation("Security2","req","Please fill in your Security Answer"); if($validator->ValidateForm()) { $con = mysql_connect("localhost","beatthis","Jim2Drew!") or die('Could not connect: ' . mysql_error()); mysql_select_db("beatthis_beatthis") or die(mysql_error()); $FirstName=mysql_real_escape_string($_POST['FirstName']); //This value has to be the same as in the HTML form file $LastName=mysql_real_escape_string($_POST['LastName']); //This value has to be the same as in the HTML form file $UserName=mysql_real_escape_string($_POST['UserName']); //This value has to be the same as in the HTML form file $Password= md5($_POST['Password']); //This value has to be the same as in the HTML form file $Password2= md5($_POST['Password2']); //This value has to be the same as in the HTML form file $email=mysql_real_escape_string($_POST['email']); //This value has to be the same as in the HTML form file $Zip=mysql_real_escape_string($_POST['Zip']); //This value has to be the same as in the HTML form file $Birthday=mysql_real_escape_string($_POST['Birthday']); //This value has to be the same as in the HTML form file $Security=mysql_real_escape_string($_POST['Security']); //This value has to be the same as in the HTML form file $Security2=mysql_real_escape_string($_POST['Security2']); //This value has to be the same as in the HTML form file $sql="INSERT INTO Profile (`FirstName`,`LastName`,`Username`,`Password`,`Password2`,`email`,`Zip`,`Birthday`,`Security`,`Security2`) VALUES ('$FirstName','$LastName','$UserName','$Password','$Password2','$email','$Zip','$Birthday','$Security','$Security2')"; //echo $sql; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } else{ mail('webguync@gmail.com','A profile has been submitted!',$FirstName.' has submitted their profile',$body); echo "<h3>Your profile information has been submitted successfully.</h3>"; } mysql_close($con); $show_form=false; } else { echo "<h3 class='ErrorTitle'>Validation Errors:</h3>"; $error_hash = $validator->GetErrors(); foreach($error_hash as $inpname => $inp_err) { echo "<p class='errors'>$inpname : $inp_err</p>\n"; } } } if(true == $show_form) { ?> <form name="test" id="ContactForm" method="POST" accept-charset="UTF-8" action="<?php echo $_SERVER['PHP_SELF'];?>"> <fieldset> <div class='normal_field'><label for="LastName">First Name</label></div> <div class='element_label'> <input type='text' name='FirstName' size='20'> </div> <div class='normal_field'><label for="LastName">Last Name</label></div> <div class='element_label'> <input type='text' name='LastName' size='20'> </div> </fieldset> <fieldset> <div class='normal_field'><label for="UserName">User Name</label></div> <div class='element_label'> <input type='text' name='UserName' size='20'> </div> <div class='normal_field'><label for="Password">Password</label></div> <div class='element_label'> <input type='password' name='Password' size='20'> </div> <div class='normal_field'><label for="Password2">Re-Enter Password</label></div> <div class='element_label'> <input type='password' name='Password2' size='20'> </div> <div class='normal_field'><label for="Email">Email</label></div> <div class='element_label'> <input type='text' name='email' size='20'> </div> </fieldset> <fieldset> <div class='normal_field'><label for="Zip">Zip Code</label></div> <div class='element_label'> <input type='text' name='Zip' size='20'> </div> <div class='normal_field'><label for="Birthday">Birthday(mm/dd/yyyy format)</label></div> <div class='element_label'> <input type='text' name='Birthday' size='20'> </div> <div class='normal_field'><label for="Security">Security Question</label></div> <div class='element_label'> <input type='text' name='Security' size='20'> </div> <div class='normal_field'><label for="Security2">Security Answer</label></div> <div class='element_label'> <input type='text' name='Security2' size='20'> </div> <div class='normal_field'><label for="math">What is <?php echo $human_number1." + ".$human_number2. "?"; ?></label></div> <div class='element_label'> <input type='text' name='math' size='20'> </div> </fieldset> <div id="agree"> <label for="tos"> <input type="checkbox" id="tos" name="tos" value="yes" /> I have read and agree to the <a href="ajax/serviceterms.html" id="terms">Terms of Service</a>. </label> </div> <fieldset> <div id="service-terms" class="box rounded-all"></div> <div class="controls"> <input id="submit" type="submit" name="Submit" value="CREATE PROFILE"/> </div> </fieldset> </form> <?PHP }//true == $show_form ?> I'm not sure if it was a good idea for me to use a session though - I never really use them.
  9. Well, I tested it out and have a Fatal Error. Fatal error: Class 'ZipArchive' not found in ... on line 9. I guess it doesn't like me declaring a new ziparchive.
  10. Thanks for the help. Could someone tell me if this would work? I'm not near my server right now so I can't test it myself. <?php if($_GET['action'] == "uploadtheme") { //Check if the upload is a .zip if($_FILES['themeupload']['type'] == "file/zip" or $_FILES['themeupload']['type'] == "application/x-zip-compressed" or $_FILES['themeupload']['type'] == "application/zip") { //Create temp directory, move zip to it. mkdir("themes/temp", 0777); $target = "themes/temp".basename($_FILES['themeupload']['name']) ; move_uploaded_file($_FILES['themeupload']['tmp_name'], $target); //Extract zip and check if theme.php exists $zip = new ZipArchive; $location = $zip->open($target); if ($location === TRUE) { $zip->extractTo("themes/temp/themeextract"); $zip->close(); } else { echo "Failed to extract."; } if (file_exists("themes/temp/themeextract/theme.php")) { include("themes/temp/themeextract/theme.php"); if (!isset($theme_author)) { $theme_name = "Unknown author"; } if (!isset($theme_name)) { $random = rand(0, 9999999); $theme_name = "Unknown Name ".$random; } //Move theme folder, delete temp. rename("themes/temp/themeextract", "themes/".$theme_name); if (file_exists("themes/".$theme_name."/theme.php")) { //Insert values into database } else { echo "Failed to move theme from temp"; } } else { echo "Failed to find theme.php"; } } } ?>
  11. If your GET includes user made content then you should use urlencode() - so that if the user uses a symbol like '?' or '&' it won't break the url (there's probably a better word to use than break but it's the best I could think of at the current time).
  12. First what are the possible $_FILES['file']['type'] s of .zip. I know one is "application/x-zip-compressed" but are there any others (basically I need to check if the uploaded file is a .zip? Second question; how could I extract the contents of .zip to a directory on the server without the use of FTP? Thanks
  13. Well, I've managed to get this all working. However, when I echo out the contents of the file it only shows the second line. The complete file <div> Hello - I only get this outputted. <?php function doesnoexist(); ?> </div> Does zip_entry_read not process characters like "<, >, ?" ?
  14. When copy/pasting the actual code you are expecting help with, how can there be typo's? It was a variable ($thezipfile = "myzip.zip") but it's seperated from the zip check section of the script by unrelated code. So I took the liberty of changing the variable to a string (and forgetting to use '"').
  15. That was a typo It is a string in the actual file.
  16. Basically I need to search through a zip file for one file. I've tried quite a few things but the zip functions are now really starting to annoy me. My most recent attempt was this: $zip = zip_open(myzip.zip); while ($zip_file = zip_read($zip) != "file.php") { } zip_entry_open($zip, $zip_file); $contents = zip_entry_read($zip_file); But of course that just timed out on me. Anyone got any ideas?
  17. I want to read a file on another server then see if a variable in that file matches a variable in the script I'm calling the read from? I've tried a few things but am still stumped so does anoyone know a way?
  18. I didn't think this would work. But I guess it's the product of being up at about 3AM after an insanely busy day. The stuff I do at times like that usually turn out flawed.
  19. Heya, I was wondering if someone could debug this script for me. I realize it's not the tidest script (and probably not the most efficiant in the world) but it was quite late when I wrote it and I can't be bothered to rewrite it. First off here's the insertbefore function I call quite a lot: <?php function insertbefore($stringtosearchin, $wordtofind, $stringtoinsert) { //Insert a string before a string. str_replace($wordtofind,$wordtofind.$stringtoinsert,$stringtosearchin); } ?> Now here's the actual code. Basically it should add a few values to a table then create and add some stuff to some files. The edited files are then included so the functions in then can be activated. I've still got to write something to delete the additions but I'd rather have this debugged first. The MySQL and database selection is made in config.php by the way. <title>Feed Plugin Install</title> <p>This script could take several minutes to run. You will be redirected to the login page once it has finished.</p> <p> </p> <?php include("../pluginframework.php"); include("../../lib/config.php"); $pluginname = "Feed Creator"; //The name of your plugin $pluginauthor = "Al Wilde"; //The author or authors $pluginloaction = "plugins/Feed_Creator"; //The location relative to the base view panel directory (where panel.php is). $installstatus = "1"; //The install status. As this is the installer set it to 1. $pluginnamestrip = str_replace(' ', '', $pluginname); //Clean the plugin name so we can use it later... $pluginnameclean = str_replace("\'", '', $pluginnamestrip); //Inserts the plugin name, author, location and install status into the database. mysql_select_db($dbname, $con); $insert = "INSERT INTO plugin_lister (pluginname, pluginauthor, fileloc, installed) VALUES ('".$pluginname."', '".$pluginauthor."', '".$pluginloaction."', '".$installstatus."')"; mysql_query($insert,$con); $pluginid = mysql_insert_id() //If you need to create tables put the code here. //If you need to put data in the databases put the code here. //If you need to create any files put the code here. $filecreate1 = "../../pages/feedcreator.php"; $file1open = fopen($filecreate1,"w"); $file1cont = " <?php \n $".$pluginnameclean." = ".$pluginid."; \n $result = mysql_query('SELECT * FROM plugin_lister \n WHERE id='".$pluginnameclean."''); \n $pluginname = $row['pluginname']; \n $pluginauthor = $row['pluginauthor']; \n $pluginloaction = $row['fileloc']; \n $installstatus = $row['installed']; \n ?> \n <body> \n <div id='apDiv1'> \n <div> \n <h1>Create A Feed</h1> \n <p>This will allow you to create a feed of posts from your blog. This feed will not include any images, just a table and all the posts you've made.</p> \n <form id='form1' name='form1' method='post' action='../scripts/feedcreator.php'> \n <p>1. \n Choose a blog: \n <select name='page' id='page'> \n <?php View_Panel_Page_Lister(); ?> \n </select> \n - \n <input name='desc' type='text' id='desc' size='70' maxlength='70' /> \n </p> \n <p>2. Create the feed by clicking \n <label> \n <input type='submit' name='submit' id='submit' value='Submit' /> \n </label> \n </p> \n </form> \n <p>Powered by the <?php echo $pluginname; ?> plugin by <?php echo $pluginauthor ?>.</p> \n </div> \n </div> \n </body> \n </html> \n"; fwrite($file1open, $file1cont); fclose($file1open); $filecreate2 = "../../scripts/feedcreator.php"; $file2open = fopen($filecreate2,"w"); $file2cont = "<?php include ('../lib/config.php'); $'.$pluginnameclean.' = '.$pluginid.'; \n $result = mysql_query('SELECT * FROM plugin_lister \n WHERE id=''.$pluginnameclean.'''); \n $pluginname = $row['pluginname']; \n $pluginauthor = $row['pluginauthor']; \n $pluginloaction = $row['fileloc']; \n $installstatus = $row['installed']; \n $tablename = $_POST['page']; $tablenamestrip = str_replace(' ', '', $tablename); $tablenameclean = str_replace('\'', '', $tablenamestrip); $query = 'SELECT post, author, date FROM $tablenameclean'; $result = mysql_query($query) or die(mysql_error()); echo '<border='0'>'; while($row = mysql_fetch_array($result)){ echo '<tr>'; echo '<td>'.$row['post'].'</td>'; echo '</tr>'; echo '<tr>'; echo '<td><h5>Posted by'. $row['author'] .'on'. $row['date'].'</h5></td>'; echo '</tr>'; } echo '<tr>'; echo '<td><h5>Powered by the Feed Creator Plugin for View Panel.</h5></td>'; echo '</tr>'; echo '</table>'; ?>"; fwrite($file2open, $file2cont); fclose($file2open); //If you need to edit any files put the code here. $fileedit1 = "../../navs/editblogsubnav.php"; $file1open = fopen($fileedit1,"a"); $fileedit1handle = "<?php insertbefore('<div id='apDiv2'><a href='?blogcreate=1'>Create A Blog</a> | <a href='?blogdestroy=1'>Delete A Blog</a> | <a href='?editblog=1'>Add Posts</a> | <a href='?editblog=2'>Edit Posts</a> | <a href='?editblog=3'>Delete Posts</a> </div>', '</div></body></html>', ' | <a href='?createfeed=1'>Create A Feed</a>'); str_replace('".$fileedit1handle."', ' ', '".$fileedit1handle."');?>"; fwrite($file1open, $fileedit1handle); fclose($file1open); $fileedit2 = "../../navs/navigationcontrol.php"; $file2cont = fopen($fileedit2,"a"); $fileedit2handle = "insertbefore(<?php if ($home == 1) { include('pages/panel.php'); include('panelsubnav.php'); } elseif ($settings == 1) { include('pages/settings.php'); include('navs/panelsubnav.php'); } elseif ($about == 1) { include('pages/about.php'); } elseif ($editblog == 1) { include('pages/addposts.php'); include('navs/editblogsubnav.php'); } elseif ($editblog == 2) { include('pages/editblog.php'); include('navs/editblogsubnav.php'); } elseif ($editblog == 3) { include('pages/deleteposts.php'); include('navs/editblogsubnav.php'); } elseif ($sqlreader == 1) { include('pages/sqlreader.php'); } elseif ($export == 1) { include('pages/exportfeed.php'); include('navs/editblogsubnav.php'); } elseif ($plugins == 1) { include('pages/plugins.php'); include('navs/panelsubnav.php'); } elseif ($blogcreate == 1) { include('pages/addblog.php'); include('navs/editblogsubnav.php'); } elseif ($blogdestroy == 1) { include('pages/deleteblog.php'); include('navs/editblogsubnav.php'); } elseif ($help == 1) { header('Location: help/index.php'); } elseif ($filereader == 1) { include('pages/fileview.php'); } ?> , ' } elseif ($filereader == 1) {include('pages/fileview.php');} ?>', '} elseif ($feedcreator == 1) { header('Location: pages/feedcreator.php'); include('navs/editblogsubnav.php');'); str_replace('".$fileedit2handle."', ' ', '".$fileedit2handle."');"; fwrite($file2open, $file2cont); fclose($file2open); $fileedit3 = "../../lib/config.php"; $file3cont = fopen($fileedit3,"a"); $fileedit3handle = "<?php include ('../plugins/insertbefore('$displayname = $_COOKIE['View_Panel_ID']; $editblog = $_GET['editblog']; $about = $_GET['about']; $home = $_GET['home']; $settings = $_GET['settings']; $export = $_GET['export']; $plugins = $_GET['plugins']; $tablemanagement = $_GET['tablemanagement']; $sqlreader = $_GET['sqlreader']; $filereader = $_GET['filereader']; $blogcreate = $_GET['blogcreate']; $blogdestroy = $_GET['blogdestroy'];', '$blogdestroy = $_GET['blogdestroy'];', '$feedcreator = $_GET['createfeed']'); str_replace('".$fileedit3handle."', ' ', '".$fileedit3handle."');?>"; fwrite($file3open, $file3cont); fclose($file3open); //Put any other code here. include (fileedit1); include (fileedit2); include (fileedit3); echo "The plugin has now been installed and you may now use whatever it adds or takes away from View Panel. Click <a href='../../login.php'>here</a> to return to the login page."; ?>
×
×
  • 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.