[ 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 = 1; 8 9 function one() { 10 include ("header.php"); 11 OpenTable(); 12 echo "Addon Sample File (index.php) function \"one\" CALLED FROM Sand_Journey Theme<br><br>"; 13 echo "<ul>"; 14 echo "<li><a href=\"modules.php?name=Addon_Sample&file=index\">Go to index.php</a>"; 15 echo "</ul>"; 16 CloseTable(); 17 include ("footer.php"); 18 19 } 20 21 function two() { 22 include ("header.php"); 23 OpenTable(); 24 echo "Addon Sample File (index.php) function \"two\" CALLED FROM Sand_Journey Theme"; 25 echo "<ul>"; 26 echo "<li><a href=\"modules.php?name=Addon_Sample&file=index\">Go to index.php</a>"; 27 echo "</ul>"; 28 CloseTable(); 29 include ("footer.php"); 30 31 } 32 33 34 function AddonSample() { 35 include ("header.php"); 36 OpenTable(); 37 echo "Addon Sample File (index.php) CALLED FROM Sand_Journey Theme<br><br>"; 38 echo "<ul>"; 39 echo "<li><a href=\"modules.php?name=Addon_Sample&file=index&func=one\">Function One</a>"; 40 echo "<li><a href=\"modules.php?name=Addon_Sample&file=index&func=two\">Function Two</a>"; 41 echo "<li><a href=\"modules.php?name=Addon_Sample&file=f2\">Call to file f2.php</a>"; 42 echo "</ul>"; 43 echo "You can now use Administration interface to activate or deactivate any module. As an Admin you can always " 44 ."access to your Inactive modules for testing purpouses."; 45 CloseTable(); 46 include ("footer.php"); 47 } 48 49 switch($func) { 50 51 default: 52 AddonSample(); 53 break; 54 55 case "one": 56 one(); 57 break; 58 59 case "two": 60 two(); 61 break; 62 63 } 64 65 ?>
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 |