| Author |
Message |
ccozkaraca
Nuke Soldier


Joined: Jun 07, 2005
Posts: 19
|
Posted:
Tue Aug 09, 2005 2:47 pm |
  |
I have just installed the calendar block when i try to use calendar button at the admin panel. I am getting this error message ;
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/agirabil/public_html/portal/admin/modules/calendar.php on line 16
Access Denied
can anyone tell me how can i fix it please ? |
|
|
   |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12389
|
Posted:
Tue Aug 09, 2005 5:13 pm |
  |
|
     |
 |
ccozkaraca
Nuke Soldier


Joined: Jun 07, 2005
Posts: 19
|
Posted:
Tue Aug 09, 2005 10:15 pm |
  |
Dear admin
I am using PhpNuke 7.5 without patch and this is orginal code of calendar;
_________________________________________________________
<?php
/********************************************************/
/********************************************************/
/* Event Calendar */
/* Written by: Rob Sutton */
/* http://www.xnettech.com (My Consulting Company) */
/* http://smart.xnettech.net (My Nuke Site) */
/* */
/* This program is opensource so you can do whatever */
/* you want with it. */
/********************************************************/
/********************************************************/
if (!eregi("admin.php", $PHP_SELF)) { die ("Access Denied"); }
$result = mysql_query("select radminarticle, radminsuper from nuke_authors where aid='$aid'");
list($radminarticle, $radminsuper) = mysql_fetch_row($result);
$module_name = "Calendar"; // CHANGE THIS IF YOU CHANGE THE MODULES FOLDER NAME
include("modules/$module_name/config.php");
if (($radminCalendarAdmin==1) OR ($radminsuper==1)) {
/********************************************************/ |
Last edited by ccozkaraca on Fri Aug 12, 2005 2:51 am; edited 1 time in total |
|
   |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12389
|
Posted:
Wed Aug 10, 2005 5:52 am |
  |
|
     |
 |
ccozkaraca
Nuke Soldier


Joined: Jun 07, 2005
Posts: 19
|
Posted:
Fri Aug 12, 2005 2:26 am |
  |
I did what you advise and gave me this error ;
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/agirabil/public_html/portal/admin/modules/calendar.php on line 16
Access Denied |
|
|
   |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12389
|
Posted:
Fri Aug 12, 2005 4:20 am |
  |
|
     |
 |
ccozkaraca
Nuke Soldier


Joined: Jun 07, 2005
Posts: 19
|
Posted:
Fri Aug 12, 2005 11:59 pm |
  |
hi Evaders99,
I am modifiying the file in the \admin\modules\calendar.php
This is the block file i am trying to use; http://agirabiler.com/download/Calendar2.zip
Please could help me to solve this, i have motocycle fun club site and really need this calendar module. |
|
|
   |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12389
|
Posted:
Sat Aug 13, 2005 1:06 pm |
  |
admin/case/case.calendar.php
| Code: |
if (!eregi("admin.php", $PHP_SELF)) { die ("Access Denied"); }
TO
if (!eregi("admin.php", $_SERVER['SCRIPT_NAME'])) { die ("Access Denied"); }
|
admin/modules/calendar.php
| Code: |
if (!eregi("admin.php", $PHP_SELF)) { die ("Access Denied"); }
TO
if (!eregi("admin.php", $_SERVER['SCRIPT_NAME'])) { die ("Access Denied"); }
|
blocks/block-Calendar1.php
| Code: |
if (eregi("block-Calendar1.php", $PHP_SELF)) {
TO
if (eregi("block-Calendar1.php", $_SERVER['SCRIPT_NAME'])) {
|
blocks/block-Calendar2.php
| Code: |
if (eregi("block-Calendar2.php", $PHP_SELF)) {
TO
if (eregi("block-Calendar2.php", $_SERVER['SCRIPT_NAME'])) {
|
modules/Calendar/index.php
| Code: |
if (!eregi("modules.php", $PHP_SELF)) {
TO
if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) {
|
modules/Calendar/index.php
| Code: |
if (!eregi("modules.php", $PHP_SELF)) {
TO
if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) {
|
modules/Calendar/submit.php
| Code: |
if (!eregi("modules.php", $PHP_SELF)) {
TO
if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) {
|
|
_________________ 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 |
|
     |
 |
ccozkaraca
Nuke Soldier


Joined: Jun 07, 2005
Posts: 19
|
Posted:
Sat Aug 13, 2005 11:33 pm |
  |
First of all thank you so much for your help...
I have made all changes you wrote after i got this error:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/agirabil/public_html/portal/admin/modules/calendar.php on line 16
Access Denied
This is the code ( admin/modules/calendar.php) after i changed, i didnot get whats wrong :
if (!eregi("admin.php", $_SERVER['SCRIPT_NAME'])) { die ("Access Denied"); }
$result = mysql_query("select radminarticle, radminsuper from nuke_authors where aid='$aid'");
list($radminarticle, $radminsuper) = mysql_fetch_row($result); |
|
|
   |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12389
|
Posted:
Sun Aug 14, 2005 5:43 am |
  |
|
     |
 |
|
|