» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 73
0 members and 73 guests
No Members online
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Rimonabant - combat obesity and smoking at the same time
Football Betting - best nfl betting promotions at sportsbook.com.
Poker Chips - Clay and composite poker chips for home games.

Register Now! Contact Us

About this Page
This is a discussion on Getting God admin back within the Nuke 7.x - General forums, part of the PHP-Nuke 7.x category; Hello How would I go about getting the God admin link back and resetting that!I now it is easy ...



Go Back   Nukemods Forum » PHP-Nuke 7.x » Nuke 7.x - General

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-07-2006, 04:00 PM
Junior Member
 
Join Date: Jul 2006
Posts: 3
Getting God admin back
Hello

How would I go about getting the God admin link back and resetting that!I now it is easy I jsut am having a mental day :[ you know how it goes .I once forgot how to tie my shoes too ops: ops: ops:

The re son I ask is I do free gaming phpnuke installs ! I just got all the regular blocks that most gamin clans use! But I am tired of adding these all the time over and over! So I thought I do Is Reset the god admin make my back up of the sql , So then when I do a new site all I have to do is use that sql and phpnuke folders files I have and boom Babbie it all done for me!

Well any help thank you ! Also I am almost done with a few phpnuke themes I have coded how dose one add their work to the downloads !

thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-03-2006, 11:44 AM
Member
 
Join Date: Jul 2004
Posts: 450
I know iam late with this but for others.....

To reset your admin.php access run the following sql text, then obviously goto *http://your_site.com/admin.php asap and set yourself up, but this time DONT create a user account aswell.

Code:
DROP TABLE IF EXISTS `nuke_authors`;
CREATE TABLE `nuke_authors` (
  `aid` varchar(25) NOT NULL default '',
  `name` varchar(50) default NULL,
  `url` varchar(255) NOT NULL default '',
  `email` varchar(255) NOT NULL default '',
  `pwd` varchar(40) default NULL,
  `counter` int(11) NOT NULL default '0',
  `radminsuper` tinyint(1) NOT NULL default '1',
  `admlanguage` varchar(30) NOT NULL default '',
  `radminblocker` tinyint(2) NOT NULL default '0',
  PRIMARY KEY  (`aid`),
  KEY `aid` (`aid`)
);
__________________
What is Pay Per Play ?
ADVERTISING has commenced!!! We have launched!!!!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-04-2006, 08:51 PM
Junior Member
 
Join Date: Jul 2006
Posts: 11
Originally Posted by Marty
I know iam late with this but for others.....

To reset your admin.php access run the following sql text, then obviously goto *http://your_site.com/admin.php asap and set yourself up, but this time DONT create a user account aswell.

Code:
DROP TABLE IF EXISTS `nuke_authors`;
CREATE TABLE `nuke_authors` (
  `aid` varchar(25) NOT NULL default '',
  `name` varchar(50) default NULL,
  `url` varchar(255) NOT NULL default '',
  `email` varchar(255) NOT NULL default '',
  `pwd` varchar(40) default NULL,
  `counter` int(11) NOT NULL default '0',
  `radminsuper` tinyint(1) NOT NULL default '1',
  `admlanguage` varchar(30) NOT NULL default '',
  `radminblocker` tinyint(2) NOT NULL default '0',
  PRIMARY KEY  (`aid`),
  KEY `aid` (`aid`)
);
I did this, but when I go to my admin login page and create a new account without making a normal one, then try to login, it sends me back to the create a Super User account page.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-05-2006, 06:00 AM
Member
 
Join Date: Jul 2004
Posts: 450
This is the _NOADMINYET message whose translation you can find in the various language files in the language folder. It occurs in admin.php:

Code:
$the_first = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_authors"));
if ($the_first == 0) {
    if (!$name) {
    include("header.php");
    title("$sitename: "._ADMINISTRATION."");
    OpenTable();
    echo "<center>"._NOADMINYET."</center>

"
From the code we see that it is echoed only if $the_first is 0, meaning no entries in the $prefix_authors table.

Thus, for some reason, the nuke_authors table (assuming your $prefix is "nuke" in config.php), is not filled. Could you check the entries in nuke_authors? You can do this either from the MySQL prompt with

Code:
select aid, name, email, pwd from nuke_authors;
or with the "browse" function of phpMyAdmin.

If your Super Admin is there, then it is weird...

If the Super Admin is not there, then you can't write to the database. To check this possibility, find the function create_first() in admin.php. There, you will see two lines with a call to sql_query. They are both identical:

Code:
$db->sql_query($sql);
Insert the line:

Code:
echo mysql_error();
after each one. This will echo a more descriptive error message and may lead you to the solution. But, as experience shows, you most probably have set the wrong values in your config.php
__________________
What is Pay Per Play ?
ADVERTISING has commenced!!! We have launched!!!!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-05-2006, 09:41 AM
Junior Member
 
Join Date: Jul 2006
Posts: 11
Originally Posted by Marty
This is the _NOADMINYET message whose translation you can find in the various language files in the language folder. It occurs in admin.php:

Code:
$the_first = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_authors"));
if ($the_first == 0) {
    if (!$name) {
    include("header.php");
    title("$sitename: "._ADMINISTRATION."");
    OpenTable();
    echo "<center>"._NOADMINYET."</center>

"
From the code we see that it is echoed only if $the_first is 0, meaning no entries in the $prefix_authors table.

Thus, for some reason, the nuke_authors table (assuming your $prefix is "nuke" in config.php), is not filled. Could you check the entries in nuke_authors? You can do this either from the MySQL prompt with

Code:
select aid, name, email, pwd from nuke_authors;
or with the "browse" function of phpMyAdmin.

If your Super Admin is there, then it is weird...

If the Super Admin is not there, then you can't write to the database. To check this possibility, find the function create_first() in admin.php. There, you will see two lines with a call to sql_query. They are both identical:

Code:
$db->sql_query($sql);
Insert the line:

Code:
echo mysql_error();
after each one. This will echo a more descriptive error message and may lead you to the solution. But, as experience shows, you most probably have set the wrong values in your config.php
What are you saying I should check for in the config.php file?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 11-05-2006, 09:46 AM
Member
 
Join Date: Jul 2004
Posts: 450
Are there any entries in nuke_authors database table ?

Open your database and browse the nuke_authors

BTW are you using any symbols or spaces when your setting up an Administrator ?
__________________
What is Pay Per Play ?
ADVERTISING has commenced!!! We have launched!!!!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 11-05-2006, 09:50 AM
Junior Member
 
Join Date: Jul 2006
Posts: 11
Originally Posted by Marty
Are there any entries in nuke_authors database table ?

Open your database and browse the nuke_authors

BTW are you using any symbols or spaces when your setting up an Administrator ?
There are various fields but I'm not very familiar with MySQL and phpMyAdmin so I'm not quite sure. However, I believe there aren't any entries

The way I lost my admin is a tried to add the ^ character to my login username and then I couldn't login. When I tried to create a new accout I used 6 letters and no other characters. But, it didn't redirect me to the admin page after trying to login with the correct credentials.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 11-05-2006, 10:02 AM
Member
 
Join Date: Jul 2004
Posts: 450
do you know how to get to the database ?

To be honest the quickest way would be to manually enter a username and password into that.

Is there anything eles you might have done like before you had a problem with the languages thats probable it the variable is missing ?
__________________
What is Pay Per Play ?
ADVERTISING has commenced!!! We have launched!!!!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 11-05-2006, 10:08 AM
Junior Member
 
Join Date: Jul 2006
Posts: 11
Originally Posted by Marty
do you know how to get to the database ?

To be honest the quickest way would be to manually enter a username and password into that.

Is there anything eles you might have done like before you had a problem with the languages thats probable it the variable is missing ?
Yes, I know how to get to the database. However, in phpMyAdmin I cannot click the "browse" button at the top. How do I enter my username and password into that?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 11-05-2006, 10:40 AM
Member
 
Join Date: Jul 2004
Posts: 450
Originally Posted by PvtRyan
Originally Posted by Marty
do you know how to get to the database ?

To be honest the quickest way would be to manually enter a username and password into that.

Is there anything eles you might have done like before you had a problem with the languages thats probable it the variable is missing ?
Yes, I know how to get to the database. However, in phpMyAdmin I cannot click the "browse" button at the top. How do I enter my username and password into that?
When you open your database theres usually (99%) a list of all the tables within, on the left-hand side of the page, click the image beside nuke_authors that should open a new window if theres any listings there you can edit those, by clocking the pencil image.

Or if you have all the tables open in the main screen you will see by the records if there are any entries, either 0 or 1,2,3,4 whatever...

Try running this sql, I have pm'd you the password, if that works, you can edit yourself from the admin panel, under Edit Admins section.



Code:
DROP TABLE IF EXISTS nuke_authors;
CREATE TABLE nuke_authors (
  aid varchar(25) NOT NULL default '',
  name varchar(50) default NULL,
  url varchar(255) NOT NULL default '',
  email varchar(255) NOT NULL default '',
  pwd varchar(40) default NULL,
  counter int(11) NOT NULL default '0',
  radminsuper tinyint(1) NOT NULL default '1',
  admlanguage varchar(30) NOT NULL default '',
  radminblocker tinyint(2) NOT NULL default '0',
  PRIMARY KEY  (aid),
  KEY aid (aid)
) TYPE=MyISAM;

-- 
-- Dumping data for table `nuke_authors`
-- 

INSERT INTO nuke_authors VALUES ('PvtRyan', 'God', 'http://AHSUSF.com/Home/index.php', 'admin@AHSUSF.com', '51974490e30490deb2ae0b94fccb193c', 5, 1, '', 0);
__________________
What is Pay Per Play ?
ADVERTISING has commenced!!! We have launched!!!!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Killerbee is back killerbee Logo requests 1 12-14-2005 10:26 PM
good to see you back.../ ShRapNeR Open topics 11 07-04-2004 05:18 AM
Welcome Back (I hope) anor nukemods.com 6 08-26-2003 08:11 PM
Back to top link breakolami Theme packs 1 04-23-2003 11:05 PM
Forums back up coldblooded nukemods.com 1 11-01-2002 03:15 PM


All times are GMT -5. The time now is 09:04 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31