PEAK XOOPS - Ignore this post in englishin japanese

Ignore this post

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2004/6/9 14:58
zer0fill  办霹始   Posts: 14
Original title: Unable to create category (piCal 0.6pre3)

Problem: a hack I did in piCal.php

In the admin area and going to the category manager, the link to create a new category points to the wrong area
<p><a href='/modules/piCal/?disp=new&cid=0'>Create a category in a top level</a></p>

it should be
<p><a href='/modules/piCal/admin/categories.php?disp=new&cid=0'>Create a category in a top level</a></p>

at least adding the "?disp=new&cid=0" after categories.php gave me a new menu.

in addition, the resulting action= is
<form name='MainForm' id='MainForm' action='/modules/piCal/' ... >
where i just get popped back to the calendar month with no new category being created.
Votes:2 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2004/6/9 15:05
zer0fill  办霹始   Posts: 14
I think I found the problem. It isn't too compatible with register_globals = off (the $PHP_SELF var assumes it has already been extract($_SERVER) or assumes register_globals=on)

[edit]
maybe not. looking further down categories.php shows you are using $_SERVER['PHP_SELF'] then storing it to $PHP_SELF
[/edit]

[edit2]
great. it seems to show the proper links on my localhost but not online. grrr
[/edit2]
Votes:0 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!