[ Index ]
 

Code source de PHP NUKE 7.9

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/themes/Sand_Journey/modules/Addon_Sample/ -> copyright.php (source)

   1  <?php
   2  
   3  /************************************************************************/
   4  /* PHP-NUKE: Web Portal System                                          */
   5  /* ===========================                                          */
   6  /*                                                                      */
   7  /* Copyright (c) 2002 by Francisco Burzi                                */
   8  /* http://phpnuke.org                                                   */
   9  /*                                                                      */
  10  /* This program is free software. You can redistribute it and/or modify */
  11  /* it under the terms of the GNU General Public License as published by */
  12  /* the Free Software Foundation; either version 2 of the License.       */
  13  /************************************************************************/
  14  
  15  // To have the Copyright window work in your module just fill the following
  16  // required information and then copy the file "copyright.php" into your
  17  // module's directory. It's all, as easy as it sounds ;)
  18  // NOTE: in $download_location PLEASE give the direct download link to the file!!!
  19  
  20  $author_name = "Francisco Burzi";
  21  $author_email = "";
  22  $author_homepage = "http://phpnuke.org";
  23  $license = "GNU/GPL";
  24  $download_location = "";
  25  $module_version = "1.0";
  26  $module_description = "This is a sample module to show how this stuff works.";
  27  
  28  // DO NOT TOUCH THE FOLLOWING COPYRIGHT CODE. YOU'RE JUST ALLOWED TO CHANGE YOUR "OWN"
  29  // MODULE'S DATA (SEE ABOVE) SO THE SYSTEM CAN BE ABLE TO SHOW THE COPYRIGHT NOTICE
  30  // FOR YOUR MODULE/ADDON. PLAY FAIR WITH THE PEOPLE THAT WORKED CODING WHAT YOU USE!!
  31  // YOU ARE NOT ALLOWED TO MODIFY ANYTHING ELSE THAN THE ABOVE REQUIRED INFORMATION.
  32  // AND YOU ARE NOT ALLOWED TO DELETE THIS FILE NOR TO CHANGE ANYTHING FROM THIS FILE IF
  33  // YOU'RE NOT THIS MODULE'S AUTHOR.
  34  
  35  function show_copyright() {
  36      global $author_name, $author_email, $author_homepage, $license, $download_location, $module_version, $module_description;
  37      if ($author_name == "") { $author_name = "N/A"; }
  38      if ($author_email == "") { $author_email = "N/A"; }
  39      if ($author_homepage == "") { $author_homepage = "N/A"; }
  40      if ($license == "") { $license = "N/A"; }
  41      if ($download_location == "") { $download_location = "N/A"; }
  42      if ($module_version == "") { $module_version = "N/A"; }
  43      if ($module_description == "") { $module_description = "N/A"; }
  44      $module_name = basename(dirname(__FILE__));
  45      $module_name = eregi_replace("_", " ", $module_name);
  46      echo "<html>\n"
  47      ."<body bgcolor=\"#F6F6EB\" link=\"#363636\" alink=\"#363636\" vlink=\"#363636\">\n"
  48      ."<title>$module_name: Copyright Information</title>\n"
  49      ."<font size=\"2\" color=\"#363636\" face=\"Verdana, Helvetica\">\n"
  50      ."<center><b>Module Copyright &copy; Information</b><br>"
  51      ."$module_name module for <a href=\"http://phpnuke.org\" target=\"new\">PHP-Nuke</a><br><br></center>\n"
  52      ."<img src=\"../../images/arrow.gif\" border=\"0\">&nbsp;<b>Module's Name:</b> $module_name<br>\n"
  53      ."<img src=\"../../images/arrow.gif\" border=\"0\">&nbsp;<b>Module's Version:</b> $module_version<br>\n"
  54      ."<img src=\"../../images/arrow.gif\" border=\"0\">&nbsp;<b>Module's Description:</b> $module_description<br>\n"
  55      ."<img src=\"../../images/arrow.gif\" border=\"0\">&nbsp;<b>License:</b> $license<br>\n"
  56      ."<img src=\"../../images/arrow.gif\" border=\"0\">&nbsp;<b>Author's Name:</b> $author_name<br>\n"
  57      ."<img src=\"../../images/arrow.gif\" border=\"0\">&nbsp;<b>Author's Email:</b> $author_email<br><br>\n"
  58      ."<center>[ <a href=\"$author_homepage\" target=\"new\">Author's HomePage</a> | <a href=\"$download_location\" target=\"new\">Module's Download</a> | <a href=\"javascript:void(0)\" onClick=javascript:self.close()>Close</a> ]</center>\n"
  59      ."</font>\n"
  60      ."</body>\n"
  61      ."</html>";
  62  }
  63  
  64  show_copyright();
  65  
  66  ?>


Généré le : Sun Apr 1 11:11:59 2007 par Balluche grâce à PHPXref 0.7