Struggeling with relocating
Dieser Commit ist enthalten in:
Commit
89ea01c429
301 geänderte Dateien mit 59926 neuen und 0 gelöschten Zeilen
62
tpl/home/home.tpl
Normale Datei
62
tpl/home/home.tpl
Normale Datei
|
|
@ -0,0 +1,62 @@
|
|||
<div id="content">
|
||||
<h2>{L_HOME}</h2>
|
||||
<!-- BEGIN DIRECTORY_WARNINGS -->
|
||||
{DIRECTORY_WARNINGS.MSD}
|
||||
<!-- END DIRECTORY_WARNINGS -->
|
||||
<!-- BEGIN HTACCESS_EXISTS -->
|
||||
<a href="index.php?p=home&action=edithtaccess" class="Formbutton">{ICON_EDIT} {L_HTACC_EDIT}</a>
|
||||
<a href="index.php?p=home&action=deletehtaccess" class="Formbutton" onclick="if (!confirm('{L_DELETE_HTACCESS}?')) return false;">{ICON_DELETE} {L_DELETE_HTACCESS}</a>
|
||||
<!-- END HTACCESS_EXISTS -->
|
||||
|
||||
<!-- BEGIN HTACCESS_DOESNT_EXISTS -->
|
||||
<span class="error">{L_HTACC_PROPOSED}:</span>
|
||||
<a href="index.php?p=home&action=schutz" class="Formbutton">{ICON_EDIT} {L_HTACC_CREATE}</a>
|
||||
<!-- END HTACCESS_DOESNT_EXISTS -->
|
||||
<a href="inc/home/phpinfo.php" class="new-window Formbutton">{ICON_SEARCH} PHP-Info</a>
|
||||
<br />
|
||||
<h3>{L_VERSIONSINFORMATIONEN}</h3>
|
||||
<img src="css/{THEME}/pics/loveyourdata.gif" style="float:right" alt="love your data" title="love your data" />
|
||||
<p>
|
||||
{L_MSD_VERSION}: <strong>{MSD_VERSION}</strong>
|
||||
<br />
|
||||
{L_OS}: <strong>{OS}</strong> ({OS_EXT})
|
||||
<br />
|
||||
{L_MYSQL_VERSION}: <strong>{MYSQL_VERSION}</strong><br />
|
||||
{L_MYSQL_CLIENT_VERSION}: <strong>{MYSQL_CLIENT_VERSION}</strong><br />
|
||||
{L_PHP_VERSION}: <strong>{PHP_VERSION}</strong> {L_MEMORY}: <strong>{MEMORY}</strong>
|
||||
<br />
|
||||
{L_MAX_EXECUTION_TIME}: <strong>{MAX_EXECUTION_TIME} {L_SECONDS} ({MAX_EXEC_USED_BY_MSD} {L_SECONDS})</strong>
|
||||
<br />
|
||||
<!-- BEGIN ZLIBBUG -->
|
||||
<span class="error">{L_PHPBUG}</span>
|
||||
<br />
|
||||
<!-- END ZLIBBUG -->
|
||||
|
||||
<!-- BEGIN NO_FTP -->
|
||||
<span class="error">{L_NOFTPPOSSIBLE}</span>
|
||||
<br />
|
||||
<!-- END NO_FTP -->
|
||||
|
||||
<!-- BEGIN NO_ZLIB -->
|
||||
<span class="error">{L_NOGZPOSSIBLE}</span><br />
|
||||
<!-- END NO_ZLIB -->
|
||||
|
||||
{L_PHP_EXTENSIONS}: <span class="small">{PHP_EXTENSIONS}</span>
|
||||
<br />
|
||||
<!-- BEGIN DISABLED_FUNCTIONS -->
|
||||
<br />
|
||||
{L_DISABLEDFUNCTIONS}: <span class="small">{DISABLED_FUNCTIONS.PHP_DISABLED_FUNCTIONS}</span>
|
||||
<!-- END DISABLED_FUNCTIONS -->
|
||||
</p>
|
||||
<h3>{L_MSD_INFO}</h3>
|
||||
<p>{L_INFO_LOCATION} "<b>{SERVER_NAME}</b>" ({MSD_PATH})<br />
|
||||
{L_INFO_ACTDB}: <strong>{DB}</strong><br />
|
||||
{L_BACKUPFILESANZAHL} <strong>{NR_OF_BACKUP_FILES}</strong>
|
||||
{L_BACKUPS} (<strong>{SIZE_BACKUPS}</strong>)<br />
|
||||
{L_FM_FREESPACE}: <strong>{FREE_DISKSPACE}</strong><br />
|
||||
<!-- BEGIN LAST_BACKUP -->
|
||||
{L_LASTBACKUP} {L_VOM} <strong>{LAST_BACKUP.INFO}</strong>: <strong><a href="{LAST_BACKUP.LINK}" class="new-window">{LAST_BACKUP.NAME}</a> </strong>(<strong>{LAST_BACKUP.SIZE}</strong>)
|
||||
<!-- END LAST_BACKUP -->
|
||||
</p>
|
||||
|
||||
</div>
|
||||
162
tpl/home/protection_create.tpl
Normale Datei
162
tpl/home/protection_create.tpl
Normale Datei
|
|
@ -0,0 +1,162 @@
|
|||
<script type="text/javascript">
|
||||
/*<![CDATA[*/
|
||||
/* taken from http://ajaxorized.com/examples/scriptaculous/pastrength/ */
|
||||
var updateStrength = function(pw) {
|
||||
var strength = getStrength(pw);
|
||||
var width = (100/32)*strength;
|
||||
new Effect.Morph('psStrength', {style:'width:'+width+'px', duration:'0.4'});
|
||||
}
|
||||
|
||||
var getStrength = function(passwd) {
|
||||
intScore = 0;
|
||||
if (passwd.match(/[a-z]/)) // [verified] at least one lower case letter
|
||||
{
|
||||
intScore = (intScore+1)
|
||||
} if (passwd.match(/[A-Z]/)) // [verified] at least one upper case letter
|
||||
{
|
||||
intScore = (intScore+5)
|
||||
} // NUMBERS
|
||||
if (passwd.match(/\d+/)) // [verified] at least one number
|
||||
{
|
||||
intScore = (intScore+5)
|
||||
} if (passwd.match(/(\d.*\d.*\d)/)) // [verified] at least three numbers
|
||||
{
|
||||
intScore = (intScore+5)
|
||||
} // SPECIAL CHAR
|
||||
if (passwd.match(/[!,@#$%^&*?_~]/)) // [verified] at least one special character
|
||||
{
|
||||
intScore = (intScore+5)
|
||||
} if (passwd.match(/([!,@#$%^&*?_~].*[!,@#$%^&*?_~])/)) // [verified] at least two special characters
|
||||
{
|
||||
intScore = (intScore+5)
|
||||
} // COMBOS
|
||||
if (passwd.match(/[a-z]/) && passwd.match(/[A-Z]/)) // [verified] both upper and lower case
|
||||
{
|
||||
intScore = (intScore+2)
|
||||
} if (passwd.match(/\d/) && passwd.match(/\D/)) // [verified] both letters and numbers
|
||||
{
|
||||
intScore = (intScore+2)
|
||||
} // [Verified] Upper Letters, Lower Letters, numbers and special characters
|
||||
if (passwd.match(/[a-z]/) && passwd.match(/[A-Z]/) && passwd.match(/\d/) && passwd.match(/[!,@#$%^&*?_~]/))
|
||||
{
|
||||
intScore = (intScore+2)
|
||||
}
|
||||
return intScore;
|
||||
}
|
||||
function checkPasswords()
|
||||
{
|
||||
if (document.getElementById('userpass1').value!=document.getElementById('userpass2').value)
|
||||
{
|
||||
alert('{PASSWORDS_UNEQUAL}');
|
||||
return false;
|
||||
}
|
||||
else return confirm('{HTACC_CONFIRM_DELETE}?');
|
||||
}
|
||||
/*]]>*/
|
||||
</script>
|
||||
<div id="content">
|
||||
<h2>{L_HTACC_CREATE}</h2>
|
||||
<!-- BEGIN MSG -->
|
||||
{MSG.TEXT}<br /><br />
|
||||
<!-- END MSG -->
|
||||
|
||||
<!-- BEGIN INPUT -->
|
||||
<form method="post" action="index.php?p=home&action=schutz" onsubmit="return checkPasswords();">
|
||||
<table style="width:600px;" border="0">
|
||||
<tr>
|
||||
<td>{L_USERNAME}:</td>
|
||||
<td colspan="2"><input type="text" name="username" id="username" size="50" value="{INPUT.USERNAME}" class="Formtext" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{L_PASSWORD}:</td>
|
||||
<td>
|
||||
<input type="password" name="userpass1" id="userpass1" value="{USERPASS1}" size="50" class="Formtext"
|
||||
onkeyup="updateStrength(this.value)" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{L_PASSWORD_REPEAT}:</td>
|
||||
<td>
|
||||
<input type="password" name="userpass2" id="userpass2" value="{USERPASS2}" size="50" class="Formtext" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{L_PASSWORD_STRENGTH}:</td>
|
||||
<td>
|
||||
<div id="psContainer" class="Formtext" style="cursor:default;"><div id="psStrength" class="Formtext"></div></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{L_ENCRYPTION_TYPE}:</td>
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="middle">
|
||||
<input class="radio" type="radio" name="type" id="type0" value="0"{INPUT.TYPE0_CHECKED} />
|
||||
</td>
|
||||
<td>
|
||||
<label for="type0">{L_HTACC_CRYPT}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="middle">
|
||||
<input class="radio" type="radio" name="type" id="type1" value="1"{INPUT.TYPE1_CHECKED} />
|
||||
</td>
|
||||
<td>
|
||||
<label for="type1">{L_HTACC_MD5}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="middle">
|
||||
<input class="radio" type="radio" name="type" id="type3" value="3"{INPUT.TYPE3_CHECKED} />
|
||||
</td>
|
||||
<td>
|
||||
<label for="type3">{L_HTACC_SHA1}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="middle">
|
||||
<input class="radio" type="radio" name="type" id="type2" value="2"{INPUT.TYPE2_CHECKED} />
|
||||
</td>
|
||||
<td>
|
||||
<label for="type2">{L_HTACC_NO_ENCRYPTION}</label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="center" colspan="2">
|
||||
<br />
|
||||
<input type="submit" class="Formbutton" name="htaccess" value="{L_HTACC_CREATE}" />
|
||||
<br /><br />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<!-- END INPUT -->
|
||||
|
||||
<!-- BEGIN CREATE_SUCCESS -->
|
||||
<strong>{L_HTACC_CONTENT} .htaccess:</strong><br /><br />
|
||||
{CREATE_SUCCESS.HTACCESS}
|
||||
|
||||
<br /><strong>{L_HTACC_CONTENT} .htpasswd:</strong><br /><br />
|
||||
{CREATE_SUCCESS.HTPASSWD}
|
||||
<br /><br />
|
||||
<a href="index.php?p=home" class="Formbutton">{L_HOME}</a>
|
||||
<!-- END CREATE_SUCCESS -->
|
||||
|
||||
<!-- BEGIN CREATE_ERROR -->
|
||||
<p class="error"><strong>{L_HTACC_CREATE_ERROR}:</strong></p>
|
||||
<p>
|
||||
<strong>{L_HTACC_CONTENT} ".htaccess":</strong><br /><br />
|
||||
<textarea cols="80" rows="5">{CREATE_ERROR.HTACCESS}</textarea>
|
||||
|
||||
<br /><strong>{L_HTACC_CONTENT} ".htpasswd":</strong><br /><br />
|
||||
<textarea cols="80" rows="2">{CREATE_ERROR.HTPASSWD}</textarea>
|
||||
|
||||
<br /><br />
|
||||
<a href="index.php?p=home" class="Formbutton">{L_HOME}</a>
|
||||
</p>
|
||||
<!-- END CREATE_ERROR -->
|
||||
</div>
|
||||
76
tpl/home/protection_edit.tpl
Normale Datei
76
tpl/home/protection_edit.tpl
Normale Datei
|
|
@ -0,0 +1,76 @@
|
|||
<script type="text/javascript">
|
||||
/*<![CDATA[*/
|
||||
function insertHTA(s)
|
||||
{
|
||||
var hta_content=document.getElementById('hta_content');
|
||||
if(s==1)ins="AddHandler php-fastcgi .php .php4\nAddhandler cgi-script .cgi .pl\nOptions +ExecCGI";
|
||||
if(s==101)ins="DirectoryIndex /cgi-bin/script.pl"
|
||||
if(s==102)ins="AddHandler cgi-script .cgi";
|
||||
if(s==103)ins="Options +ExecCGI";
|
||||
if(s==104)ins="Options +Indexes";
|
||||
if(s==105)ins="ErrorDocument 400 /errordocument.html";
|
||||
if(s==106)ins="# (macht aus http://domain.de/xyz.html ein\n# http://domain.de/main.php?xyz)\nRewriteEngine on\nRewriteBase /\nRewriteRule ^([a-z]+)\.html$ /main.php?$1 [R,L]";
|
||||
if(s==107)ins="Deny from IPADRESS\nAllow from IPADRESS";
|
||||
if(s==108)ins="Redirect /service http://foo2.bar.com/service";
|
||||
if(s==109)ins="ErrorLog /path/logfile"
|
||||
hta_content.value+="\n"+ins;
|
||||
}
|
||||
/*]]>*/
|
||||
</script>
|
||||
<div id="content">
|
||||
<h2>{L_HTACC_EDIT}</h2>
|
||||
<form action="index.php?p=home&action=edithtaccess" method="post" id="protection_edit">
|
||||
|
||||
<p>
|
||||
<a class="Formbutton" href="index.php?p=home">{ICON_ARROW_LEFT} {L_HOME}</a>
|
||||
<br class="clear" />
|
||||
{L_HTACC_WARNING}<br />
|
||||
<br />
|
||||
</p>
|
||||
<table class="bdr">
|
||||
<!-- BEGIN HTA_SAVED_SUCCESSFULLY -->
|
||||
<tr><td colspan="2"><p class="success">{L_FILE_SAVED_SUCCESSFULLY}</td></tr>
|
||||
<!-- END HTA_SAVED_SUCCESSFULLY -->
|
||||
|
||||
<!-- BEGIN HTA_SAVED_UNSUCCESSFULLY -->
|
||||
<tr><td colspan="2"><p class="error">{L_FILE_SAVED_UNSUCCESSFULLY}</td></tr>
|
||||
<!-- END HTA_SAVED_UNSUCCESSFULLY -->
|
||||
|
||||
<!-- BEGIN ERROR_OPENING_HTACCESS -->
|
||||
<tr><td colspan="2"><p class="error">{L_FILE_OPEN_ERROR}</p></td></tr>
|
||||
<!-- END ERROR_OPENING_HTACCESS -->
|
||||
|
||||
<tr>
|
||||
<td style="width:70%;">
|
||||
<textarea rows="25" cols="40" class="hta_content" name="hta_content" id="hta_content">{HTA_CONTENT}</textarea>
|
||||
</td>
|
||||
<td valign="top">
|
||||
<h3>Presets</h3>
|
||||
<strong>{L_PROVIDER}</strong>
|
||||
<a class="Formbutton" href="javascript:insertHTA(1)">{ICON_ARROW_LEFT} all-inkl</a><br />
|
||||
|
||||
<p><strong>{L_GENERAL}</strong></p>
|
||||
<a href="javascript:insertHTA(101)" class="Formbutton">{ICON_ARROW_LEFT} {L_HTACC_SCRIPT_EXEC}</a><br /><br />
|
||||
<a href="javascript:insertHTA(102)" class="Formbutton">{ICON_ARROW_LEFT} {L_HTACC_ADD_HANDLER}</a><br /><br />
|
||||
<a href="javascript:insertHTA(103)" class="Formbutton">{ICON_ARROW_LEFT} {L_HTACC_MAKE_EXECUTABLE}</a><br /><br />
|
||||
<a href="javascript:insertHTA(104)" class="Formbutton">{ICON_ARROW_LEFT} {L_HTACC_DIR_LISTING}</a><br /><br />
|
||||
<a href="javascript:insertHTA(105)" class="Formbutton">{ICON_ARROW_LEFT} {L_HTACC_ERROR_DOC}</a><br /><br />
|
||||
<a href="javascript:insertHTA(106)" class="Formbutton">{ICON_ARROW_LEFT} {L_HTACC_ACTIVATE_REWRITE_ENGINE}</a><br /><br />
|
||||
<a href="javascript:insertHTA(107)" class="Formbutton">{ICON_ARROW_LEFT} {L_HTACC_DENY_ALLOW}</a><br /><br />
|
||||
<a href="javascript:insertHTA(108)" class="Formbutton">{ICON_ARROW_LEFT} {L_HTACC_REDIRECT}</a><br /><br />
|
||||
<a href="javascript:insertHTA(109)" class="Formbutton">{ICON_ARROW_LEFT} {L_ERROR_LOG}</a><br /><br />
|
||||
<a href="http://httpd.apache.org/docs/2.0/mod/directives.html" class="Formbutton new-window">{ICON_SEARCH} {L_HTACC_EXAMPLES}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<br />
|
||||
<a href="#" class="Formbutton" onclick="$('protection_edit').submit();" name="save">{ICON_SAVE} {L_SAVE}</a>
|
||||
<a href="#" class="Formbutton" onclick="$('protection_edit').reset();">{ICON_DELETE} {L_RESET}</a>
|
||||
<a href="#" class="Formbutton" onclick="self.location.href='index.php?p=home&action=edithtaccess'">{ICON_OPEN_FILE} {L_RELOAD}</a>
|
||||
<br /><br />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
Laden …
Tabelle hinzufügen
Einen Link hinzufügen
In neuem Issue referenzieren