Jump to content

cornetofreak

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

cornetofreak's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Ive just submitted a twitter api that covers your needs and is simple to use its as simpel as include 'Twitter/Twitter.php'; $Twitter = new Twitter('username','password'); // this will set the credentials used throughout the twitter api $status = $Twitter->Status->update(array('status' => "This is a new status set by the PHP TAPI.")); if($status){ echo "New status:" . $Twitter->Status->get(); } http://www.phpclasses.org/browse/package/5799.html enjoy
  2. Try typecasting the object to an array. E.g. $foo = $ThestdClass; $bar = (array)$foo; no that should convert the stdClass into an array
  3. if (its for my mom) id use simpleCms or summat along them lines!
  4. create a new file and call it admin_pass.php add this into the file <?php $admin_pass = "YOURPASSWORD"; if($is_admin) { if(!$_SESSION['admin']) { $pass = $_POST['pass']; if(!$pass) { die('<div align="center"><form action="" method="post">Password:<Br><input type="password" name="pass"><br><input type="submit" value="Login"></form></div>'); } else { if($pass == $admin_pass) { $_SESSION['admin'] = "somerandomstring"; header("Location: submit.php"); } else { die("Sorry Disabled : <a href \"index.php\">HOME..</a>"); } } } } ?> and in the files you wish to have a password protected page insert this at the top of them pages <?php $is_admin = true; ?> make sure you admin_pass.php is included
×
×
  • 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.