index.php
上传用户:gzy2002
上传日期:2010-02-11
资源大小:1785k
文件大小:13k
源码类别:

电子政务应用

开发平台:

Java

  1. <?php
  2. // +-------------------------------------------------------------+
  3. // | DeskPRO v [2.0.1 Production]
  4. // | Copyright (C) 2001 - 2004 Headstart Solutions Limited
  5. // | Supplied by WTN-WDYL
  6. // | Nullified by WTN-WDYL
  7. // | Distribution via WebForum, ForumRU and associated file dumps
  8. // +-------------------------------------------------------------+
  9. // | DESKPRO IS NOT FREE SOFTWARE
  10. // +-------------------------------------------------------------+
  11. // | License ID : Full Enterprise License =) ...
  12. // | License Owner : WTN-WDYL Team
  13. // +-------------------------------------------------------------+
  14. // | $RCSfile: index.php,v $
  15. // | $Date: 2004/02/10 01:34:25 $
  16. // | $Revision: 1.38 $
  17. // +-------------------------------------------------------------+
  18. // | File Details:
  19. // | - Administration interface home page
  20. // +-------------------------------------------------------------+
  21. error_reporting(E_ALL & ~E_NOTICE);
  22. require_once('./global.php');
  23. //Nullify WTN-WDYL Team
  24. include "./settings_include.php";
  25. admin_header('Links', 'Admin Home');
  26. // get packed size
  27. if ($result = $db->query_return("SHOW VARIABLES LIKE 'max_allowed_packet'")) {
  28. $maxpacket = $result['Value'];
  29. $maxpacket = number_format($maxpacket / 1048576, 2) . ' MB';
  30.    } else {
  31. $maxpacket = 'not available';
  32. }
  33. ?>
  34. <table width="585" border="0" cellspacing="0" cellpadding="0">
  35.   <tr> 
  36.     <td bgcolor="#A4A4A4" height="17"> 
  37.       <table border="0" cellspacing="0" cellpadding="0" height="18">
  38.         <tr> 
  39.           <td width="19" bgcolor="#BF4343" align="center"><img src="./../images/admin/bul040.gif" width="13" height="14"></td>
  40.           <td class="txt010" bgcolor="#727272"><font color="#FFFFFF">&nbsp;&nbsp;&nbsp;Welcome
  41.             to the DeskPro admin interface &nbsp;&nbsp;</font></td>
  42.         </tr>
  43.       </table>
  44.     </td>
  45.   </tr>
  46. </table>
  47. <br />
  48. <table width="585" border="0" cellspacing="0" cellpadding="6">
  49. <tr>
  50. <td width="300">
  51. <!--WTN-WDYL-->
  52. <?php
  53. $version_type = 'DESKPRO ENTERPRISE';
  54. $max_users = max_limits('tech', 1);
  55. $tickets_left = max_limits('ticket', 1);
  56. $faqs_left = max_limits('faq', 1);
  57.         $HOST=$HTTP_HOST;
  58. if ($max_users == -1) {
  59. $max_users = "Unlimited";
  60. }
  61. if ($tickets_left == -1) {
  62. $tickets_left = "Unlimited";
  63. }
  64. if ($faqs_left == -1) {
  65. $faqs_left = "Unlimited";
  66. }
  67. echo table_border("
  68. <table cellpadding="1">
  69. <tr><td colspan="3" align="center" valign="middle"><b><u>LICENSE INFORMATION</u></b></td></tr>
  70. <tr><td nospan="nospan" width="120"><b>License Number</b></td><td width="15" align="middle">:</td><td>XX-XX-XX</td></tr>
  71. <tr><td><b>License Owned by</b></td><td width="15" align="middle">:</td><td>WTN-WDYL Team `2004</td></tr>
  72. <tr><td><b>Product Licensed</b></td><td width="15" align="middle">:</td><td>$version_type</td></td></tr>
  73. <tr><td><b>Maximum Technicians</b></td><td width="15" align="middle">:</td><td>$max_users</td></td></tr>
  74. <tr><td><b>Tickets Remaining</b></td><td width="15" align="middle">:</td><td>$tickets_left</td></td></tr>
  75. <tr><td><b>FAQ Entries Remaining</b></td><td width="15" align="middle">:</td><td>$faqs_left</td></td></tr>
  76. <tr><td><b>Upgrade License</b></td><td width="15" align="middle">:</td><td>Disable by WTN-WDYL Team</td></tr>
  77. <tr><td><b>Installed Version</b></td><td width="15" align="middle">:</td><td>v$settings[deskpro_version]</td></tr>
  78. </table>
  79. ");
  80. ?>
  81. </td><td>
  82. <b>DeskPRO News:</b><br />
  83. <!--WTN-WDYL-->
  84. <BR /><BR />
  85. <img src="./../images/admin/bul051.gif" width="11" height="8" hspace="10">
  86. None<br />
  87. <img src="./../images/admin/bul050.gif" width="11" height="8" hspace="10">
  88. None<br />
  89. <img src="./../images/admin/bul051.gif" width="11" height="8" hspace="10">
  90. None<br />
  91. <img src="./../images/admin/bul052.gif" width="11" height="9" hspace="10">
  92. None
  93. <br /><br />
  94. </td>
  95. </tr></table>
  96. <br /><br />
  97. <table width="575"><tr><td>
  98. <?php
  99. ##################################### INSTALLATION STEPS #####################################
  100. // get config data
  101. $config = unserialize(get_data('config'));
  102. if (!is_array($config)) {
  103. echo table_border("<b>You should start your configuration of DeskPRO by running the <a href="basic_config.php">Basic Configuration system</a>. This will guide you through all the steps you need to get DeskPRO up and running in your environment.</b>");
  104. echo "<BR /><BR />";
  105. } elseif (count($config) < 7) {
  106. echo table_border("<b>You should finish your configuration of DeskPRO by running the <a href="basic_config.php">Basic Configuration system</a>. It is important that you complete these simple steps to get DeskPRO up and running in your environment</b>");
  107. echo "<BR /><BR />";
  108. }
  109. ##################################### ICONS #####################################
  110. ?>
  111. <table border="0" cellpadding="10" cellspacing="0" align="center">
  112.   <tr>
  113.     <td width="95" height="75"> <table width="95" border="0" cellspacing="0" cellpadding="0" height="75">
  114.         <tr> 
  115.           <td width="95" bgcolor="#BF4343"><table width="95" border="0" cellspacing="1" cellpadding="8" height="75">
  116.               <tr> 
  117.                 <td align="center" valign="bottom" bgcolor="#FFFFFF"><a href="settings.php" class="iconCaption"><img src="./../images/admin/icon010.gif" width="21" height="22" vspace="5" border="0"><br />
  118.                   Settings</a></td>
  119.               </tr>
  120.             </table></td>
  121.         </tr>
  122.       </table></td>
  123.     <td height="75"><table width="95" border="0" cellspacing="0" cellpadding="0" height="75">
  124.         <tr> 
  125.           <td width="95" bgcolor="#BF4343"><table width="95" border="0" cellspacing="1" cellpadding="8" height="75">
  126.               <tr> 
  127.                 <td align="center" valign="bottom" bgcolor="#FFFFFF"><a href="languages.php" class="iconCaption"><img src="./../images/admin/icon020.gif" width="23" height="22" vspace="5" border="0"><br />
  128.                   Languages</a></td>
  129.               </tr>
  130.             </table></td>
  131.         </tr>
  132.       </table> </td>
  133.     <td height="75"><table width="95" border="0" cellspacing="0" cellpadding="0" height="75">
  134.         <tr> 
  135.           <td width="95" bgcolor="#BF4343"><table width="95" border="0" cellspacing="1" cellpadding="8" height="75">
  136.               <tr> 
  137.                 <td align="center" valign="bottom" bgcolor="#FFFFFF"><a href="email.php?do=view" class="iconCaption"><img src="./../images/admin/icon030.gif" width="22" height="23" vspace="5" border="0"><br />
  138.                   EMail Gateway</a></td>
  139.               </tr>
  140.             </table></td>
  141.         </tr>
  142.       </table> </td>
  143.     <td height="75"><table width="95" border="0" cellspacing="0" cellpadding="0" height="75">
  144.         <tr> 
  145.           <td width="95" bgcolor="#BF4343"><table width="95" border="0" cellspacing="1" cellpadding="8" height="75">
  146.               <tr> 
  147.                 <td align="center" valign="bottom" bgcolor="#FFFFFF"><a href="reports.php?do=viewreports" class="iconCaption"><img src="./../images/admin/icon040.gif" width="18" height="24" vspace="5" border="0"><br />
  148.                   Reports</a></td>
  149.               </tr>
  150.             </table></td>
  151.         </tr>
  152.       </table> </td>
  153.     <td height="75"><table width="95" border="0" cellspacing="0" cellpadding="0" height="75">
  154.         <tr> 
  155.           <td width="95" bgcolor="#BF4343"><table width="95" border="0" cellspacing="1" cellpadding="8" height="75">
  156.               <tr> 
  157.                 <td align="center" valign="bottom" bgcolor="#FFFFFF"><a href="tech.php?do=view" class="iconCaption"><img src="./../images/admin/icon050.gif" width="29" height="20" vspace="5" border="0"><br />
  158.                   Technicians </a></td>
  159.               </tr>
  160.             </table></td>
  161.         </tr>
  162.       </table></td>
  163.   </tr>
  164.   <tr>
  165.     <td height="75"> <table width="95" border="0" cellspacing="0" cellpadding="0" height="75">
  166.         <tr> 
  167.           <td width="95" bgcolor="#BF4343"><table width="95" border="0" cellspacing="1" cellpadding="8" height="75">
  168.               <tr> 
  169.                 <td align="center" valign="bottom" bgcolor="#FFFFFF"><a href="category.php" class="iconCaption"><img src="./../images/admin/icon070.gif" width="38" height="20" vspace="5" border="0"><br />
  170.                   Categories</a></td>
  171.               </tr>
  172.             </table></td>
  173.         </tr>
  174.       </table></td>
  175.     <td height="75"> <table width="95" border="0" cellspacing="0" cellpadding="0" height="75">
  176.         <tr> 
  177.           <td width="95" bgcolor="#BF4343"><table width="95" border="0" cellspacing="1" cellpadding="8" height="75">
  178.               <tr> 
  179.                 <td align="center" valign="bottom" bgcolor="#FFFFFF"><a href="priority.php" class="iconCaption"><img src="./../images/admin/icon080.gif" width="31" height="22" vspace="5" border="0"><br />
  180.                   Priorities</a></td>
  181.               </tr>
  182.             </table></td>
  183.         </tr>
  184.       </table></td>
  185.     <td height="75"> <table width="95" border="0" cellspacing="0" cellpadding="0" height="75">
  186.         <tr> 
  187.           <td width="95" bgcolor="#BF4343"><table width="95" border="0" cellspacing="1" cellpadding="8" height="75">
  188.               <tr> 
  189.                 <td align="center" valign="bottom" bgcolor="#FFFFFF"><a href="templates.php?do=view" class="iconCaption"><img src="./../images/admin/icon090.gif" width="24" height="25" vspace="5" border="0"><br />
  190.                   Design &amp; Style</a></td>
  191.               </tr>
  192.             </table></td>
  193.         </tr>
  194.       </table></td>
  195.     <td height="75"> <table width="95" border="0" cellspacing="0" cellpadding="0" height="75">
  196.         <tr> 
  197.           <td width="95" bgcolor="#BF4343"><table width="95" border="0" cellspacing="1" cellpadding="8" height="75">
  198.               <tr> 
  199.                 <td align="center" valign="bottom" bgcolor="#FFFFFF"><a href="cron.php" class="iconCaption"><img src="./../images/admin/icon100.gif" width="25" height="22" vspace="5" border="0"><br />
  200.                   Scheduled Jobs</a></td>
  201.               </tr>
  202.             </table></td>
  203.         </tr>
  204.       </table></td>
  205.     <td height="75"> <table width="95" border="0" cellspacing="0" cellpadding="0" height="75">
  206.         <tr> 
  207.           <td width="95" bgcolor="#BF4343"><table width="95" border="0" cellspacing="1" cellpadding="8" height="75">
  208.               <tr> 
  209.                 <td align="center" valign="bottom" bgcolor="#FFFFFF"><a href="ticket_fields.php?do=view" class="iconCaption"><img src="./../images/admin/icon110.gif" width="18" height="22" vspace="5" border="0"><br />
  210.                   Ticket Fields</a></td>
  211.               </tr>
  212.             </table></td>
  213.         </tr>
  214.       </table></td>
  215.   </tr>
  216.   <tr>
  217.     <td><table width="95" border="0" cellspacing="0" cellpadding="0" height="75">
  218.         <tr> 
  219.           <td width="95" bgcolor="#BF4343"><table width="95" border="0" cellspacing="1" cellpadding="8" height="75">
  220.               <tr> 
  221.                 <td align="center" valign="bottom" bgcolor="#FFFFFF"><a href="email2.php" class="iconCaption"><img src="./../images/admin/icon130.gif" width="35" height="15" vspace="5" border="0"><br />
  222.                   Send Newsletter</a></td>
  223.               </tr>
  224.             </table> </td>
  225.         </tr>
  226.       </table></td>
  227.     <td> <table width="95" border="0" cellspacing="0" cellpadding="0" height="75">
  228.         <tr> 
  229.           <td width="95" bgcolor="#BF4343"><table width="95" border="0" cellspacing="1" cellpadding="8" height="75">
  230.               <tr> 
  231.                 <td align="center" valign="bottom" bgcolor="#FFFFFF"><a href="payment.php?do=report" class="iconCaption"><img src="./../images/admin/icon140.gif" width="31" height="20" vspace="5" border="0"><br />
  232.                   Payment Function</a></td>
  233.               </tr>
  234.             </table></td>
  235.         </tr>
  236.       </table></td>
  237.     <td><table width="95" border="0" cellspacing="0" cellpadding="0" height="75">
  238.         <tr> 
  239.           <td width="95" bgcolor="#BF4343"><table width="95" border="0" cellspacing="1" cellpadding="8" height="75">
  240.               <tr> 
  241.                 <td align="center" valign="bottom" bgcolor="#FFFFFF"><a href="ban.php" class="iconCaption"><img src="./../images/admin/icon160.gif" width="38" height="22" vspace="5" border="0"><br />
  242.                   Banning</a></td>
  243.               </tr>
  244.             </table></td>
  245.         </tr>
  246.       </table></td>
  247.     <td><table width="95" border="0" cellspacing="0" cellpadding="0" height="75">
  248.         <tr> 
  249.           <td width="95" bgcolor="#BF4343"><table width="95" border="0" cellspacing="1" cellpadding="8" height="75">
  250.               <tr> 
  251.                 <td align="center" valign="bottom" bgcolor="#FFFFFF"><a href="backup.php" class="iconCaption"><img src="./../images/admin/icon170.gif" width="37" height="19" vspace="5" border="0"><br />
  252.                   Backup</a></td>
  253.               </tr>
  254.             </table></td>
  255.         </tr>
  256.       </table></td>
  257.     <td height="75"> <table width="95" border="0" cellspacing="0" cellpadding="0" height="75">
  258.         <tr> 
  259.           <td width="95" bgcolor="#BF4343"><table width="95" border="0" cellspacing="1" cellpadding="8" height="75">
  260.               <tr> 
  261.                 <td align="center" valign="bottom" bgcolor="#FFFFFF"><a href="user_fields.php?do=view" class="iconCaption"><img src="./../images/admin/icon120.gif" width="18" height="22" vspace="5" border="0"><br />
  262.                   User Fields</a></td>
  263.               </tr>
  264.             </table></td>
  265.         </tr>
  266.       </table></td>
  267.   </tr>
  268. </table>