As above members said, the module code is in the file modules / Daily_Horoscope / index.php. The rules for encoding modules require that the form has a intestate which prevent unauthorized access. So the code begins with:
Code:
if (eregi ("modules.php", $ PHP_SELF)) {
die ("You can not access this file ..."); Directly
}
The body of the first module implements a function for selecting the options that provides:
$ Index = 1 // 3 columns
include ("header.php");
OpenTable ();
switch ($ fn) {
case "detail": close (); break;
default: list (); break;
}
CloseTable ();
include ("footer.php");
Note to the inclusion of the header at the beginning and the end of the leg. The body of the module consists of a selection to decide whether to call the function detail (), or the works list (). You will have to invoke when you select a particular sign to be displayed, this fact shall be decided by the fact that the parameter fn is det. Alternatively, and as the default behavior, the list is invoked. Now let's see the code that produces the list:
Code:
function list () {
$ Q = mysql_query ("select from horoscope sign order by order");
echo "<h1 align='center'> Signs of the Zodiac </ h1> \ n";
echo "Choose your sign. <br>;
echo "<ul> \n";
while ($ r = mysql_fetch_row ($ q)) {
echo "<li> <a href = 'modules.php.
? MODLOAD op = & name = Daily_Horoscope.
"& File = index & & fn = det seg = $ r [0] '> $ r [0] </ a> </ li>";
}
echo "</ ul>";
}
Bookmarks