Location: PHPKode > projects > ClipBucket > do not upload/admin_change_pass.php
<?php

/**
 * File used to change admin password manually
 * Usage : change username and password from their default values
 * to your account username and your password, upload this file on your
 * root directory of clipbucket where index.php is found e.g http://clipbucket.com/admin_change_pass.php
 * you will see a confirmation message that your account password has been changed.
 *
 * for help and support please visti forums.clip-bucket.com or report issues on code.google.com/p/clipbucket/issues
 */

include("includes/config.inc.php");

//Username of account you want to changge password
$username = 'admin';

//Set password
$password = 'mynewpassword';

// -- DO NOT GO INSIDE THE DEEP RED PHP -- //

$user = $userquery->get_user_details($username);

if(!$user)
{
	e("User does not exist");
}else
{
	$pass = pass_code($password);
	$db->update(tbl('users'),array('password'),array($pass),"username='$username'");
	e("Password for your account has been changed, please delete this file","m");	
}

display_it();

?>
Return current item: ClipBucket