[ Index ] |
|
Code source de PHP NUKE 7.9 |
1 <?php 2 3 if (!eregi("modules.php", $_SERVER['PHP_SELF'])) { 4 die ("You can't access this file directly..."); 5 } 6 7 $index = 0; 8 9 function f2one() { 10 include ("header.php"); 11 OpenTable(); 12 echo "Addon Sample File (f2.php) function \"f2one\" CALLED FROM Sand_Journey Theme<br><br>"; 13 echo "<ul>"; 14 echo "<li><a href=\"modules.php?name=Addon_Sample&file=f2&func=f2go\">f2.php Main</a>"; 15 echo "<li><a href=\"modules.php?name=Addon_Sample&file=index\">Go to index.php</a>"; 16 echo "</ul>"; 17 CloseTable(); 18 include ("footer.php"); 19 20 } 21 22 function f2go() { 23 include ("header.php"); 24 OpenTable(); 25 echo "Addon Sample File (f2.php) CALLED FROM Sand_Journey Theme<br>"; 26 echo "<ul>"; 27 echo "<li><a href=\"modules.php?name=Addon_Sample&file=f2&func=f2one\">Function f2one</a>"; 28 echo "<li><a href=\"modules.php?name=Addon_Sample&file=index&func=dos\">Go to index.php</a>"; 29 echo "</ul>"; 30 echo "As you can see now, this page doesn't show the Right Blocks, this is because at the begining " 31 ."of this file we set \$index variable to \"0\""; 32 CloseTable(); 33 include ("footer.php"); 34 } 35 36 switch($func) { 37 38 default: 39 f2go(); 40 break; 41 42 case "f2one": 43 f2one(); 44 break; 45 46 } 47 48 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 11:11:59 2007 | par Balluche grâce à PHPXref 0.7 |