..add a page to a php script which will allow you to update a block of text (which will be echo'd onto the main site).
-hopefully you know what I mean![]()

TBH Luke if I was you I would download housekeeping guy and strip it to where you can post all you like.
Do you mean, you can edit the text of the page without actually altering the code? i.e. it takes it form a database or text file.
Sorry it's late, here's some bodge code
Save that as setmessage.php. It will create a file called message.js containing some JS code to show the message.PHP Code:
<?php
if($_POST['pw']=="passwordCaseSentitive"){
$fp = @fopen('message.js', 'w');
@fwrite($fp, "document.write('".htmlentities($_POST['message'],ENT_QUOTES)."');");
@fclose($fp);
die("<b>Message changed :)</b>");
}
die("<h1>Change message</h1><form method='post'><table><tr><td><b>Password:</b></td><td><input type='password' name='pw' /></td></tr><tr><td><b>Message:</b></td><td><input type='text' name='message' /></td></tr><tr><td></td><td><input type='submit' value='Set message' /></td></tr></table></form>");
?>
Use this code to display the message:To change the message, just open setmessage.php in a browser, type in password + message and it will change.Code:<script src='message.js'></script>
I haven't actually tested the code, let me know if you have any problems![]()
Last edited by Apolva; 05-05-2010 at 09:17 PM.
Want to hide these adverts? Register an account for free!