forked from Wavyzz/dolibarr
Nettoyage code
This commit is contained in:
@@ -25,26 +25,13 @@
|
|||||||
$yn[0] = "non";
|
$yn[0] = "non";
|
||||||
$yn[1] = "oui";
|
$yn[1] = "oui";
|
||||||
|
|
||||||
function doliMoveFileUpload($src_file, $dest_file)
|
|
||||||
{
|
|
||||||
$file_name = $dest_file;
|
|
||||||
|
|
||||||
if (substr($file_name, strlen($file_name) -3 , 3) == 'php')
|
|
||||||
{
|
|
||||||
$file_name = $dest_file . ".txt";
|
|
||||||
}
|
|
||||||
|
|
||||||
return move_uploaded_file($src_file, $file_name);
|
|
||||||
}
|
|
||||||
|
|
||||||
function loginFunction()
|
function loginFunction()
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Change the HTML output so that it fits to your
|
* Change the HTML output so that it fits to your
|
||||||
* application. */
|
* application. */
|
||||||
print '<html><head><title>Dolibarr Authentification</title>';
|
print '<html><head><title>Dolibarr Authentification</title>';
|
||||||
print '
|
print '<style type="text/css">
|
||||||
<style type="text/css">
|
|
||||||
body {
|
body {
|
||||||
font-size:14px;
|
font-size:14px;
|
||||||
font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
|
font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
|
||||||
@@ -54,7 +41,6 @@ body {
|
|||||||
margin-top: 10%;
|
margin-top: 10%;
|
||||||
margin-bottom: 1%;
|
margin-bottom: 1%;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.main {
|
div.main {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@@ -68,7 +54,6 @@ div.main-inside {
|
|||||||
margin-bottom: 50px;
|
margin-bottom: 50px;
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.footer {
|
div.footer {
|
||||||
background-color: #dcdff4;
|
background-color: #dcdff4;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
@@ -76,19 +61,15 @@ div.footer {
|
|||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.header {
|
div.header {
|
||||||
background-color: #dcdff4;
|
background-color: #dcdff4;
|
||||||
|
|
||||||
border-bottom: solid black 1px;
|
border-bottom: solid black 1px;
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.footer p {
|
div.footer p {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:link,a:visited,a:active {
|
a:link,a:visited,a:active {
|
||||||
text-decoration:none;
|
text-decoration:none;
|
||||||
color:blue;
|
color:blue;
|
||||||
@@ -97,11 +78,8 @@ a:hover {
|
|||||||
text-decoration:underline;
|
text-decoration:underline;
|
||||||
color:blue;
|
color:blue;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</head><body>
|
</head><body>
|
||||||
|
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<div class="header">';
|
<div class="header">';
|
||||||
print 'Dolibarr '.DOL_VERSION;
|
print 'Dolibarr '.DOL_VERSION;
|
||||||
@@ -110,21 +88,19 @@ print '
|
|||||||
<div class="main-inside">
|
<div class="main-inside">
|
||||||
';
|
';
|
||||||
|
|
||||||
|
echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '">';
|
||||||
echo "<form method=\"post\" action=\"" . $_SERVER['PHP_SELF'] . "\">";
|
|
||||||
print '<table><tr>';
|
print '<table><tr>';
|
||||||
print '<td>Login : </td><td><input type="text" name="username"></td></tr>';;
|
print '<td>Login : </td><td><input type="text" name="username"></td></tr>';;
|
||||||
print '<tr><td>Password : </td><td><input type="password" name="password"></td></tr>';
|
print '<tr><td>Password : </td><td><input type="password" name="password"></td></tr>';
|
||||||
|
|
||||||
echo '</table>
|
echo '</table>
|
||||||
<p align="center"><input value="Login" type="submit">
|
<p align="center"><input value="Login" type="submit">
|
||||||
</form>
|
</form>';
|
||||||
</div>
|
|
||||||
|
|
||||||
</body></html>';
|
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
function accessforbidden()
|
function accessforbidden()
|
||||||
{
|
{
|
||||||
llxHeader();
|
llxHeader();
|
||||||
@@ -133,6 +109,20 @@ function accessforbidden()
|
|||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function doliMoveFileUpload($src_file, $dest_file)
|
||||||
|
{
|
||||||
|
$file_name = $dest_file;
|
||||||
|
|
||||||
|
if (substr($file_name, strlen($file_name) -3 , 3) == 'php')
|
||||||
|
{
|
||||||
|
$file_name = $dest_file . ".txt";
|
||||||
|
}
|
||||||
|
|
||||||
|
return move_uploaded_file($src_file, $file_name);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function transcoS2L($zonein,$devise)
|
function transcoS2L($zonein,$devise)
|
||||||
{
|
{
|
||||||
// Open source offert par <A HREF="mailto:alainfloch@free.fr?subject=chif2let">alainfloch@free.fr</A> 28/10/2001, sans garantie.
|
// Open source offert par <A HREF="mailto:alainfloch@free.fr?subject=chif2let">alainfloch@free.fr</A> 28/10/2001, sans garantie.
|
||||||
|
|||||||
Reference in New Issue
Block a user