Changeset 2574
- Timestamp:
- 09/18/06 00:22:14 (7 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.1/amp_conf/htdocs/admin/page.modules.php
r2469 r2574 2 2 3 3 $extdisplay = isset($_REQUEST['extdisplay'])?$_REQUEST['extdisplay']:''; 4 $refresh = isset($_REQUEST['refresh'])?$_REQUEST['refresh']:''; 4 5 5 6 $installed = find_allmodules(); … … 101 102 echo _("Module Administration (online)"); 102 103 echo "</h2>"; 103 echo "<a href='config.php?display=modules&type=tool&extdisplay=local'>"._("Terminate Connection to Online Module Repository")."</a>\n"; 104 echo "<a href='config.php?display=modules&type=tool&extdisplay=local'>"._("Terminate Connection to Online Module Repository")."</a><br />\n"; 105 echo "<a href='config.php?display=modules&type=tool&extdisplay=online&refresh=true'>"._("Force Refresh of Local Module Cache")."</a>\n"; 106 // If 'refresh' is set to 'true' then truncate the modules_xml table so it doesn't try to 107 // use the cached XML file. 108 if (isset($refresh)) 109 sql("truncate module_xml;"); 104 110 // determine which modules we have installed already 105 111 $installed = find_allmodules(); … … 113 119 echo _("Module Administration"); 114 120 echo "</h2>"; 115 echo "<a href='config.php?display=modules& type=tool&extdisplay=online'>"._("Connect to Online Module Repository")."</a>\n";121 echo "<a href='config.php?display=modules&type=tool&extdisplay=online'>"._("Connect to Online Module Repository")."</a>\n"; 116 122 $installed = find_allmodules(); 117 123 $dispMods = new displayModules($installed); … … 412 418 413 419 function formStart($title = "") { 420 $uri = preg_replace("/&refresh=true/", "//", $_SERVER['REQUEST_URI']); 414 421 return " 415 422 <h4>{$title}</h4> 416 <form method=\"POST\" action=\"{$ _SERVER['REQUEST_URI']}\">423 <form method=\"POST\" action=\"{$uri}\"> 417 424 <table border=1><tr><th> </th><th>". _("Module")."</th><th>". _("Version")."</th><th>". _("Type") ."</th><th>". _("Category") ."</th></tr> 418 425 ";
