I wanted to write a dinky little module that would allow administrators to give a chance to describe their site on a unique page; something like the "About LoGD" link but so admins could do something to describe their site (without using the space provided on "About LOGD").
Attached is the file I started with, but I'm getting stuck because all I get is the message:
You are not logged in, this may be because your session timed out. Your session has timed out, you must log in again.Can someone take a look and help.... I want to believe that I'm missing something very simple.
(Attempted attachment of file failed, so here's the key code that I have:)
function aboutyou_dohook($hookname,$args){
switch($hookname){
case "footer-home":
addnav("Other Info");
if (get_module_setting("addnav1")>"") addnav(array("%s",get_module_setting("addnav1")),"runmodule.php?module=aboutyou.php?op=addnav1");
break;
}
return $args;
}
function aboutyou_run(){
define("ALLOW_ANONYMOUS",true);
$op = httpget("op");
if ($op == "addnav1") {
$name1=get_module_setting("header1");
page_header("%s",sanitize($name1));
output("%s",get_module_setting("text1"));
}
addnav("Login Page","index.php");
page_footer();
}