Add enhancement in DoliWamp tools

This commit is contained in:
Laurent Destailleur 2008-11-12 00:36:47 +00:00
parent 2fbc141dbc
commit 50dce892e0
5 changed files with 79 additions and 41 deletions

View File

@ -152,7 +152,7 @@ var value: String;
function InitializeSetup(): Boolean;
begin
Result := MsgBox('You will install or upgrade DoliWamp (Apache+Mysql+PHP+Dolibarr) on your computer.' #13#13 'This setup install Dolibarr and third party softwares (Apache, Mysql and PHP) configured for a Dolibarr usage.' #13#13 'If you want to share your Apache, Mysql and PHP with other projects than Dolibarr, it is recommended to make ' #13 'a manual installation of Dolibarr on your own Apache, Mysql and PHP installation.' #13#13 'Do you want to continue install ?', mbConfirmation, MB_YESNO) = idYes;
Result := MsgBox('You will install or upgrade DoliWamp (Apache+Mysql+PHP+Dolibarr) on your computer.' #13#13 'This setup install Dolibarr and third party softwares (Apache, Mysql and PHP) configured for a Dolibarr usage.' #13#13 'If you want to share your Apache, Mysql and PHP with other projects than Dolibarr, it is recommended to make ' #13 'a manual installation of Dolibarr on your own Apache, Mysql and PHP installation.' #13#13 'Do you want to start installation process ?', mbConfirmation, MB_YESNO) = idYes;
end;
procedure InitializeWizard();
@ -197,7 +197,7 @@ begin
// Create a page wpInstalling
Page := CreateInputQueryPage(wpInstalling,
'Technical parameters', '',
'Please specify some technical parameters.' #13 'If you don''t understand, are not sure, or are doing an upgrade, just leave the ' #13 'default values.');
'Please specify some technical parameters. If you don''t understand, are not sure, or are doing an upgrade, just leave the default values.');
// TODO Add control differently if first install or update
Page.Add('SMTP server (your own or ISP SMTP server) :', False);

View File

@ -44,8 +44,11 @@ $langues = array(
'txtAlias' => 'Your aliased softwares',
'txtNoAlias' => 'No Alias found.',
'txtProjet' => 'Your Softwares',
'txtNoProjet' => 'No softwares yet. To create a new one, just create a directory in \'www\'.',
'faq' => 'http://www.en.wampserver.com/faq.php'
'txtNoProjet' => 'No other softwares. To create a new one, just create a directory in \'www\'.',
'txtApp' => 'Applications',
'faq' => 'http://www.en.wampserver.com/faq.php',
'ipserver' => 'Name/IP Server:',
'askhelp' => 'Request a help support'
),
'fr' => array(
'langue' => 'Français',
@ -61,8 +64,11 @@ $langues = array(
'txtAlias' => 'Alias d\'applications',
'txtNoAlias' => 'Aucun alias.',
'txtProjet' => 'Autres applications (sans alias)',
'txtNoProjet' => 'Aucune application hors alias. Pour en ajouter un nouveau, créez simplement un répertoire dans \'www\'.',
'faq' => 'http://www.wampserver.com/faq.php'
'txtNoProjet' => 'Pas d\'autre application. Pour en ajouter une nouvelle, créez simplement un répertoire dans \'www\'.',
'txtApp' => 'Applications',
'faq' => 'http://www.wampserver.com/faq.php',
'ipserver' => 'Name/IP Serveur:',
'askhelp' => 'Demander une aide au support'
)
);
@ -205,7 +211,16 @@ H+ABAB+AAQAAAAMAAAADAAAAAwAAAAcAAAAHAAAADwAAAB8AAAA/AAAAf4AAAf8=
EOFILE;
//affichage du phpinfo
// Ask help
if (isset($_GET['askhelp']))
{
print "Sorry, feature not yet available";
exit();
}
// Show PHPInfo
if (isset($_GET['phpinfo']))
{
phpinfo();
@ -275,21 +290,29 @@ foreach ($loaded_extensions as $extension)
// Read alias
// Read alias directory
$listoffile=array();
$aliasarray=array();
if (is_dir($aliasDir))
{
$handle=opendir($aliasDir);
while ($file = readdir($handle))
{
$listoffiles[]=$file;
}
sort($listoffiles);
foreach($listoffiles as $file)
{
if (is_file($aliasDir.$file) && ereg('.conf',$file))
{
$msg = '';
$aliasContents .= '<li><a href="'.ereg_replace('.conf','',$file).'/">';
$file = ereg_replace('.conf','',$file);
if (eregi('dolibarr',$file)) $aliasContents .= $file.' (URL=http://<i>ipofyourserver</i>:81/'.$file.'/)';
if (eregi('phpmyadmin',$file)) $aliasContents .= $file.' (URL=http://<i>ipofyourserver</i>:81/'.$file.'/)';
$aliasContents.='</a></li>';
if (eregi('dolibarr',$file)) $aliasContents .= $file.'</a> (URL: http://<i>ipofyourserver</i>:81/'.$file.'/)';
elseif (eregi('phpmyadmin',$file)) $aliasContents .= $file.'</a> (URL: http://<i>ipofyourserver</i>:81/'.$file.'/)';
else $aliasContents .= $file.'</a>';
$aliasContents.='</li>';
$aliasarray[]=$file;
}
}
@ -300,22 +323,33 @@ if (!isset($aliasContents))
// Read projects in www dir
$listoffiles=array();
$handle=opendir(".");
while ($file = readdir($handle))
{
if (is_dir($file) && !in_array($file,$projectsListIgnore) && !in_array($file,$aliasarray))
{
$projectContents .= '<li><a href="'.$file.'">';
$projectContents .= $file;
$projectContents .= '</a></li>';
}
$listoffiles[]=$file;
}
closedir($handle);
foreach($listoffiles as $file)
{
if (is_dir($file) && !in_array($file,$projectsListIgnore) && !in_array($file,$aliasarray))
{
$projectContents .= '<li><a href="'.$file.'/">';
$projectContents .= $file.'</a> (URL: http://<i>ipofyourserver</i>:81/'.$file.'/)';
$projectContents .= '</li>';
}
}
if (!isset($projectContents))
$projectContents = $langues[$langue]['txtNoProjet'];
$nameServer=getenv("COMPUTERNAME");
$ipServer=$nameServer;
$pageContents = <<< EOPAGE
<?xml version="1.0" encoding="iso-8859-1"?>
@ -464,23 +498,27 @@ a:hover {
</dd>
<dt>{$langues[$langue]['versm']}</dt>
<dd>${mysqlVersion} &nbsp;</dd>
<dt>{$langues[$langue]['ipserver']}</dt>
<dd>${ipServer} &nbsp;</dd>
</dl>
<h2>{$langues[$langue]['titrePage']}</h2>
<ul class="tools">
<li><a href="?phpinfo=1">phpinfo</a></li>
<li><a href="phpmyadmin/index.php">phpmyadmin</a></li>
<li><a href="server-status">server-status</a></li>
</ul>
<h2>{$langues[$langue]['txtAlias']}</h2>
<h2>{$langues[$langue]['txtApp']}</h2>
<ul class="aliases">
${aliasContents}
</ul>
<h2>{$langues[$langue]['txtProjet']}</h2>
<ul class="projects">
$projectContents
</ul>
<h2>{$langues[$langue]['titrePage']}</h2>
<ul class="tools">
<li><a href="index.php?phpinfo=1">Phpinfo</a></li>
<li><a href="server-status">Server-status</a></li>
<li><a href="/dolibarr/support/onlinesupport.php">{$langues[$langue]['askhelp']}</a></li>
</ul>
<ul id="foot">
<li><a href="http://www.dolibarr.org">DoliWamp project</a> was built from modified sources of <a href="http://www.wampserver.com">WampServer project</a> from Anaska</li>
<li><a href="http://www.nltechno.com/pages/dolibarrwinbin.php">DoliWamp project</a> was built from modified sources of <a href="http://www.wampserver.com">WampServer project</a> from Anaska</li>
</ul>
</body>
</html>

View File

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<PADGEN_PML>
<AppVerInfo>PADGen 3.0.1.37</AppVerInfo>
<AppVerInfo>PADGen 3.0.1.38</AppVerInfo>
<CompanyName />
<Program_Info>
<Program_Name>Dolibarr</Program_Name>
<Program_Version>2.4</Program_Version>
<Program_Release_Month>08</Program_Release_Month>
<Program_Release_Day>21</Program_Release_Day>
<Program_Version>2.4.1</Program_Version>
<Program_Release_Month>10</Program_Release_Month>
<Program_Release_Day>30</Program_Release_Day>
<Program_Release_Year>2008</Program_Release_Year>
<Program_Cost_Dollars />
<Program_Cost_Other_Code />
@ -59,11 +59,11 @@
<Application_Order_URL>http://www.dolibarr.org</Application_Order_URL>
<Application_Screenshot_URL>http://www.dolibarr.org/images/dolibarr_screenshot2.png</Application_Screenshot_URL>
<Application_Icon_URL>http://www.dolibarr.org/images/dolibarr.gif</Application_Icon_URL>
<Application_XML_File_URL>http://www.dolibarr.org/images/pad_dolibarr.xml</Application_XML_File_URL>
<Application_XML_File_URL>http://www.dolibarr.org/files/pad_dolibarr.xml</Application_XML_File_URL>
</Application_URLs>
<Download_URLs>
<Primary_Download_URL>http://www.nltechno.com/files/dolibarr.tgz</Primary_Download_URL>
<Secondary_Download_URL>http://www.nltechno.com/files/dolibarr.tgz</Secondary_Download_URL>
<Primary_Download_URL>http://www.dolibarr.org/files/dolibarr.tgz</Primary_Download_URL>
<Secondary_Download_URL>http://www.dolibarr.org/files/dolibarr.tgz</Secondary_Download_URL>
<Additional_Download_URL_1 />
<Additional_Download_URL_2 />
</Download_URLs>

Binary file not shown.

View File

@ -2,7 +2,7 @@
<XML_DIZ_INFO>
<MASTER_PAD_VERSION_INFO>
<MASTER_PAD_VERSION>3.01</MASTER_PAD_VERSION>
<MASTER_PAD_EDITOR>PADGen 3.0.1.37 http://www.padgen.org</MASTER_PAD_EDITOR>
<MASTER_PAD_EDITOR>PADGen 3.0.1.38 http://www.padgen.org</MASTER_PAD_EDITOR>
<MASTER_PAD_INFO>Portable Application Description, or PAD for short, is a data set that is used by shareware authors to disseminate information to anyone interested in their software products. To find out more go to http://www.asp-shareware.org/pad</MASTER_PAD_INFO>
</MASTER_PAD_VERSION_INFO>
<Company_Info>
@ -34,9 +34,9 @@
</Company_Info>
<Program_Info>
<Program_Name>Dolibarr</Program_Name>
<Program_Version>2.4</Program_Version>
<Program_Release_Month>08</Program_Release_Month>
<Program_Release_Day>21</Program_Release_Day>
<Program_Version>2.4.1</Program_Version>
<Program_Release_Month>10</Program_Release_Month>
<Program_Release_Day>30</Program_Release_Day>
<Program_Release_Year>2008</Program_Release_Year>
<Program_Cost_Dollars />
<Program_Cost_Other_Code />
@ -89,11 +89,11 @@
<Application_Order_URL>http://www.dolibarr.org</Application_Order_URL>
<Application_Screenshot_URL>http://www.dolibarr.org/images/dolibarr_screenshot2.png</Application_Screenshot_URL>
<Application_Icon_URL>http://www.dolibarr.org/images/dolibarr.gif</Application_Icon_URL>
<Application_XML_File_URL>http://www.dolibarr.org/images/pad_dolibarr.xml</Application_XML_File_URL>
<Application_XML_File_URL>http://www.dolibarr.org/files/pad_dolibarr.xml</Application_XML_File_URL>
</Application_URLs>
<Download_URLs>
<Primary_Download_URL>http://www.nltechno.com/files/dolibarr.tgz</Primary_Download_URL>
<Secondary_Download_URL>http://www.nltechno.com/files/dolibarr.tgz</Secondary_Download_URL>
<Primary_Download_URL>http://www.dolibarr.org/files/dolibarr.tgz</Primary_Download_URL>
<Secondary_Download_URL>http://www.dolibarr.org/files/dolibarr.tgz</Secondary_Download_URL>
<Additional_Download_URL_1 />
<Additional_Download_URL_2 />
</Download_URLs>