Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: ClipBucket - Reset the Admin password  (Read 5423 times)

0 Members and 1 Guest are viewing this topic.

sajugovind

  • Guest
ClipBucket - Reset the Admin password
« on: May 10, 2014, 11:46:23 pm »
Its happened for me too,  I forget my admin password for my ClipBucket domain  :'( :'( :'( :'(

Then I found the script, through which we can reset the password to "mynewpassword".  8)

Here are the steps, which helped me:
1. Create a file "change_pword_clipbucket.php" on the root directory where ClipBucket installed.
2. Copy below script on it.
3. Visit the URL of the domain and add /change_pword_clipbucket.php to the end of it.
4. It will reset the admin password to 'mynewpassword'.

 ** IMPORTANT - remove this file after password has been reset and make sure to remind the client to change the password as soon as they log in.


Code: [Select]
<?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();

?>