| Author |
Message |
thenme
Nuke Cadet


Joined: Jul 18, 2005
Posts: 6
|
Posted:
Mon Jul 18, 2005 8:20 pm |
  |
I can't edit or delete stories when logged in as the Admin. Its says
"You aren't authorized to touch this Article!
You can't edit and/or delete articles that you don't published"
phpnuke 7.7 patched
everything else seems to work. I'm not sure what I missed or messed up.
any help would be great.
P.S. sorry if this has been covered I looked for the answer but had no luck.
Thanks. |
|
|
    |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12342
|
Posted:
Tue Jul 19, 2005 5:58 am |
  |
|
     |
 |
thenme
Nuke Cadet


Joined: Jul 18, 2005
Posts: 6
|
Posted:
Tue Jul 19, 2005 12:47 pm |
  |
I belive so, But I am really new to this. So maybe not. If the God account is the one that I set up right after the phpnuke install then yes. If thats not it no. also if thats not it I don't know how to use it or where to set it up. Or if you could tell me how to check if I am or not that would help to. |
|
|
    |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12342
|
Posted:
Tue Jul 19, 2005 5:27 pm |
  |
|
     |
 |
thenme
Nuke Cadet


Joined: Jul 18, 2005
Posts: 6
|
Posted:
Thu Jul 21, 2005 5:07 pm |
  |
It seems that I have it right and I am using the god mode.
This is what it said phpmyadmin "nuke_authors"
SQL result
Host: mysql4.opentransfer.com
Database: thenme_phpnuke
Generation Time: Jul 21, 2005 at 09:02 PM
Generated by: phpMyAdmin 2.6.0-pl2 / MySQL 4.0.24-standard-log
SQL-query: SELECT * FROM `nuke_authors` LIMIT 0, 30;
Rows: 1
aid name url email
thenme God http://www.thenme.com webmaster@nmemx.com
Thanks. |
|
|
    |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12342
|
Posted:
Thu Jul 21, 2005 7:06 pm |
  |
|
     |
 |
thenme
Nuke Cadet


Joined: Jul 18, 2005
Posts: 6
|
Posted:
Wed Jul 27, 2005 9:23 pm |
  |
Sorry I've been away from a computer for a couple days. The value in nuke_authors radminsuper is set to 1. |
|
|
    |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12342
|
Posted:
Thu Jul 28, 2005 8:28 am |
  |
'radminsuper' should let you do this. I see no other checks in the code
Go check modules/News/admin/index.php
and see if you have the following checks
| Code: |
if (($radminarticle == 1) AND ($aaid == $aid) OR ($radminsuper == 1)) {
|
|
_________________ Helping those that help themselves
Read FIRST or DIE!
"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding |
|
     |
 |
thenme
Nuke Cadet


Joined: Jul 18, 2005
Posts: 6
|
Posted:
Thu Jul 28, 2005 6:41 pm |
  |
This is the code in the index file. I'm not sure if its right because its not exactly what you wrote.
if (!defined('ADMIN_FILE')) {
die ("Access Denied");
}
global $prefix, $db, $admin_file;
$aid = substr("$aid", 0,25);
$row = $db->sql_fetchrow($db->sql_query("SELECT title, admins FROM ".$prefix."_modules WHERE title='News'"));
$row2 = $db->sql_fetchrow($db->sql_query("SELECT name, radminsuper FROM ".$prefix."_authors WHERE aid='$aid'"));
$admins = explode(",", $row['admins']);
$auth_user = 0;
for ($i=0; $i < sizeof($admins); $i++) {
if ($row2['name'] == "$admins[$i]" AND $row['admins'] != "") {
$auth_user = 1;
}
}
if ($row2['radminsuper'] == 1) {
$radminsuper = 1;
}
if ($row2['radminsuper'] == 1 || $auth_user == 1) {
$adveditor=1;[/size]
Thanks |
|
|
    |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12342
|
Posted:
Thu Jul 28, 2005 8:27 pm |
  |
|
     |
 |
thenme
Nuke Cadet


Joined: Jul 18, 2005
Posts: 6
|
Posted:
Sat Jul 30, 2005 10:42 am |
  |
So after reading the whole page. The line of code is there 5 times in diffent places. It is exactly the same.
thanks |
|
|
    |
 |
|
|