1
snoopy66926
Re:
  • 2004/11/28 23:37

  • snoopy66926

  • Just popping in

  • Posts: 5

  • Since: 2004/10/16


I think it has something to do with my admin.php file because that is where it stops when I click on the admin menu so I am adding my admin.php file below in hopes that it will help find a solution:

Admin.php:


$xoopsOption['pagetype'] = "admin";
include "mainfile.php";
include XOOPS_ROOT_PATH."/include/cp_functions.php";
/*********************************************************/
/* Admin Authentication */
/*********************************************************/

if ( $xoopsUser ) {
if ( !$xoopsUser->isAdmin() ) {
redirect_header("index.php",2,_AD_NORIGHT);
exit();
}
} else {
redirect_header("index.php",2,_AD_NORIGHT);
exit();
}
$op = "list";

if ( !empty($HTTP_GET_VARS['op']) ) {
$op = $HTTP_GET_VARS['op'];
}

if ( !empty($HTTP_POST_VARS['op']) ) {
$op = $HTTP_POST_VARS['op'];
}

if (!file_exists(XOOPS_CACHE_PATH.'/adminmenu.php') && $op != 'generate') {
xoops_header();
xoops_confirm(array('op' => 'generate'), 'admin.php', _AD_PRESSGEN);
xoops_footer();
exit();
}

switch ($op) {
case "list":
xoops_cp_header();
// ###### Output warn messages for security ######
if (is_dir(XOOPS_ROOT_PATH."/install/" )) {
xoops_error(sprintf(_WARNINSTALL2,XOOPS_ROOT_PATH.'/install/'));
echo '';
}
if ( is_writable(XOOPS_ROOT_PATH."/mainfile.php" ) ) {
xoops_error(sprintf(_WARNINWRITEABLE,XOOPS_ROOT_PATH.'/mainfile.php'));
echo '';
}
if (!empty($HTTP_GET_VARS['xoopsorgnews'])) {
/*
$rssurlfile = XOOPS_CACHE_PATH.'/adminnewsurl.xml';
$rssurldata = '';
if (!file_exists($rssurlfile) || filemtime($rssurlfile) < time() - 86400) {
if (false !== $fp = fopen('https://xoops.org/backendurl.xml', 'r')) {
while (!feof ($fp)) {
$rssurldata .= fgets($fp, 4096);
}
fclose($fp);
if (false !== $fp = fopen($rssurlfile, 'w')) {
fwrite($fp, $rssurldata);
}
fclose($fp);
}
} else {
if (false !== $fp = fopen($rssurlfile, 'r')) {
while (!feof ($fp)) {
$rssurldata .= fgets($fp, 4096);
}
fclose($fp);
}
}
*/
$rssurl = 'https://xoops.org/backend.php';
/*
if ($rssurldata != '') {
include_once XOOPS_ROOT_PATH.'/class/xml/rpc/xmlrpcparser.php';
$rpcparser = new XoopsXmlRpcParser($rssurldata);
if (false != $rpcparser->parse()) {
$params =& $rpcparser->getParam();
$langcode = _LANGCODE;
if (!is_array($params[0]) || !isset($params[0][$langcode])) {
$rssurl = 'https://xoops.org/backend.php';
} else {
$rssurl = $params[0][$langcode];
}
} else {
echo $rpcparser->getErrors();
}
}
*/
$rssfile = XOOPS_CACHE_PATH.'/adminnews.xml';
$rssdata = '';
if (!file_exists($rssfile) || filemtime($rssfile) < time() - 86400) {
if (false !== $fp = fopen($rssurl, 'r')) {
while (!feof ($fp)) {
$rssdata .= fgets($fp, 4096);
}
fclose($fp);
if (false !== $fp = fopen($rssfile, 'w')) {
fwrite($fp, $rssdata);
}
fclose($fp);
}
} else {
if (false !== $fp = fopen($rssfile, 'r')) {
while (!feof ($fp)) {
$rssdata .= fgets($fp, 4096);
}
fclose($fp);
}
}
if ($rssdata != '') {
include_once XOOPS_ROOT_PATH.'/class/xml/rss/xmlrss2parser.php';
$rss2parser = new XoopsXmlRss2Parser($rssdata);
if (false != $rss2parser->parse()) {
echo '';
$items =& $rss2parser->getItems();
$count = count($items);
for ($i = 0; $i < $count; $i++) {
echo ' '; echo $items[$i]['title'].' ('.$items[$i]['pubdate'].') ';
if ($items[$i]['description'] != "") {
echo ' '.$items[$i]['description']; if ($items[$i]['guid'] != "") { echo ' '._MORE.''; } echo ' ';
} elseif ($items[$i]['guid'] != "") {
echo ' '._MORE.' ';
}
}
echo ' ';
} else {
echo $rss2parser->getErrors();
}
}
}
xoops_cp_footer();
break;
case 'generate':
xoops_module_write_admin_menu(xoops_module_get_admin_menu());
redirect_header('admin.php', 1, _AD_LOGINADMIN);
break;
default:
break;
}
?>



2
snoopy66926
Re:
  • 2004/11/25 2:41

  • snoopy66926

  • Just popping in

  • Posts: 5

  • Since: 2004/10/16


Apparently my situation is unique. My site AlphaOmegaUltimate.com has been up and running fine for about a month before I started having this problem.

Everything was going fine when I wanted to change the activation method of my users. It had been set to auto and I wanted to have a better idea of who was registering so I changed it to where the activation had to be done by an administrator.

Now, this caused the registered users to experience the “Sorry, you don't have the permission to access this area.” When they click on a selection that registered users have access to, say Members, even after receiving the “Thank you for logging in, Xxxxx. If the page does not automatically reload, please click here”.

After receiving the “Sorry, you don't have the permission to access this area.” The user is sent to AlphaOmegaUltimate.com/user.php where they have 2 login choices; 1) Login on the left or 2) User Login in the middle. If choice #1 is used then the receive the “Thank you for logging in, Xxxxx. If the page does not automatically reload, please click here”. Message and then a blank white page. If option #2 is used then they receive the “Thank you for logging in, Xxxxx. If the page does not automatically reload, please click here”. And are sent to the selection made, such as Members.

As the webmaster I did not experience this (at least at first), so I changed the activation method back to auto, hoping this would solve the issue. No such luck.

Now that I have logged off, when I login again I am also being effected by the dreaded “Sorry, you don't have the permission to access this area.” message. When I try to go to the admin menu, I am receiving a “You don't have the right to access this area” message and am sent back to the home page.

Please help
Snoopy66926



3
snoopy66926
Re: agenda warning: main
  • 2004/10/17 18:22

  • snoopy66926

  • Just popping in

  • Posts: 5

  • Since: 2004/10/16


This was caused because I was running XOOPS 1.3.10 and not XOOPS 2. My host provider installed the wrong version. My apologies.



4
snoopy66926
Re:Directory for avatars?
  • 2004/10/16 19:17

  • snoopy66926

  • Just popping in

  • Posts: 5

  • Since: 2004/10/16


Hey,

My avatar directory is:

public_html / images / avatar

Hope this helps.



5
snoopy66926
agenda warning: main
  • 2004/10/16 5:15

  • snoopy66926

  • Just popping in

  • Posts: 5

  • Since: 2004/10/16


This is my 1st website and I could really use the help. I loaded agenda 2.2.0 into the public_html/modules/ directory and when I try to click on global permissions I get the following. Does anyone know why? I am using PHP version 4.3.3 Thanks!:

Warning: main(../../../include/cp_header.php): failed to open stream: No such file or directory in /home/doveys/public_html/modules/agendax/admin/groupperm.php on line 3

Warning: main(): Failed opening '../../../include/cp_header.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/doveys/public_html/modules/agendax/admin/groupperm.php on line 3

Warning: main(XOOPS_ROOT_PATH/class/xoopsform/grouppermform.php): failed to open stream: No such file or directory in /home/doveys/public_html/modules/agendax/admin/groupperm.php on line 4

Warning: main(): Failed opening 'XOOPS_ROOT_PATH/class/xoopsform/grouppermform.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/doveys/public_html/modules/agendax/admin/groupperm.php on line 4

Fatal error: Call to a member function on a non-object in /home/doveys/public_html/modules/agendax/admin/groupperm.php on line 5




TopTop



Login

Who's Online

158 user(s) are online (94 user(s) are browsing Support Forums)


Members: 0


Guests: 158


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits