Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2015-08-21 17:45:23

newxxx
Member
Registered: 2012-06-11
Posts: 702

i am locked out of admin

serves me right, i suppose

Offline

#2 2015-08-22 23:40:28

newxxx
Member
Registered: 2012-06-11
Posts: 702

Re: i am locked out of admin

when might i hoped to be repaired ?

i'm hoping - monday?

thank you

Last edited by newxxx (2015-08-22 23:40:47)

Offline

#3 2015-08-23 00:04:03

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: i am locked out of admin

Hey

do this

save this code to some-file.php

<?php
define('_VALID', true);
require 'libraries/bootstrap.php';

$db = VF::factory('database');
$password = '$2a$08$aK0q9GyYPGrf5jvR/J8FO.rtYiWDHc7TlOYg9VpwV4JauO6u3gSjC';
$db->query("UPDATE #__user SET password = '$password' WHERE user_id = '1' LIMIT 1");
VF::close();
?>

and open it in your browser... will not show nothing, just a white page....after you run this will save your admin password as admin,

Then go to admin page and try to login with pass ( admin )

when u login dont forget to change your password to something deferent

Thanks

Last edited by thiva7 (2015-08-23 00:05:10)

Offline

#4 2015-08-23 03:48:45

newxxx
Member
Registered: 2012-06-11
Posts: 702

Re: i am locked out of admin

i  have never made a php page before, so i googled  how to do it, and this is what i think i am supposed to do???

<html>
<head>
  <title>PHP Test</title>
</head>
<body>
<?php
define('_VALID', true);
require 'libraries/bootstrap.php';

$db = VF::factory('database');
$password = '$2a$08$aK0q9GyYPGrf5jvR/J8FO.rtYiWDHc7TlOYg9VpwV4JauO6u3gSjC';
$db->query("UPDATE #__user SET password = '$password' WHERE user_id = '1' LIMIT 1");
VF::close();
?>
</body>
</html>


then i renamed it AdminRecover.php


accessed it, and it loaded as a white page


but admin still locked

i realized that i had loaded it into the main section of the site, not admin folder

so i re-did it, and loaded it into the admin folder .....

Last edited by newxxx (2015-08-23 04:24:08)

Offline

#5 2015-08-23 04:00:13

newxxx
Member
Registered: 2012-06-11
Posts: 702

Re: i am locked out of admin

i loaded it in the main section of the site, and got a white page. but nothing

i then loaded the page into the "admin" folder section of the site, and got:

Warning: require(libraries/bootstrap.php) [function.require]: failed to open stream: No such file or directory in /home/site/public_html/admin/AdminRecover.php on line 8

Warning: require(libraries/bootstrap.php) [function.require]: failed to open stream: No such file or directory in /home/site/public_html/admin/AdminRecover.php on line 8

Fatal error: require() [function.require]: Failed opening required 'libraries/bootstrap.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/site/public_html/admin/AdminRecover.php on line 8

Last edited by newxxx (2015-08-23 04:09:59)

Offline

#6 2015-08-23 04:05:19

newxxx
Member
Registered: 2012-06-11
Posts: 702

Re: i am locked out of admin

this is AdminRecover.php in the Admin folder"

<html>
<head>
  <title>Admin Recover PHP</title>
</head>
<body>
<?php
define('_VALID', true);
require 'libraries/bootstrap.php';
$db = VF::factory('database');
$password = '$2a$08$aK0q9GyYPGrf5jvR/J8FO.rtYiWDHc7TlOYg9VpwV4JauO6u3gSjC';
$db->query("UPDATE #__user SET password = '$password' WHERE user_id = '1' LIMIT 1");
VF::close();
?>
</body>
</html>


let me know what i did wrong - probably everything

thanks

Offline

#7 2015-08-23 04:09:15

newxxx
Member
Registered: 2012-06-11
Posts: 702

Re: i am locked out of admin

i initially made it as a  html page (options are text, html, perl, and shell

should it have been made as a text document instead rather than html, and then renamed ??

Offline

#8 2015-08-23 07:44:35

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: i am locked out of admin

Hey man.i never said save it to admin folder smile .
Save it to root of your site and run it once.
About how to create php file  ....

Open any text editor and put just the code I write in my first post.save it with some name.php
And then add it to root of your site .run it and once and the  try to login 

Thanks

Offline

#9 2015-08-23 13:49:45

newxxx
Member
Registered: 2012-06-11
Posts: 702

Re: i am locked out of admin

i created in text editor
saved as AdminRecovery2.php
uploaded file into directory where index.html and index.php is (is that the root of the site ??????)
clicked on the URL
and a whilte page appeared
but still no access


i did not change the PW

what I did is ......

in main admin section, there are tabs for that section (not the tabs for video, phoos, advertising, but tabs for main admin section)

(1) i clicked on a tab, and changed "Adult Script Pro" name of website to the name of my website

(2) and clicked on another tab, saw what i think i remember as ASPro, and changed that to the name of my website, thinking that that also had to be changed

no PW/ID changes

Last edited by newxxx (2015-08-23 13:51:20)

Offline

Board footer

Powered by FluxBB