1
0
Fork 0

Struggeling with relocating

Dieser Commit ist enthalten in:
DSB 2011-06-10 21:28:27 +00:00
Commit 89ea01c429
301 geänderte Dateien mit 59926 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -0,0 +1,45 @@
<table class="bdr" cellpadding="0" cellspacing="0" style="width:700px;">
<tr class="dbrow">
<td>{L_STEP} 1: <span class="small">{L_SELECT_LANGUAGE} ({LANGUAGE})</span> {ICON_OK}</td>
<td>{L_STEP} 2: <span class="small">{L_CHECK_DIRS}</span></td>
<td>{L_STEP} 3: <span class="small">{L_DBPARAMETER}</span>
<!-- BEGIN OK -->
{ICON_OK}
<!-- END OK -->
</td>
</tr>
</table>
<br />
<h3>{L_STEP} 2: {L_CREATEDIRS}</h3>
<form action="install.php?MySQLDumper={SESSION_ID}&amp;phase=1" method="post">
<table class="bdr" cellpadding="0" cellspacing="0" style="width:700px;">
<!-- BEGIN SAFE_MODE_ON -->
<tr>
<td colspan="4" style="padding:10px;"><br /><span class="error">{L_SAFEMODEDESC}</span><br /><br /></td>
</tr>
<!-- END SAFE_MODE_ON -->
<tr class="thead">
<th>{L_DIR}</th>
<th>{L_RECHTE}</th>
<th>{L_EXISTS}</th>
<th>{L_IS_WRITABLE}</th>
</tr>
<!-- BEGIN DIR -->
<tr>
<td><strong>{DIR.NAME}</strong></td>
<td class="center">{DIR.CHMOD}</td>
<td class="center">{DIR.ICON_EXISTS}</td>
<td class="center">{DIR.ICON_IS_WRITABLE}</td>
</tr>
<!-- END DIR -->
<tr>
<td colspan="4" style="text-align:center;">
<br />
<input class="Formbutton" type="submit" name="dir_check" value=" {L_CHECK_DIRS} " />
<br /><br />
</td>
</tr>
</table>
</form>

108
tpl/install/db_parameter.tpl Normale Datei
Datei anzeigen

@ -0,0 +1,108 @@
<table class="bdr" cellpadding="0" cellspacing="0" style="width:700px;">
<tr class="dbrow">
<td>{L_STEP} 1: <span class="small">{L_SELECT_LANGUAGE} ({LANGUAGE})</span> {ICON_OK}</td>
<td>{L_STEP} 2: <span class="small">{L_CHECK_DIRS}</span> {ICON_OK}</td>
<td>{L_STEP} 3: <span class="small">{L_DBPARAMETER}</span>
<!-- BEGIN OK -->
{ICON_OK}
<!-- END OK -->
</td>
</tr>
</table>
<h3>{L_STEP} 3: {L_DBPARAMETER}</h3>
<form action="install.php?MySQLDumper={SESSION_ID}&amp;phase=2" method="post">
<table class="bdr" cellpadding="0" cellspacing="0" style="width:700px;">
<!-- BEGIN CONTINUE -->
<tr class="thead">
<td colspan="5" style="text-align:center;">
<br />
<a class="Formbutton" href="install.php?MySQLDumper={SESSION_ID}&amp;phase=3">
{ICON_SAVE} {CONTINUE.SAVE_AND_CONTINUE}
</a><br class="clear" /><br />
</td>
</tr>
<!-- END CONTINUE -->
<tr class="dbrow">
<td>{L_DB_HOST}:</td>
<td>
<input class="text" type="text" name="dbhost" value="{DB_HOST}" style="width:250px" maxlength="100" />
</td>
</tr>
<tr class="dbrow1">
<td>{L_DB_USER}:</td>
<td><input class="text" type="text" name="dbuser" value="{DB_USER}" style="width:250px" maxlength="100" /></td>
</tr>
<tr class="dbrow">
<td>{L_DB_PASS}:</td>
<td><input class="text" type="password" name="dbpass" value="{DB_PASS}" style="width:250px" maxlength="100" /></td>
</tr>
<tr class="dbrow1">
<td>* {L_DB}:<p class="small">({L_ENTER_DB_INFO})</p></td>
<td><input class="text" type="text" name="dbmanual" value="{DB_MANUAL}" style="width:250px" maxlength="100" /></td>
</tr>
<tr class="dbrow">
<td>{L_PORT}:
<br /><span class="small">{L_INSTALL_HELP_PORT}</span>
</td>
<td><input class="text" type="text" name="dbport" value="{DB_PORT}" style="width:50px" maxlength="5" /></td>
</tr>
<tr class="dbrow1">
<td>{L_SOCKET}:
<br /><span class="small">{L_INSTALL_HELP_SOCKET}</span>
</td>
<td><input class="text" type="text" name="dbsocket" value="{DB_SOCKET}" style="width:250px" maxlength="255" />
</td>
</tr>
<tr class="dbrow">
<td>{L_TESTCONNECTION}:</td>
<td><input type="submit" name="dbconnect" value="{L_CONNECTTOMYSQL}" class="Formbutton" /></td>
</tr>
</table>
</form>
<br />
<table class="bdr" cellpadding="0" cellspacing="0" style="width:700px;">
<!-- BEGIN CONNECTION_ERROR -->
<tr>
<td colspan="5">
<br />{CONNECTION_ERROR.MSG}<br />
</td>
</tr>
<!-- END CONNECTION_ERROR -->
<!-- BEGIN CONNECTION_OK -->
<tr class="thead">
<th colspan="5">{ICON_OK} {L_DBCONNECTION}</th>
</tr>
<tr class="dbrow">
<td colspan="5" class="small success">{CONNECTION_OK.RESULT}</td>
</tr>
<!-- END CONNECTION_OK -->
<!-- BEGIN CONNECTION_OK_BUT_NO_DB -->
<tr><td colspan="5">{ICON_OK} {L_NO_DB_FOUND_INFO}</td></tr>
<tr>
<td colspan="5" style="text-align:center">
<form action="install.php?MySQLDumper={SESSION_ID}&amp;phase=3" method="post">
<button type="submit" name="submit" class="Formbutton">{ICON_OK} {L_SAVEANDCONTINUE}</button>
</form>
</td>
</tr>
<!-- END CONNECTION_OK_BUT_NO_DB -->
<!-- BEGIN CONTINUE -->
<tr class="thead">
<td colspan="5" style="text-align:center;">
<br />
<a class="Formbutton" href="install.php?phase=3&amp;MySQLDumper={SESSION_ID}">
{ICON_SAVE} {CONTINUE.SAVE_AND_CONTINUE}
</a><br class="clear" /><br />
</td>
</tr>
<!-- END CONTINUE -->
</table>
<br />

37
tpl/install/header.tpl Normale Datei
Datei anzeigen

@ -0,0 +1,37 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="{LANGUAGE}" xml:lang="{LANGUAGE}">
<head>
<meta http-equiv="content-language" content="{LANGUAGE}" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-script-type" content="text/javascript" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />
<title>MySQLDumper {L_VERSION} {MSD_VERSION} - Installation</title>
<meta name="author" content="Daniel Schlichtholz" />
<meta name="robots" content="noindex,nofollow" />
<link rel="stylesheet" type="text/css" media="screen,print" href="css/msd/style.css" />
<script type="text/javascript" src="js/script.js?v4"></script>
<script type="text/javascript" src="js/prototype/prototype.js" charset="utf-8"></script>
<script type="text/javascript" src="js/scriptaculous/lib/scriptaculous.js" charset="utf-8"></script>
</head>
<body>
<div id="container">
<div id="header">
<h1><img src="css/msd/pics/h1_logo.gif" alt="" /><br />{L_INSTALL}: {L_MSD_VERSION} {MSD_VERSION}</h1>
</div>
<div id="fullcontent">

Datei anzeigen

@ -0,0 +1,148 @@
<script type="text/javascript">
/*<![CDATA[*/
var selected_language='{LANGUAGE}';
function set_button(selected_lang,reload_page) {
switch(selected_lang)
{
<!-- BEGIN LANG -->
case "{LANG.LANG}":
document.getElementById("install_button1").innerHTML = '{LANG.INSTALL_BUTTON_VALUE}';
document.getElementById("install_button2").innerHTML = '{LANG.INSTALL_BUTTON_VALUE}';
document.getElementById("lang_"+selected_lang).checked = true;
selected_language=selected_lang;
break;
<!-- END LANG -->
}
if (reload_page==true) window.document.location.href='install.php?MySQLDumper={SESSION_ID}&language='+selected_language;
}
function download_language_files(language)
{
$('download').appear({ duration: 0.2 });
$('download-messages').innerHTML='';
$('language').innerHTML=language;
get_language_files(language);
}
function get_language_files(language)
{
$('ajax_loader').style.display='inline';
new Ajax.Request('ajax/install_get_language_files.php?MySQLDumper={SESSION_ID}&l='+language+'&v={MSD_VERSION}', { method:'get',
onSuccess: function(transport,json){
var json = transport.responseText.evalJSON(true);
parseResponse(json,language);
},
onFailure: function(){ alert('Something with the Ajax-Request went wrong...') }
});
}
function parseResponse(json,language)
{
if (json['message']) $('download-messages').innerHTML+= json['message'];
if (json['in_progress']) get_language_files(language);
else
{
$('ajax_loader').style.display='none';
if (json['error']==1)
{
$('close_button').style.visibility='visible';
}
else
{
set_button(language);
window.document.location.href='install.php?MySQLDumper={SESSION_ID}&language='+selected_language;
}
}
$('download-messages').scrollTop = $('download-messages').scrollHeight;
}
/*]]>*/
</script>
<table class="bdr" cellpadding="0" cellspacing="0" style="width:700px;">
<tr class="dbrow">
<td>{L_STEP} 1: <span class="small">{L_SELECT_LANGUAGE} ({LANGUAGE})</span> {ICON_OK}</td>
<td>{L_STEP} 2: <span class="small">{L_CHECK_DIRS}</span></td>
<td>{L_STEP} 3: <span class="small">{L_DBPARAMETER}</span></td>
</tr>
</table>
<br />
<h3>{L_STEP} 1: {L_SELECT_LANGUAGE} ({LANGUAGE})</h3>
<form action="install.php?MySQLDumper={SESSION_ID}&amp;phase=1" method="post" id="langform">
<table class="bdr" style="width:700px;" cellpadding="0" cellspacing="0">
<tr class="thead">
<td colspan="5" style="text-align:center;">
<button style="margin:12px;" type="submit" name="submit" class="Formbutton">
{ICON_SAVE} <span id="install_button1">Install</span>
</button>
<!-- BEGIN FSOCKOPEN_DISABLED -->
<br /><p class="message"><strong>{L_MESSAGE}:</strong>
<br />{L_INFO_FSOCKOPEN_DISABLED}</p>
<br />
<!-- END FSOCKOPEN_DISABLED -->
</td>
</tr>
<tr class="thead">
<th class="right">#</th>
<th>{L_LANGUAGE}</th>
<th colspan="2">{L_STATUS}</th>
<th>{L_ACTION}</th>
</tr>
<!-- BEGIN LANG -->
<tr class="{LANG.ROWCLASS}">
<td class="right">{LANG.NR}.</td>
<td class="nowrap">
<div id="lang_line_{LANG.NR}">
<input type="radio" class="radio" name="language" id="lang_{LANG.LANG}" value="{LANG.LANG}"
onclick="set_button('{LANG.LANG}',true);"{LANG.RADIO_DISABLED} />
<label for="lang_{LANG.LANG}">
<img src="language/flags/{LANG.LANG}.gif" alt="" width="25" height="15" style="padding:6px 12px 0 2px;" />{LANG.NAME}
</label>
</div>
</td>
<!-- BEGIN INSTALLED -->
<td style="padding-top:6px;">{ICON_OK}</td>
<td>{LANG.INSTALLED.LANG_INSTALLED}</td>
<!-- END INSTALLED -->
<!-- BEGIN NOT_INSTALLED -->
<td>{ICON_NOT_OK}</td>
<td>Not installed</td>
<!-- END NOT_INSTALLED -->
<td>
<button type="button" class="Formbutton"{LANG.DOWNLOAD_DISABLED}
onclick="if (!confirm('Download language pack for language \'{LANG.LANG}\'?')) return false;download_language_files('{LANG.LANG}')">
{ICON_DOWNLOAD} {LANG.LANG_DOWNLOAD_LANGUAGE_PACK}
</button>
</td>
</tr>
<!-- END LANG -->
<tr class="thead">
<td colspan="5" style="text-align:center;">
<button style="margin:12px;" type="submit" name="submit" class="Formbutton">
{ICON_SAVE} <span id="install_button2">Install</span>
</button>
</td>
</tr>
</table>
</form>
<div id="download" style="text-align:left;display:none;">
Downloading language files for language '<span id="language"></span>':
<span style="float:right" id="ajax_loader"><img src="./css/msd/icons/ajax-loader.gif" title="" alt="" /></span>
<br /><br />
<div id="download-messages" style="overflow:auto"></div>
<div id="close_button" style="visibility:hidden;">
<button class="Formbutton" onclick="$('download').fade({ duration: 0.5, from: 1, to: 0 });">{ICON_CLOSE} Close</button>
</div>
</div>
<script type="text/javascript">
/*<![CDATA[*/
set_button("{LANGUAGE}",false);
<!-- BEGIN SET_OPACITY -->
new Effect.Opacity('lang_line_{SET_OPACITY.NR}', {duration:1.2, from:1, to:0.4});
<!-- END SET_OPACITY -->
/*]]>*/
</script>