VPN-Management-GUI 2.0.3 porting start
BIN
Modules/Contact/img/avatar_christoph.gif
Executable file
After Width: | Height: | Size: 5.8 KiB |
BIN
Modules/Contact/img/avatar_josua.png
Executable file
After Width: | Height: | Size: 16 KiB |
BIN
Modules/Contact/img/avatar_mario.png
Executable file
After Width: | Height: | Size: 10 KiB |
66
Modules/Contact/index.php
Executable file
@@ -0,0 +1,66 @@
|
||||
<!-- MAIN CONTENT BEGINN ################################################################################ -->
|
||||
<div class="art-content">
|
||||
<div class="art-Post">
|
||||
<div class="art-Post-body">
|
||||
<div class="art-Post-inner">
|
||||
<h2 class="art-PostHeaderIcon-wrapper">
|
||||
<span class="art-PostHeader">Contact</span>
|
||||
</h2>
|
||||
<div class="art-PostContent">
|
||||
<!-- h44z -->
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<h4>Christoph Haas</h4>
|
||||
<p># Initiator des Projekts</p>
|
||||
<p># Webprogrammierung</p>
|
||||
<p># Serverkonfiguration</p>
|
||||
<p>Klasse: 5bHELT</p>
|
||||
<p>Email:
|
||||
<a href="mailto:antispam.org" onClick="Mailto(this,'christoph','haas2','students.htlinn','ac.at');">Christoph Haas</a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<img src="/Modules/Contact/img/avatar_christoph.gif" width="90" height="90" />
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Mario -->
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<h4>Mario Stöckholzer</h4>
|
||||
<p># Serverkonfiguration</p>
|
||||
<p># Scriptentwickung</p>
|
||||
<p>Klasse: 5bHELT</p>
|
||||
<p>Email:
|
||||
<a href="mailto:antispam.org" onClick="Mailto(this,'mario','stoeckholzer','students.htlinn','ac.at');">Mario Stöckholzer</a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<img src="/Modules/Contact/img/avatar_mario.png" width="90" height="90" />
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Mr Kucher -->
|
||||
<tr>
|
||||
<td>
|
||||
<h4>Josua Kucher</h4>
|
||||
<p># Beta-tester</p>
|
||||
<p># Serverbesitzer</p>
|
||||
<p># Art and Design</p>
|
||||
<p>Klasse: 5bHELT</p>
|
||||
<p>Email:
|
||||
<a href="mailto:antispam.org" onClick="Mailto(this,'josua','kucher','students.htlinn','ac.at');">Josua Kucher</a>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<img src="/Modules/Contact/img/avatar_josua.png" width="90" height="90" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END CONTENT BEGINN ################################################################################# -->
|
1
Modules/Downloads/config/.htaccess
Executable file
@@ -0,0 +1 @@
|
||||
deny from all
|
3
Modules/Downloads/config/.htusers.php
Executable file
@@ -0,0 +1,3 @@
|
||||
<?php $GLOBALS["users"]=array(
|
||||
array("admin","9628d0d187029e6337baa86780b2abb6",".","http://localhost",1,"",7,1),
|
||||
); ?>
|
37
Modules/Downloads/config/conf.php
Executable file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
//------------------------------------------------------------------------------
|
||||
// Configuration Variables
|
||||
|
||||
$GLOBALS["require_login"] = false;
|
||||
|
||||
// language: (en, de, es, fr, nl, ru)
|
||||
$GLOBALS["language"] = "en";
|
||||
|
||||
// the filename of the script: (you rarely need to change this)
|
||||
$GLOBALS["script_name"] = "http://".$GLOBALS['__SERVER']['HTTP_HOST'].$GLOBALS['__SERVER']["PHP_SELF"];
|
||||
|
||||
// allow Zip, Tar, TGz -> Only (experimental) Zip-support
|
||||
$GLOBALS["zip"] = false; //function_exists("gzcompress");
|
||||
$GLOBALS["tar"] = false;
|
||||
$GLOBALS["tgz"] = false;
|
||||
|
||||
// QuiXplorer version:
|
||||
$GLOBALS["version"] = "2.3";
|
||||
//------------------------------------------------------------------------------
|
||||
// Global User Variables (used when $require_login==false)
|
||||
|
||||
// the home directory for the filemanager: (use '/', not '\' or '\\', no trailing '/')
|
||||
$GLOBALS["home_dir"] = db_getconfval("downdir");
|
||||
|
||||
// the url corresponding with the home directory: (no trailing '/')
|
||||
$GLOBALS["home_url"] = "http://localhost/explorer";
|
||||
|
||||
// show hidden files in QuiXplorer: (hide files starting with '.', as in Linux/UNIX)
|
||||
$GLOBALS["show_hidden"] = false;
|
||||
|
||||
// filenames not allowed to access: (uses PCRE regex syntax)
|
||||
$GLOBALS["no_access"] = "^\.ht";
|
||||
|
||||
// user permissions bitfield: (1=modify, 2=password, 4=admin, add the numbers)
|
||||
$GLOBALS["permissions"] = 7;
|
||||
?>
|
78
Modules/Downloads/config/mimes.php
Executable file
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
//------------------------------------------------------------------------------
|
||||
// editable files:
|
||||
$GLOBALS["editable_ext"]=array(
|
||||
"\.txt$|\.php$|\.php3$|\.phtml$|\.inc$|\.sql$|\.pl$",
|
||||
"\.htm$|\.html$|\.shtml$|\.dhtml$|\.xml$",
|
||||
"\.js$|\.css$|\.cgi$|\.cpp$\.c$|\.cc$|\.cxx$|\.hpp$|\.h$",
|
||||
"\.pas$|\.p$|\.java$|\.py$|\.sh$\.tcl$|\.tk$"
|
||||
);
|
||||
//------------------------------------------------------------------------------
|
||||
// image files:
|
||||
$GLOBALS["images_ext"]="\.png$|\.bmp$|\.jpg$|\.jpeg$|\.gif$";
|
||||
//------------------------------------------------------------------------------
|
||||
// mime types: (description,image,extension)
|
||||
$GLOBALS["super_mimes"]=array(
|
||||
// dir, exe, file
|
||||
"dir" => array($GLOBALS["mimes"]["dir"],"dir.gif"),
|
||||
"exe" => array($GLOBALS["mimes"]["exe"],"exe.gif","\.exe$|\.com$|\.bin$"),
|
||||
"file" => array($GLOBALS["mimes"]["file"],"file.gif")
|
||||
);
|
||||
$GLOBALS["used_mime_types"]=array(
|
||||
// text
|
||||
"text" => array($GLOBALS["mimes"]["text"],"txt.gif","\.txt$"),
|
||||
|
||||
// programming
|
||||
"php" => array($GLOBALS["mimes"]["php"],"php.gif","\.php$|\.php3$|\.phtml$|\.inc$"),
|
||||
"sql" => array($GLOBALS["mimes"]["sql"],"src.gif","\.sql$"),
|
||||
"perl" => array($GLOBALS["mimes"]["perl"],"pl.gif","\.pl$"),
|
||||
"html" => array($GLOBALS["mimes"]["html"],"html.gif","\.htm$|\.html$|\.shtml$|\.dhtml$|\.xml$"),
|
||||
"js" => array($GLOBALS["mimes"]["js"],"js.gif","\.js$"),
|
||||
"css" => array($GLOBALS["mimes"]["css"],"src.gif","\.css$"),
|
||||
"cgi" => array($GLOBALS["mimes"]["cgi"],"exe.gif","\.cgi$"),
|
||||
//"py" => array($GLOBALS["mimes"]["py"],"py.gif","\.py$"),
|
||||
//"sh" => array($GLOBALS["mimes"]["sh"],"sh.gif","\.sh$"),
|
||||
// C++
|
||||
"cpps" => array($GLOBALS["mimes"]["cpps"],"cpp.gif","\.cpp$|\.c$|\.cc$|\.cxx$"),
|
||||
"cpph" => array($GLOBALS["mimes"]["cpph"],"h.gif","\.hpp$|\.h$"),
|
||||
// Java
|
||||
"javas" => array($GLOBALS["mimes"]["javas"],"java.gif","\.java$"),
|
||||
"javac" => array($GLOBALS["mimes"]["javac"],"java.gif","\.class$|\.jar$"),
|
||||
// Pascal
|
||||
"pas" => array($GLOBALS["mimes"]["pas"],"src.gif","\.p$|\.pas$"),
|
||||
|
||||
// images
|
||||
"gif" => array($GLOBALS["mimes"]["gif"],"image.gif","\.gif$"),
|
||||
"jpg" => array($GLOBALS["mimes"]["jpg"],"image.gif","\.jpg$|\.jpeg$"),
|
||||
"bmp" => array($GLOBALS["mimes"]["bmp"],"image.gif","\.bmp$"),
|
||||
"png" => array($GLOBALS["mimes"]["png"],"image.gif","\.png$"),
|
||||
|
||||
// compressed
|
||||
"zip" => array($GLOBALS["mimes"]["zip"],"zip.gif","\.zip$"),
|
||||
"tar" => array($GLOBALS["mimes"]["tar"],"tar.gif","\.tar$"),
|
||||
"gzip" => array($GLOBALS["mimes"]["gzip"],"tgz.gif","\.tgz$|\.gz$"),
|
||||
"bzip2" => array($GLOBALS["mimes"]["bzip2"],"tgz.gif","\.bz2$"),
|
||||
"rar" => array($GLOBALS["mimes"]["rar"],"tgz.gif","\.rar$"),
|
||||
//"deb" => array($GLOBALS["mimes"]["deb"],"package.gif","\.deb$"),
|
||||
//"rpm" => array($GLOBALS["mimes"]["rpm"],"package.gif","\.rpm$"),
|
||||
|
||||
// music
|
||||
"mp3" => array($GLOBALS["mimes"]["mp3"],"mp3.gif","\.mp3$"),
|
||||
"wav" => array($GLOBALS["mimes"]["wav"],"sound.gif","\.wav$"),
|
||||
"midi" => array($GLOBALS["mimes"]["midi"],"midi.gif","\.mid$"),
|
||||
"real" => array($GLOBALS["mimes"]["real"],"real.gif","\.rm$|\.ra$|\.ram$"),
|
||||
//"play" => array($GLOBALS["mimes"]["play"],"mp3.gif","\.pls$|\.m3u$"),
|
||||
|
||||
// movie
|
||||
"mpg" => array($GLOBALS["mimes"]["mpg"],"video.gif","\.mpg$|\.mpeg$"),
|
||||
"mov" => array($GLOBALS["mimes"]["mov"],"video.gif","\.mov$"),
|
||||
"avi" => array($GLOBALS["mimes"]["avi"],"video.gif","\.avi$"),
|
||||
"flash" => array($GLOBALS["mimes"]["flash"],"flash.gif","\.swf$"),
|
||||
|
||||
// Micosoft / Adobe
|
||||
"word" => array($GLOBALS["mimes"]["word"],"word.gif","\.doc$"),
|
||||
"excel" => array($GLOBALS["mimes"]["excel"],"spread.gif","\.xls$"),
|
||||
"pdf" => array($GLOBALS["mimes"]["pdf"],"pdf.gif","\.pdf$")
|
||||
);
|
||||
//------------------------------------------------------------------------------
|
||||
?>
|
10
Modules/Downloads/getdown.php
Executable file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
ob_start(); // prevent unwanted output
|
||||
require $_SERVER["DOCUMENT_ROOT"]."/Site/mysql.php";
|
||||
require $_SERVER["DOCUMENT_ROOT"]."/Modules/Downloads/include/init.php";
|
||||
require $_SERVER["DOCUMENT_ROOT"]."/Modules/Downloads/include/fun_down.php";
|
||||
ob_end_clean(); // get rid of cached unwanted output
|
||||
download_item($GLOBALS["dir"], $GLOBALS["item"]);
|
||||
ob_start(false); // prevent unwanted output
|
||||
exit;
|
||||
?>
|
123
Modules/Downloads/getfile.php
Executable file
@@ -0,0 +1,123 @@
|
||||
<?php
|
||||
$dir = $_GET[dir];
|
||||
$item = $_GET[file];
|
||||
|
||||
$dir = substr($dir,10,strlen($dir)-17);
|
||||
$item = substr($item,1,strlen($item)-2);
|
||||
$abs_item = get_abs_item($dir,$item);
|
||||
|
||||
//SECURITY FIXX ------------------------------
|
||||
//um falscheingaben beim pfad/datei abzufangen
|
||||
if(!get_show_item($dir, $item))
|
||||
{
|
||||
$abs_dir = "DONTTRYTOHACK";
|
||||
echo "<h1>DONT TRY TO HACK!</h1><br>";
|
||||
echo "<b>Your IP is logged, an administrator has been informed!</b><br>";
|
||||
echo "Script written by h44z";
|
||||
exit;
|
||||
}
|
||||
elseif(down_home($abs_dir)==true)
|
||||
{
|
||||
$abs_dir = "DONTTRYTOHACK";
|
||||
echo "<h1>DONT TRY TO HACK!</h1><br>";
|
||||
echo "<b>Your IP is logged, an administrator has been informed!</b><br>";
|
||||
echo "Script written by h44z";
|
||||
exit;
|
||||
}
|
||||
//SECURITY FIXX ------------------------------
|
||||
else
|
||||
{
|
||||
$abs_dir = $abs_dir;
|
||||
}
|
||||
|
||||
|
||||
ob_start();
|
||||
$browser=id_browser();
|
||||
header('Content-Type: '.(($browser=='IE' || $browser=='OPERA')?
|
||||
'application/octetstream':'application/octet-stream'));
|
||||
header('Expires: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
header('Content-Transfer-Encoding: binary');
|
||||
header('Content-Length: '.filesize($abs_item));
|
||||
if($browser=='IE') {
|
||||
header('Content-Disposition: attachment; filename="'.$item.'"');
|
||||
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
|
||||
header('Pragma: public');
|
||||
} else {
|
||||
header('Content-Disposition: attachment; filename="'.$item.'"');
|
||||
header('Cache-Control: no-cache, must-revalidate');
|
||||
header('Pragma: no-cache');
|
||||
}
|
||||
ob_end_flush();
|
||||
|
||||
|
||||
|
||||
function get_abs_dir($dir)
|
||||
{ // get absolute path
|
||||
$abs_dir="/home/christoph/explorer";
|
||||
if($dir!="") $abs_dir.="/".$dir;
|
||||
return $abs_dir;
|
||||
}
|
||||
|
||||
function get_abs_item($dir, $item)
|
||||
{ // get absolute file+path
|
||||
return get_abs_dir($dir)."/".$item;
|
||||
}
|
||||
|
||||
function id_browser() {
|
||||
$browser=$GLOBALS['__SERVER']['HTTP_USER_AGENT'];
|
||||
|
||||
if(ereg('Opera(/| )([0-9].[0-9]{1,2})', $browser)) {
|
||||
return 'OPERA';
|
||||
} else if(ereg('MSIE ([0-9].[0-9]{1,2})', $browser)) {
|
||||
return 'IE';
|
||||
} else if(ereg('OmniWeb/([0-9].[0-9]{1,2})', $browser)) {
|
||||
return 'OMNIWEB';
|
||||
} else if(ereg('(Konqueror/)(.*)', $browser)) {
|
||||
return 'KONQUEROR';
|
||||
} else if(ereg('Mozilla/([0-9].[0-9]{1,2})', $browser)) {
|
||||
return 'MOZILLA';
|
||||
} else {
|
||||
return 'OTHER';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//String contains funktion
|
||||
function contains($str, $content, $ignorecase=true)
|
||||
{
|
||||
if ($ignorecase){
|
||||
$str = strtolower($str);
|
||||
$content = strtolower($content);
|
||||
}
|
||||
return strpos($content,$str) ? true : false;
|
||||
}
|
||||
|
||||
function get_show_item($dir, $item) { // show this file?
|
||||
if($item == "..") return false;
|
||||
|
||||
if("^\.ht"!="" && @eregi("^\.ht",$item)) return false;
|
||||
|
||||
if(false==false) {
|
||||
$dirs=explode("/",$dir);
|
||||
foreach($dirs as $i) if(substr($i,0,1)==".") return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function down_home($abs_dir) { // dir deeper than home?
|
||||
$real_home = @realpath("/home/christoph/explorer");
|
||||
$real_dir = @realpath($abs_dir);
|
||||
|
||||
if($real_home===false || $real_dir===false) {
|
||||
if(@eregi("\\.\\.",$abs_dir)) return false;
|
||||
} else if(strcmp($real_home,@substr($real_dir,0,strlen($real_home)))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@readfile($abs_item);
|
||||
exit;
|
||||
|
||||
?>
|
BIN
Modules/Downloads/img/_.gif
Normal file
After Width: | Height: | Size: 43 B |
BIN
Modules/Downloads/img/__copy.gif
Normal file
After Width: | Height: | Size: 270 B |
BIN
Modules/Downloads/img/__cut.gif
Normal file
After Width: | Height: | Size: 585 B |
BIN
Modules/Downloads/img/__paste.gif
Normal file
After Width: | Height: | Size: 635 B |
BIN
Modules/Downloads/img/_archive.gif
Normal file
After Width: | Height: | Size: 649 B |
BIN
Modules/Downloads/img/_arrowdown.gif
Normal file
After Width: | Height: | Size: 70 B |
BIN
Modules/Downloads/img/_arrowup.gif
Normal file
After Width: | Height: | Size: 70 B |
BIN
Modules/Downloads/img/_copy.gif
Normal file
After Width: | Height: | Size: 591 B |
BIN
Modules/Downloads/img/_copy_.gif
Normal file
After Width: | Height: | Size: 587 B |
BIN
Modules/Downloads/img/_delete.gif
Normal file
After Width: | Height: | Size: 159 B |
BIN
Modules/Downloads/img/_delete_.gif
Normal file
After Width: | Height: | Size: 159 B |
BIN
Modules/Downloads/img/_download.gif
Normal file
After Width: | Height: | Size: 394 B |
BIN
Modules/Downloads/img/_download_.gif
Normal file
After Width: | Height: | Size: 391 B |
BIN
Modules/Downloads/img/_edit.gif
Normal file
After Width: | Height: | Size: 628 B |
BIN
Modules/Downloads/img/_edit_.gif
Normal file
After Width: | Height: | Size: 628 B |
BIN
Modules/Downloads/img/_home.gif
Normal file
After Width: | Height: | Size: 634 B |
BIN
Modules/Downloads/img/_info.gif
Normal file
After Width: | Height: | Size: 643 B |
BIN
Modules/Downloads/img/_logout.gif
Normal file
After Width: | Height: | Size: 427 B |
BIN
Modules/Downloads/img/_move.gif
Normal file
After Width: | Height: | Size: 598 B |
BIN
Modules/Downloads/img/_move_.gif
Normal file
After Width: | Height: | Size: 592 B |
BIN
Modules/Downloads/img/_refresh.gif
Normal file
After Width: | Height: | Size: 641 B |
BIN
Modules/Downloads/img/_search.gif
Normal file
After Width: | Height: | Size: 630 B |
BIN
Modules/Downloads/img/_up.gif
Normal file
After Width: | Height: | Size: 640 B |
BIN
Modules/Downloads/img/_upload.gif
Normal file
After Width: | Height: | Size: 394 B |
BIN
Modules/Downloads/img/_upload_.gif
Normal file
After Width: | Height: | Size: 389 B |
BIN
Modules/Downloads/img/cpp.gif
Normal file
After Width: | Height: | Size: 621 B |
BIN
Modules/Downloads/img/dir.gif
Normal file
After Width: | Height: | Size: 592 B |
BIN
Modules/Downloads/img/exe.gif
Normal file
After Width: | Height: | Size: 646 B |
BIN
Modules/Downloads/img/file.gif
Normal file
After Width: | Height: | Size: 359 B |
BIN
Modules/Downloads/img/flash.gif
Normal file
After Width: | Height: | Size: 388 B |
BIN
Modules/Downloads/img/h.gif
Normal file
After Width: | Height: | Size: 626 B |
BIN
Modules/Downloads/img/html.gif
Normal file
After Width: | Height: | Size: 659 B |
BIN
Modules/Downloads/img/image.gif
Normal file
After Width: | Height: | Size: 607 B |
BIN
Modules/Downloads/img/java.gif
Normal file
After Width: | Height: | Size: 625 B |
BIN
Modules/Downloads/img/js.gif
Normal file
After Width: | Height: | Size: 610 B |
BIN
Modules/Downloads/img/midi.gif
Normal file
After Width: | Height: | Size: 632 B |
BIN
Modules/Downloads/img/mp3.gif
Normal file
After Width: | Height: | Size: 246 B |
BIN
Modules/Downloads/img/pdf.gif
Normal file
After Width: | Height: | Size: 372 B |
BIN
Modules/Downloads/img/php.gif
Normal file
After Width: | Height: | Size: 139 B |
BIN
Modules/Downloads/img/pl.gif
Normal file
After Width: | Height: | Size: 406 B |
BIN
Modules/Downloads/img/real.gif
Normal file
After Width: | Height: | Size: 645 B |
BIN
Modules/Downloads/img/sound.gif
Normal file
After Width: | Height: | Size: 603 B |
BIN
Modules/Downloads/img/spacer.gif
Normal file
After Width: | Height: | Size: 43 B |
BIN
Modules/Downloads/img/spread.gif
Normal file
After Width: | Height: | Size: 367 B |
BIN
Modules/Downloads/img/src.gif
Normal file
After Width: | Height: | Size: 181 B |
BIN
Modules/Downloads/img/tar.gif
Normal file
After Width: | Height: | Size: 644 B |
BIN
Modules/Downloads/img/tgz.gif
Normal file
After Width: | Height: | Size: 649 B |
BIN
Modules/Downloads/img/txt.gif
Normal file
After Width: | Height: | Size: 591 B |
BIN
Modules/Downloads/img/video.gif
Normal file
After Width: | Height: | Size: 393 B |
BIN
Modules/Downloads/img/word.gif
Normal file
After Width: | Height: | Size: 372 B |
BIN
Modules/Downloads/img/zip.gif
Normal file
After Width: | Height: | Size: 119 B |
1
Modules/Downloads/include/.htaccess
Executable file
@@ -0,0 +1 @@
|
||||
deny from all
|
51
Modules/Downloads/include/error.php
Executable file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/*------------------------------------------------------------------------------
|
||||
The contents of this file are subject to the Mozilla Public License
|
||||
Version 1.1 (the "License"); you may not use this file except in
|
||||
compliance with the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS"
|
||||
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
|
||||
License for the specific language governing rights and limitations
|
||||
under the License.
|
||||
|
||||
The Original Code is error.php, released on 2003-02-21.
|
||||
|
||||
The Initial Developer of the Original Code is The QuiX project.
|
||||
|
||||
Alternatively, the contents of this file may be used under the terms
|
||||
of the GNU General Public License Version 2 or later (the "GPL"), in
|
||||
which case the provisions of the GPL are applicable instead of
|
||||
those above. If you wish to allow use of your version of this file only
|
||||
under the terms of the GPL and not to allow others to use
|
||||
your version of this file under the MPL, indicate your decision by
|
||||
deleting the provisions above and replace them with the notice and
|
||||
other provisions required by the GPL. If you do not delete
|
||||
the provisions above, a recipient may use your version of this file
|
||||
under either the MPL or the GPL."
|
||||
------------------------------------------------------------------------------*/
|
||||
/*------------------------------------------------------------------------------
|
||||
Author: The QuiX project
|
||||
quix@free.fr
|
||||
http://www.quix.tk
|
||||
http://quixplorer.sourceforge.net
|
||||
|
||||
Comment:
|
||||
QuiXplorer Version 2.3
|
||||
Error Reporting File
|
||||
|
||||
Have Fun...
|
||||
------------------------------------------------------------------------------*/
|
||||
//------------------------------------------------------------------------------
|
||||
function show_error($error,$extra=NULL) { // show error-message
|
||||
show_header($GLOBALS["error_msg"]["error"]);
|
||||
echo "<CENTER><BR>".$GLOBALS["error_msg"]["error"].":"."<BR><BR>\n";
|
||||
echo $error."\n<BR><BR><A HREF=\"javascript:window.history.back()\">";
|
||||
echo $GLOBALS["error_msg"]["back"]."</A>";
|
||||
if($extra!=NULL) echo " - ".$extra;
|
||||
echo "<BR><BR></CENTER>\n";
|
||||
exit;
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
?>
|
32
Modules/Downloads/include/fun_down.php
Executable file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
//------------------------------------------------------------------------------
|
||||
function download_item($dir, $item) { // download file
|
||||
// Security Fix:
|
||||
$item=basename($item);
|
||||
|
||||
if(($GLOBALS["permissions"]&01)!=01) show_error($GLOBALS["error_msg"]["accessfunc"]);
|
||||
if(!get_is_file($dir,$item)) show_error($item.": ".$GLOBALS["error_msg"]["fileexist"]);
|
||||
if(!get_show_item($dir, $item)) show_error($item.": ".$GLOBALS["error_msg"]["accessfile"]);
|
||||
|
||||
$abs_item = get_abs_item($dir,$item);
|
||||
$browser=id_browser();
|
||||
header('Content-Type: '.(($browser=='IE' || $browser=='OPERA')?
|
||||
'application/octetstream':'application/octet-stream'));
|
||||
header('Expires: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
header('Content-Transfer-Encoding: binary');
|
||||
header('Content-Length: '.filesize($abs_item));
|
||||
if($browser=='IE') {
|
||||
header('Content-Disposition: attachment; filename="'.$item.'"');
|
||||
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
|
||||
header('Pragma: public');
|
||||
} else {
|
||||
header('Content-Disposition: attachment; filename="'.$item.'"');
|
||||
header('Cache-Control: no-cache, must-revalidate');
|
||||
header('Pragma: no-cache');
|
||||
}
|
||||
|
||||
@readfile($abs_item);
|
||||
exit;
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
?>
|
259
Modules/Downloads/include/fun_extra.php
Executable file
@@ -0,0 +1,259 @@
|
||||
<?php
|
||||
//------------------------------------------------------------------------------
|
||||
// THESE ARE NUMEROUS HELPER FUNCTIONS FOR THE OTHER INCLUDE FILES
|
||||
//------------------------------------------------------------------------------
|
||||
function make_link($_action,$_dir,$_item=NULL,$_order=NULL,$_srt=NULL,$_lang=NULL) {
|
||||
// make link to next page
|
||||
if($_action=="" || $_action==NULL) $_action="list";
|
||||
if($_dir=="") $_dir=NULL;
|
||||
if($_item=="") $_item=NULL;
|
||||
if($_order==NULL) $_order=$GLOBALS["order"];
|
||||
if($_srt==NULL) $_srt=$GLOBALS["srt"];
|
||||
if($_lang==NULL) $_lang=(isset($GLOBALS["lang"])?$GLOBALS["lang"]:NULL);
|
||||
|
||||
if($_action != "download")
|
||||
{
|
||||
$link=$GLOBALS["script_name"]."&uebergabe=".$_action;
|
||||
}
|
||||
else
|
||||
{
|
||||
$link="/Modules/Downloads/getdown.php?action=".$_action;
|
||||
}
|
||||
if($_dir!=NULL) $link.="&dir=".urlencode($_dir);
|
||||
if($_item!=NULL) $link.="&item=".urlencode($_item);
|
||||
if($_order!=NULL) $link.="&order=".$_order;
|
||||
if($_srt!=NULL) $link.="&srt=".$_srt;
|
||||
if($_lang!=NULL) $link.="&lang=".$_lang;
|
||||
|
||||
return $link;
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
function get_abs_dir($dir) { // get absolute path
|
||||
$abs_dir=$GLOBALS["home_dir"];
|
||||
if($dir!="") $abs_dir.="/".$dir;
|
||||
return $abs_dir;
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
function get_abs_item($dir, $item) { // get absolute file+path
|
||||
return get_abs_dir($dir)."/".$item;
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
function get_rel_item($dir,$item) { // get file relative from home
|
||||
if($dir!="") return $dir."/".$item;
|
||||
else return $item;
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
function get_is_file($dir, $item) { // can this file be edited?
|
||||
return @is_file(get_abs_item($dir,$item));
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
function get_is_dir($dir, $item) { // is this a directory?
|
||||
return @is_dir(get_abs_item($dir,$item));
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
function parse_file_type($dir,$item) { // parsed file type (d / l / -)
|
||||
$abs_item = get_abs_item($dir, $item);
|
||||
if(@is_dir($abs_item)) return "d";
|
||||
if(@is_link($abs_item)) return "l";
|
||||
return "-";
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
function get_file_perms($dir,$item) { // file permissions
|
||||
return @decoct(@fileperms(get_abs_item($dir,$item)) & 0777);
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
function parse_file_perms($mode) { // parsed file permisions
|
||||
if(strlen($mode)<3) return "---------";
|
||||
$parsed_mode="";
|
||||
for($i=0;$i<3;$i++) {
|
||||
// read
|
||||
if(($mode{$i} & 04)) $parsed_mode .= "r";
|
||||
else $parsed_mode .= "-";
|
||||
// write
|
||||
if(($mode{$i} & 02)) $parsed_mode .= "w";
|
||||
else $parsed_mode .= "-";
|
||||
// execute
|
||||
if(($mode{$i} & 01)) $parsed_mode .= "x";
|
||||
else $parsed_mode .= "-";
|
||||
}
|
||||
return $parsed_mode;
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
function get_file_size($dir, $item) { // file size
|
||||
return @filesize(get_abs_item($dir, $item));
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
function parse_file_size($size) { // parsed file size
|
||||
if($size >= 1073741824) {
|
||||
$size = round($size / 1073741824 * 100) / 100 . " GB";
|
||||
} elseif($size >= 1048576) {
|
||||
$size = round($size / 1048576 * 100) / 100 . " MB";
|
||||
} elseif($size >= 1024) {
|
||||
$size = round($size / 1024 * 100) / 100 . " KB";
|
||||
} else $size = $size . " Bytes";
|
||||
if($size==0) $size="-";
|
||||
|
||||
return $size;
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
function get_file_date($dir, $item) { // file date
|
||||
return @filemtime(get_abs_item($dir, $item));
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
function parse_file_date($date) { // parsed file date
|
||||
return @date($GLOBALS["date_fmt"],$date);
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
function get_is_image($dir, $item) { // is this file an image?
|
||||
if(!get_is_file($dir, $item)) return false;
|
||||
return @eregi($GLOBALS["images_ext"], $item);
|
||||
}
|
||||
//-----------------------------------------------------------------------------
|
||||
function get_is_editable($dir, $item) { // is this file editable?
|
||||
if(!get_is_file($dir, $item)) return false;
|
||||
foreach($GLOBALS["editable_ext"] as $pat) if(@eregi($pat,$item)) return true;
|
||||
return false;
|
||||
}
|
||||
//-----------------------------------------------------------------------------
|
||||
function get_mime_type($dir, $item, $query) { // get file's mimetype
|
||||
if(get_is_dir($dir, $item)) { // directory
|
||||
$mime_type = $GLOBALS["super_mimes"]["dir"][0];
|
||||
$image = $GLOBALS["super_mimes"]["dir"][1];
|
||||
|
||||
if($query=="img") return $image;
|
||||
else return $mime_type;
|
||||
}
|
||||
// mime_type
|
||||
foreach($GLOBALS["used_mime_types"] as $mime) {
|
||||
list($desc,$img,$ext) = $mime;
|
||||
if(@eregi($ext,$item)) {
|
||||
$mime_type = $desc;
|
||||
$image = $img;
|
||||
if($query=="img") return $image;
|
||||
else return $mime_type;
|
||||
}
|
||||
}
|
||||
|
||||
if((function_exists("is_executable") &&
|
||||
@is_executable(get_abs_item($dir,$item))) ||
|
||||
@eregi($GLOBALS["super_mimes"]["exe"][2],$item))
|
||||
{ // executable
|
||||
$mime_type = $GLOBALS["super_mimes"]["exe"][0];
|
||||
$image = $GLOBALS["super_mimes"]["exe"][1];
|
||||
} else { // unknown file
|
||||
$mime_type = $GLOBALS["super_mimes"]["file"][0];
|
||||
$image = $GLOBALS["super_mimes"]["file"][1];
|
||||
}
|
||||
|
||||
if($query=="img") return $image;
|
||||
else return $mime_type;
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
function get_show_item($dir, $item) { // show this file?
|
||||
if($item == "." || $item == ".." ||
|
||||
(substr($item,0,1)=="." && $GLOBALS["show_hidden"]==false)) return false;
|
||||
|
||||
if($GLOBALS["no_access"]!="" && @eregi($GLOBALS["no_access"],$item)) return false;
|
||||
|
||||
if($GLOBALS["show_hidden"]==false) {
|
||||
$dirs=explode("/",$dir);
|
||||
foreach($dirs as $i) if(substr($i,0,1)==".") return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
function copy_dir($source,$dest) { // copy dir
|
||||
$ok = true;
|
||||
|
||||
if(!@mkdir($dest,0777)) return false;
|
||||
if(($handle=@opendir($source))===false) show_error(basename($source).": ".$GLOBALS["error_msg"]["opendir"]);
|
||||
|
||||
while(($file=readdir($handle))!==false) {
|
||||
if(($file==".." || $file==".")) continue;
|
||||
|
||||
$new_source = $source."/".$file;
|
||||
$new_dest = $dest."/".$file;
|
||||
if(@is_dir($new_source)) {
|
||||
$ok=copy_dir($new_source,$new_dest);
|
||||
} else {
|
||||
$ok=@copy($new_source,$new_dest);
|
||||
}
|
||||
}
|
||||
closedir($handle);
|
||||
return $ok;
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
function remove($item) { // remove file / dir
|
||||
$ok = true;
|
||||
if(@is_link($item) || @is_file($item)) $ok=@unlink($item);
|
||||
elseif(@is_dir($item)) {
|
||||
if(($handle=@opendir($item))===false) show_error(basename($item).": ".$GLOBALS["error_msg"]["opendir"]);
|
||||
|
||||
while(($file=readdir($handle))!==false) {
|
||||
if(($file==".." || $file==".")) continue;
|
||||
|
||||
$new_item = $item."/".$file;
|
||||
if(!@file_exists($new_item)) show_error(basename($item).": ".$GLOBALS["error_msg"]["readdir"]);
|
||||
//if(!get_show_item($item, $new_item)) continue;
|
||||
|
||||
if(@is_dir($new_item)) {
|
||||
$ok=remove($new_item);
|
||||
} else {
|
||||
$ok=@unlink($new_item);
|
||||
}
|
||||
}
|
||||
|
||||
closedir($handle);
|
||||
$ok=@rmdir($item);
|
||||
}
|
||||
return $ok;
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
function get_max_file_size() { // get php max_upload_file_size
|
||||
$max = get_cfg_var("upload_max_filesize");
|
||||
if(@eregi("G$",$max)) {
|
||||
$max = substr($max,0,-1);
|
||||
$max = round($max*1073741824);
|
||||
} elseif(@eregi("M$",$max)) {
|
||||
$max = substr($max,0,-1);
|
||||
$max = round($max*1048576);
|
||||
} elseif(@eregi("K$",$max)) {
|
||||
$max = substr($max,0,-1);
|
||||
$max = round($max*1024);
|
||||
}
|
||||
|
||||
return $max;
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
function down_home($abs_dir) { // dir deeper than home?
|
||||
$real_home = @realpath($GLOBALS["home_dir"]);
|
||||
$real_dir = @realpath($abs_dir);
|
||||
|
||||
if($real_home===false || $real_dir===false) {
|
||||
if(@eregi("\\.\\.",$abs_dir)) return false;
|
||||
} else if(strcmp($real_home,@substr($real_dir,0,strlen($real_home)))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
function id_browser() {
|
||||
$browser=$GLOBALS['__SERVER']['HTTP_USER_AGENT'];
|
||||
|
||||
if(ereg('Opera(/| )([0-9].[0-9]{1,2})', $browser)) {
|
||||
return 'OPERA';
|
||||
} else if(ereg('MSIE ([0-9].[0-9]{1,2})', $browser)) {
|
||||
return 'IE';
|
||||
} else if(ereg('OmniWeb/([0-9].[0-9]{1,2})', $browser)) {
|
||||
return 'OMNIWEB';
|
||||
} else if(ereg('(Konqueror/)(.*)', $browser)) {
|
||||
return 'KONQUEROR';
|
||||
} else if(ereg('Mozilla/([0-9].[0-9]{1,2})', $browser)) {
|
||||
return 'MOZILLA';
|
||||
} else {
|
||||
return 'OTHER';
|
||||
}
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
?>
|
241
Modules/Downloads/include/fun_list.php
Executable file
@@ -0,0 +1,241 @@
|
||||
<?php
|
||||
|
||||
// HELPER FUNCTIONS (USED BY MAIN FUNCTION 'list_dir', SEE BOTTOM)
|
||||
function make_list($_list1, $_list2) { // make list of files
|
||||
$list = array();
|
||||
|
||||
if($GLOBALS["srt"]=="yes") {
|
||||
$list1 = $_list1;
|
||||
$list2 = $_list2;
|
||||
} else {
|
||||
$list1 = $_list2;
|
||||
$list2 = $_list1;
|
||||
}
|
||||
|
||||
if(is_array($list1)) {
|
||||
while (list($key, $val) = each($list1)) {
|
||||
$list[$key] = $val;
|
||||
}
|
||||
}
|
||||
|
||||
if(is_array($list2)) {
|
||||
while (list($key, $val) = each($list2)) {
|
||||
$list[$key] = $val;
|
||||
}
|
||||
}
|
||||
|
||||
return $list;
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
function make_tables($dir, &$dir_list, &$file_list, &$tot_file_size, &$num_items)
|
||||
{ // make table of files in dir
|
||||
// make tables & place results in reference-variables passed to function
|
||||
// also 'return' total filesize & total number of items
|
||||
|
||||
$tot_file_size = $num_items = 0;
|
||||
|
||||
// Open directory
|
||||
$handle = @opendir(get_abs_dir($dir));
|
||||
if($handle===false) show_error($dir.": ".$GLOBALS["error_msg"]["opendir"]);
|
||||
|
||||
// Read directory
|
||||
while(($new_item = readdir($handle))!==false) {
|
||||
$abs_new_item = get_abs_item($dir, $new_item);
|
||||
|
||||
if(!@file_exists($abs_new_item)) show_error($dir.": ".$GLOBALS["error_msg"]["readdir"]);
|
||||
if(!get_show_item($dir, $new_item)) continue;
|
||||
|
||||
$new_file_size = filesize($abs_new_item);
|
||||
$tot_file_size += $new_file_size;
|
||||
$num_items++;
|
||||
|
||||
if(get_is_dir($dir, $new_item)) {
|
||||
if($GLOBALS["order"]=="mod") {
|
||||
$dir_list[$new_item] =
|
||||
@filemtime($abs_new_item);
|
||||
} else { // order == "size", "type" or "name"
|
||||
$dir_list[$new_item] = $new_item;
|
||||
}
|
||||
} else {
|
||||
if($GLOBALS["order"]=="size") {
|
||||
$file_list[$new_item] = $new_file_size;
|
||||
} elseif($GLOBALS["order"]=="mod") {
|
||||
$file_list[$new_item] =
|
||||
@filemtime($abs_new_item);
|
||||
} elseif($GLOBALS["order"]=="type") {
|
||||
$file_list[$new_item] =
|
||||
get_mime_type($dir, $new_item, "type");
|
||||
} else { // order == "name"
|
||||
$file_list[$new_item] = $new_item;
|
||||
}
|
||||
}
|
||||
}
|
||||
closedir($handle);
|
||||
|
||||
|
||||
// sort
|
||||
if(is_array($dir_list)) {
|
||||
if($GLOBALS["order"]=="mod") {
|
||||
if($GLOBALS["srt"]=="yes") arsort($dir_list);
|
||||
else asort($dir_list);
|
||||
} else { // order == "size", "type" or "name"
|
||||
if($GLOBALS["srt"]=="yes") ksort($dir_list);
|
||||
else krsort($dir_list);
|
||||
}
|
||||
}
|
||||
|
||||
// sort
|
||||
if(is_array($file_list)) {
|
||||
if($GLOBALS["order"]=="mod") {
|
||||
if($GLOBALS["srt"]=="yes") arsort($file_list);
|
||||
else asort($file_list);
|
||||
} elseif($GLOBALS["order"]=="size" || $GLOBALS["order"]=="type") {
|
||||
if($GLOBALS["srt"]=="yes") asort($file_list);
|
||||
else arsort($file_list);
|
||||
} else { // order == "name"
|
||||
if($GLOBALS["srt"]=="yes") ksort($file_list);
|
||||
else krsort($file_list);
|
||||
}
|
||||
}
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
function print_table($dir, $list, $allow) { // print table of files
|
||||
if(!is_array($list)) return;
|
||||
|
||||
while(list($item,) = each($list)){
|
||||
// link to dir / file
|
||||
$abs_item=get_abs_item($dir,$item);
|
||||
$target="";
|
||||
//$extra="";
|
||||
//if(is_link($abs_item)) $extra=" -> ".@readlink($abs_item);
|
||||
if(is_dir($abs_item)) {
|
||||
$link = make_link("list",get_rel_item($dir, $item),NULL);
|
||||
} else { //if(get_is_editable($dir,$item) || get_is_image($dir,$item)) {
|
||||
$link = make_link("download",$dir,$item);
|
||||
$target = "_blank";
|
||||
} //else $link = "";
|
||||
|
||||
echo "<TR class=\"rowdata\">\n";
|
||||
// Icon + Link
|
||||
echo "<TD nowrap>";
|
||||
/*if($link!="") */ echo"<A HREF=\"".$link."\">";
|
||||
//else echo "<A>";
|
||||
echo "<IMG border=\"0\" width=\"16\" height=\"16\" ";
|
||||
echo "align=\"ABSMIDDLE\" src=\"/Modules/Downloads/img/".get_mime_type($dir, $item, "img")."\" ALT=\"\"> ";
|
||||
$s_item=$item; if(strlen($s_item)>50) $s_item=substr($s_item,0,47)."...";
|
||||
echo htmlspecialchars($s_item)."</A></TD>\n"; // ...$extra...
|
||||
// Size
|
||||
echo "<TD>".parse_file_size(get_file_size($dir,$item))."</TD>\n";
|
||||
// Type
|
||||
echo "<TD>".get_mime_type($dir, $item, "type")."</TD>\n";
|
||||
// Modified
|
||||
echo "<TD>".parse_file_date(get_file_date($dir,$item))."</TD>\n";
|
||||
// Permissions
|
||||
// echo "<TD>";
|
||||
|
||||
// echo parse_file_type($dir,$item).parse_file_perms(get_file_perms($dir,$item));
|
||||
// if($allow) echo "</A>";
|
||||
// echo "</TD>\n";
|
||||
// Actions
|
||||
echo "<TD>\n<TABLE>\n";
|
||||
// DOWNLOAD
|
||||
if(get_is_file($dir,$item)) {
|
||||
if($allow) {
|
||||
echo "<TD><A HREF=\"".make_link("download",$dir,$item)."\">";
|
||||
echo "<IMG border=\"0\" width=\"16\" height=\"16\" align=\"ABSMIDDLE\" ";
|
||||
echo "src=\"/Modules/Downloads/img/_download.gif\" ALT=\"".$GLOBALS["messages"]["downlink"];
|
||||
echo "\" TITLE=\"".$GLOBALS["messages"]["downlink"]."\"></A></TD>\n";
|
||||
} else if(!$allow) {
|
||||
echo "<TD><IMG border=\"0\" width=\"16\" height=\"16\" align=\"ABSMIDDLE\" ";
|
||||
echo "src=\"/Modules/Downloads/img/_download_.gif\" ALT=\"".$GLOBALS["messages"]["downlink"];
|
||||
echo "\" TITLE=\"".$GLOBALS["messages"]["downlink"]."\"></TD>\n";
|
||||
}
|
||||
} else {
|
||||
echo "<TD><IMG border=\"0\" width=\"16\" height=\"16\" align=\"ABSMIDDLE\" ";
|
||||
echo "src=\"/Modules/Downloads/img/_.gif\" ALT=\"\"></TD>\n";
|
||||
}
|
||||
echo "</TABLE>\n</TD></TR>\n";
|
||||
}
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
// MAIN FUNCTION
|
||||
function list_dir($dir) { // list directory contents
|
||||
$allow=($GLOBALS["permissions"]&01)==01;
|
||||
$admin=((($GLOBALS["permissions"]&04)==04) || (($GLOBALS["permissions"]&02)==02));
|
||||
|
||||
$dir_up = dirname($dir);
|
||||
if($dir_up==".") $dir_up = "";
|
||||
|
||||
if(!get_show_item($dir_up,basename($dir))) show_error($dir." : ".$GLOBALS["error_msg"]["accessdir"]);
|
||||
|
||||
// make file & dir tables, & get total filesize & number of items
|
||||
make_tables($dir, $dir_list, $file_list, $tot_file_size, $num_items);
|
||||
|
||||
$s_dir=$dir; if(strlen($s_dir)>50) $s_dir="...".substr($s_dir,-47);
|
||||
echo "Directory: /".get_rel_item("",$s_dir);
|
||||
|
||||
// Javascript functions:
|
||||
include $_SERVER["DOCUMENT_ROOT"]."/Modules/Downloads/include/javascript.php";
|
||||
|
||||
|
||||
// Toolbar
|
||||
echo "<BR><TABLE width=\"95%\"><TR><TD><TABLE><TR>\n";
|
||||
|
||||
// PARENT DIR
|
||||
echo "<TD><A HREF=\"".make_link("list",$dir_up,NULL)."\">";
|
||||
echo "<IMG border=\"0\" width=\"16\" height=\"16\" align=\"ABSMIDDLE\" src=\"/Modules/Downloads/img/_up.gif\" ";
|
||||
echo "ALT=\"".$GLOBALS["messages"]["uplink"]."\" TITLE=\"".$GLOBALS["messages"]["uplink"]."\"></A></TD>\n";
|
||||
// HOME DIR
|
||||
echo "<TD><A HREF=\"".make_link("list",NULL,NULL)."\">";
|
||||
echo "<IMG border=\"0\" width=\"16\" height=\"16\" align=\"ABSMIDDLE\" src=\"/Modules/Downloads/img/_home.gif\" ";
|
||||
echo "ALT=\"".$GLOBALS["messages"]["homelink"]."\" TITLE=\"".$GLOBALS["messages"]["homelink"]."\"></A></TD>\n";
|
||||
// RELOAD
|
||||
echo "<TD><A HREF=\"javascript:location.reload();\"><IMG border=\"0\" width=\"16\" height=\"16\" ";
|
||||
echo "align=\"ABSMIDDLE\" src=\"/Modules/Downloads/img/_refresh.gif\" ALT=\"".$GLOBALS["messages"]["reloadlink"];
|
||||
echo "\" TITLE=\"".$GLOBALS["messages"]["reloadlink"]."\"></A></TD>\n";
|
||||
|
||||
echo "</TR></TABLE></TD>\n";
|
||||
|
||||
echo "</TR></TABLE>\n";
|
||||
|
||||
// End Toolbar
|
||||
|
||||
|
||||
// Begin Table + Form for checkboxes
|
||||
echo"<TABLE WIDTH=\"95%\"><FORM name=\"selform\" method=\"POST\" action=\"".make_link("post",$dir,NULL)."\">\n";
|
||||
|
||||
// Table Header
|
||||
echo "<TR><TD colspan=\"5\"><HR></TD></TR><TR>\n";
|
||||
echo "<TD WIDTH=\"70%\" class=\"header\"><B>\n";
|
||||
echo $GLOBALS["messages"]["nameheader"];
|
||||
echo "</B></TD>\n<TD WIDTH=\"10%\" class=\"header\"><B>";
|
||||
echo $GLOBALS["messages"]["sizeheader"];
|
||||
echo "</B></TD>\n<TD WIDTH=\"10%\" class=\"header\"><B>";
|
||||
echo $GLOBALS["messages"]["typeheader"];
|
||||
echo "</B></TD>\n<TD WIDTH=\"10%\" class=\"header\"><B>";
|
||||
echo $GLOBALS["messages"]["modifheader"];
|
||||
echo "</B></TD>\n";
|
||||
echo "<TD ALIGN=\"right\" WIDTH=\"6%\" class=\"header\"><B>".$GLOBALS["messages"]["actionheader"]."</B></TD></TR>\n";
|
||||
echo "<TR><TD colspan=\"5\"><HR></TD></TR>\n";
|
||||
|
||||
// make & print Table using lists
|
||||
print_table($dir, make_list($dir_list, $file_list), $allow);
|
||||
|
||||
// print number of items & total filesize
|
||||
echo "<TR><TD colspan=\"5\"><HR></TD></TR><TR>\n";
|
||||
echo "<TD WIDTH=\"70%\" class=\"header\">".$num_items." ".$GLOBALS["messages"]["miscitems"]." (";
|
||||
if(function_exists("disk_free_space")) {
|
||||
$free=parse_file_size(disk_free_space(get_abs_dir($dir)));
|
||||
} elseif(function_exists("diskfreespace")) {
|
||||
$free=parse_file_size(diskfreespace(get_abs_dir($dir)));
|
||||
} else $free="?";
|
||||
// echo "Total: ".parse_file_size(disk_total_space(get_abs_dir($dir))).", ";
|
||||
echo $GLOBALS["messages"]["miscfree"].": ".$free.")</TD>\n";
|
||||
echo "<TD WIDTH=\"30%\" class=\"header\">".parse_file_size($tot_file_size)."</TD>\n";
|
||||
for($i=0;$i<3;++$i) echo"<TD class=\"header\"></TD>";
|
||||
echo "</TR>\n<TR><TD colspan=\"5\"><HR></TD></TR></FORM></TABLE>\n";
|
||||
|
||||
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
?>
|
67
Modules/Downloads/include/init.php
Executable file
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
//------------------------------------------------------------------------------
|
||||
// Vars
|
||||
if(isset($_SERVER)) {
|
||||
$GLOBALS['__GET'] =&$_GET;
|
||||
$GLOBALS['__POST'] =&$_POST;
|
||||
$GLOBALS['__SERVER'] =&$_SERVER;
|
||||
$GLOBALS['__FILES'] =&$_FILES;
|
||||
} elseif(isset($HTTP_SERVER_VARS)) {
|
||||
$GLOBALS['__GET'] =&$HTTP_GET_VARS;
|
||||
$GLOBALS['__POST'] =&$HTTP_POST_VARS;
|
||||
$GLOBALS['__SERVER'] =&$HTTP_SERVER_VARS;
|
||||
$GLOBALS['__FILES'] =&$HTTP_POST_FILES;
|
||||
} else {
|
||||
die("<B>ERROR: Your PHP version is too old</B><BR>".
|
||||
"You need at least PHP 4.0.0, preferably PHP 4.3.1 or higher.");
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
// Get Action
|
||||
$GLOBALS['__GET']["action"] = $GLOBALS['__GET']["uebergabe"];
|
||||
|
||||
if(isset($GLOBALS['__GET']["action"])) $GLOBALS["action"]=$GLOBALS['__GET']["action"];
|
||||
else $GLOBALS["action"]="list";
|
||||
if($GLOBALS["action"]=="post" && isset($GLOBALS['__POST']["do_action"])) {
|
||||
$GLOBALS["action"]=$GLOBALS['__POST']["do_action"];
|
||||
}
|
||||
if($GLOBALS["action"]=="") $GLOBALS["action"]="list";
|
||||
$GLOBALS["action"]=stripslashes($GLOBALS["action"]);
|
||||
// Default Dir
|
||||
if(isset($GLOBALS['__GET']["dir"])) $GLOBALS["dir"]=stripslashes($GLOBALS['__GET']["dir"]);
|
||||
else $GLOBALS["dir"]="";
|
||||
if($GLOBALS["dir"]==".") $GLOBALS["dir"]=="";
|
||||
// Get Item
|
||||
if(isset($GLOBALS['__GET']["item"])) $GLOBALS["item"]=stripslashes($GLOBALS['__GET']["item"]);
|
||||
else $GLOBALS["item"]="";
|
||||
// Get Sort
|
||||
if(isset($GLOBALS['__GET']["order"])) $GLOBALS["order"]=stripslashes($GLOBALS['__GET']["order"]);
|
||||
else $GLOBALS["order"]="name";
|
||||
if($GLOBALS["order"]=="") $GLOBALS["order"]=="name";
|
||||
// Get Sortorder (yes==up)
|
||||
if(isset($GLOBALS['__GET']["srt"])) $GLOBALS["srt"]=stripslashes($GLOBALS['__GET']["srt"]);
|
||||
else $GLOBALS["srt"]="yes";
|
||||
if($GLOBALS["srt"]=="") $GLOBALS["srt"]=="yes";
|
||||
// Get Language
|
||||
if(isset($GLOBALS['__GET']["lang"])) $GLOBALS["lang"]=$GLOBALS['__GET']["lang"];
|
||||
elseif(isset($GLOBALS['__POST']["lang"])) $GLOBALS["lang"]=$GLOBALS['__POST']["lang"];
|
||||
//------------------------------------------------------------------------------
|
||||
// Necessary files
|
||||
ob_start(); // prevent unwanted output
|
||||
require $_SERVER["DOCUMENT_ROOT"]."/Modules/Downloads/config/conf.php";
|
||||
if(isset($GLOBALS["lang"])) $GLOBALS["language"]=$GLOBALS["lang"];
|
||||
require $_SERVER["DOCUMENT_ROOT"]."/Modules/Downloads/lang/".$GLOBALS["language"].".php";
|
||||
require $_SERVER["DOCUMENT_ROOT"]."/Modules/Downloads/lang/".$GLOBALS["language"]."_mimes.php";
|
||||
require $_SERVER["DOCUMENT_ROOT"]."/Modules/Downloads/config/mimes.php";
|
||||
require $_SERVER["DOCUMENT_ROOT"]."/Modules/Downloads/include/fun_extra.php";
|
||||
require $_SERVER["DOCUMENT_ROOT"]."/Modules/Downloads/include/error.php";
|
||||
ob_end_clean(); // get rid of cached unwanted output
|
||||
//------------------------------------------------------------------------------
|
||||
$abs_dir=get_abs_dir($GLOBALS["dir"]);
|
||||
if(!@file_exists($GLOBALS["home_dir"])) {
|
||||
$extra=NULL;
|
||||
show_error($GLOBALS["error_msg"]["home"],$extra);
|
||||
}
|
||||
if(!down_home($abs_dir)) show_error($GLOBALS["dir"]." : ".$GLOBALS["error_msg"]["abovehome"]);
|
||||
if(!is_dir($abs_dir)) show_error($GLOBALS["dir"]." : ".$GLOBALS["error_msg"]["direxist"]);
|
||||
//------------------------------------------------------------------------------
|
||||
?>
|
137
Modules/Downloads/include/javascript.php
Executable file
@@ -0,0 +1,137 @@
|
||||
<script language="JavaScript1.2" type="text/javascript">
|
||||
<!--
|
||||
// Checkboxes
|
||||
function Toggle(e) {
|
||||
if(e.checked) {
|
||||
Highlight(e);
|
||||
document.selform.toggleAllC.checked = AllChecked();
|
||||
} else {
|
||||
UnHighlight(e);
|
||||
document.selform.toggleAllC.checked = false;
|
||||
}
|
||||
}
|
||||
|
||||
function ToggleAll(e) {
|
||||
if(e.checked) CheckAll();
|
||||
else ClearAll();
|
||||
}
|
||||
|
||||
function CheckAll() {
|
||||
var ml = document.selform;
|
||||
var len = ml.elements.length;
|
||||
for(var i=0; i<len; ++i) {
|
||||
var e = ml.elements[i];
|
||||
if(e.name == "selitems[]") {
|
||||
e.checked = true;
|
||||
Highlight(e);
|
||||
}
|
||||
}
|
||||
ml.toggleAllC.checked = true;
|
||||
}
|
||||
|
||||
function ClearAll() {
|
||||
var ml = document.selform;
|
||||
var len = ml.elements.length;
|
||||
for (var i=0; i<len; ++i) {
|
||||
var e = ml.elements[i];
|
||||
if(e.name == "selitems[]") {
|
||||
e.checked = false;
|
||||
UnHighlight(e);
|
||||
}
|
||||
}
|
||||
ml.toggleAllC.checked = false;
|
||||
}
|
||||
|
||||
function AllChecked() {
|
||||
ml = document.selform;
|
||||
len = ml.elements.length;
|
||||
for(var i=0; i<len; ++i) {
|
||||
if(ml.elements[i].name == "selitems[]" && !ml.elements[i].checked) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function NumChecked() {
|
||||
ml = document.selform;
|
||||
len = ml.elements.length;
|
||||
num = 0;
|
||||
for(var i=0; i<len; ++i) {
|
||||
if(ml.elements[i].name == "selitems[]" && ml.elements[i].checked) ++num;
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
|
||||
// Row highlight
|
||||
|
||||
function Highlight(e) {
|
||||
var r = null;
|
||||
if(e.parentNode && e.parentNode.parentNode) {
|
||||
r = e.parentNode.parentNode;
|
||||
} else if(e.parentElement && e.parentElement.parentElement) {
|
||||
r = e.parentElement.parentElement;
|
||||
}
|
||||
if(r && r.className=="rowdata") {
|
||||
r.className = "rowdatasel";
|
||||
}
|
||||
}
|
||||
|
||||
function UnHighlight(e) {
|
||||
var r = null;
|
||||
if(e.parentNode && e.parentNode.parentNode) {
|
||||
r = e.parentNode.parentNode;
|
||||
} else if (e.parentElement && e.parentElement.parentElement) {
|
||||
r = e.parentElement.parentElement;
|
||||
}
|
||||
if(r && r.className=="rowdatasel") {
|
||||
r.className = "rowdata";
|
||||
}
|
||||
}
|
||||
|
||||
<?php if($allow) { ?>
|
||||
|
||||
// Copy / Move / Delete
|
||||
|
||||
function Copy() {
|
||||
if(NumChecked()==0) {
|
||||
alert("<?php echo $GLOBALS["error_msg"]["miscselitems"]; ?>");
|
||||
return;
|
||||
}
|
||||
document.selform.do_action.value = "copy";
|
||||
document.selform.submit();
|
||||
}
|
||||
|
||||
function Move() {
|
||||
if(NumChecked()==0) {
|
||||
alert("<?php echo $GLOBALS["error_msg"]["miscselitems"]; ?>");
|
||||
return;
|
||||
}
|
||||
document.selform.do_action.value = "move";
|
||||
document.selform.submit();
|
||||
}
|
||||
|
||||
function Delete() {
|
||||
num=NumChecked();
|
||||
if(num==0) {
|
||||
alert("<?php echo $GLOBALS["error_msg"]["miscselitems"]; ?>");
|
||||
return;
|
||||
}
|
||||
if(confirm("<?php echo $GLOBALS["error_msg"]["miscdelitems"]; ?>")) {
|
||||
document.selform.do_action.value = "delete";
|
||||
document.selform.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function Archive() {
|
||||
if(NumChecked()==0) {
|
||||
alert("<?php echo $GLOBALS["error_msg"]["miscselitems"]; ?>");
|
||||
return;
|
||||
}
|
||||
document.selform.do_action.value = "arch";
|
||||
document.selform.submit();
|
||||
}
|
||||
|
||||
<?php } ?>
|
||||
|
||||
// -->
|
||||
</script>
|
40
Modules/Downloads/index.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
$moduleurl = $_SERVER["REQUEST_URI"];
|
||||
$urlcut = strpos($moduleurl, "&");
|
||||
$moduleurl = substr($moduleurl,0,$urlcut);
|
||||
?>
|
||||
<!-- MAIN CONTENT BEGINN ################################################################################ -->
|
||||
<div class="art-content">
|
||||
<div class="art-Post">
|
||||
<div class="art-Post-body">
|
||||
<div class="art-Post-inner">
|
||||
<h2 class="art-PostHeaderIcon-wrapper">
|
||||
<span class="art-PostHeader">Downloads</span>
|
||||
</h2>
|
||||
<div class="art-PostContent">
|
||||
<?php
|
||||
//------------------------------------------------------------------------------
|
||||
umask(002); // Added to make created files/dirs group writable
|
||||
//------------------------------------------------------------------------------
|
||||
require $_SERVER["DOCUMENT_ROOT"]."/Modules/Downloads/include/init.php"; // Init
|
||||
//------------------------------------------------------------------------------
|
||||
switch($GLOBALS["action"]) { // Execute action
|
||||
//------------------------------------------------------------------------------
|
||||
// DEFAULT: LIST FILES & DIRS
|
||||
case "list":
|
||||
default:
|
||||
$GLOBALS["script_name"] = $moduleurl;
|
||||
include( $_SERVER["DOCUMENT_ROOT"]."/Modules/Downloads/include/fun_list.php");
|
||||
list_dir($GLOBALS["dir"]);
|
||||
//------------------------------------------------------------------------------
|
||||
} // end switch-statement
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- END CONTENT BEGINN ################################################################################# -->
|
6
Modules/Downloads/lang/_info.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<OPTION value="en">English</OPTION>
|
||||
<OPTION value="de">Deutsch</OPTION>
|
||||
<OPTION value="es">Espa<EFBFBD>ol</OPTION>
|
||||
<OPTION value="fr">Fran<EFBFBD>ais</OPTION>
|
||||
<OPTION value="nl">Nederlands</OPTION>
|
||||
<OPTION value="ru">Russian</OPTION>
|
158
Modules/Downloads/lang/de.php
Normal file
@@ -0,0 +1,158 @@
|
||||
<?php
|
||||
|
||||
// German Language Module for v2.3 (translated by the QuiX project)
|
||||
|
||||
$GLOBALS["charset"] = "iso-8859-1";
|
||||
$GLOBALS["text_dir"] = "ltr"; // ('ltr' for left to right, 'rtl' for right to left)
|
||||
$GLOBALS["date_fmt"] = "d.m.Y H:i";
|
||||
$GLOBALS["error_msg"] = array(
|
||||
// error
|
||||
"error" => "FEHLER",
|
||||
"back" => "Zur<EFBFBD>ck",
|
||||
|
||||
// root
|
||||
"home" => "Das Home-Verzeichnis existiert nicht, kontrollieren sie ihre Einstellungen.",
|
||||
"abovehome" => "Das aktuelle Verzeichnis darf nicht h<>her liegen als das Home-Verzeichnis.",
|
||||
"targetabovehome" => "Das Zielverzeichnis darf nicht h<>her liegen als das Home-Verzeichnis.",
|
||||
|
||||
// exist
|
||||
"direxist" => "Dieses Verzeichnis existiert nicht.",
|
||||
//"filedoesexist" => "Diese Datei existiert bereits.",
|
||||
"fileexist" => "Diese Datei existiert nicht.",
|
||||
"itemdoesexist" => "Dieses Objekt existiert bereits.",
|
||||
"itemexist" => "Dieses Objekt existiert nicht.",
|
||||
"targetexist" => "Das Zielverzeichnis existiert nicht.",
|
||||
"targetdoesexist" => "Das Zielobjekt existiert bereits.",
|
||||
|
||||
// open
|
||||
"opendir" => "Kann Verzeichnis nicht <20>ffnen.",
|
||||
"readdir" => "Kann Verzeichnis nicht lesen",
|
||||
|
||||
// access
|
||||
"accessdir" => "Zugriff auf dieses Verzeichnis verweigert.",
|
||||
"accessfile" => "Zugriff auf diese Datei verweigert.",
|
||||
"accessitem" => "Zugriff auf dieses Objekt verweigert.",
|
||||
"accessfunc" => "Zugriff auf diese Funktion verweigert.",
|
||||
"accesstarget" => "Zugriff auf das Zielverzeichnis verweigert.",
|
||||
|
||||
// actions
|
||||
"permread" => "Rechte lesen fehlgeschlagen.",
|
||||
"permchange" => "Rechte <20>ndern fehlgeschlagen.",
|
||||
"openfile" => "Datei <20>ffnen fehlgeschlagen.",
|
||||
"savefile" => "Datei speichern fehlgeschlagen.",
|
||||
"createfile" => "Datei anlegen fehlgeschlagen.",
|
||||
"createdir" => "Verzeichnis anlegen fehlgeschlagen.",
|
||||
"uploadfile" => "Datei hochladen fehlgeschlagen.",
|
||||
"copyitem" => "Kopieren fehlgeschlagen.",
|
||||
"moveitem" => "Versetzen fehlgeschlagen.",
|
||||
"delitem" => "L<EFBFBD>schen fehlgeschlagen.",
|
||||
"chpass" => "Passwort <20>ndern fehlgeschlagen.",
|
||||
"deluser" => "Benutzer l<>schen fehlgeschlagen.",
|
||||
"adduser" => "Benutzer hinzuf<75>gen fehlgeschlagen.",
|
||||
"saveuser" => "Benutzer speichern fehlgeschlagen.",
|
||||
"searchnothing" => "Sie m<>ssen etwas zum suchen eintragen.",
|
||||
|
||||
// misc
|
||||
"miscnofunc" => "Funktion nicht vorhanden.",
|
||||
"miscfilesize" => "Datei ist gr<67><72>er als die maximale Gr<47><72>e.",
|
||||
"miscfilepart" => "Datei wurde nur zum Teil hochgeladen.",
|
||||
"miscnoname" => "Sie m<>ssen einen Namen eintragen",
|
||||
"miscselitems" => "Sie haben keine Objekt(e) ausgew<65>hlt.",
|
||||
"miscdelitems" => "Sollen die \"+num+\" markierten Objekt(e) gel<65>scht werden?",
|
||||
"miscdeluser" => "Soll der Benutzer '\"+user+\"' gel<65>scht werden?",
|
||||
"miscnopassdiff" => "Das neue und das heutige Passwort sind nicht verschieden.",
|
||||
"miscnopassmatch" => "Passw<EFBFBD>rter sind nicht gleich.",
|
||||
"miscfieldmissed" => "Sie haben ein wichtiges Eingabefeld vergessen auszuf<75>llen",
|
||||
"miscnouserpass" => "Benutzer oder Passwort unbekannt.",
|
||||
"miscselfremove" => "Sie k<>nnen sich selbst nicht l<>schen.",
|
||||
"miscuserexist" => "Der Benutzer existiert bereits.",
|
||||
"miscnofinduser" => "Kann Benutzer nicht finden.",
|
||||
);
|
||||
$GLOBALS["messages"] = array(
|
||||
// links
|
||||
"permlink" => "RECHTE <20>NDERN",
|
||||
"editlink" => "BEARBEITEN",
|
||||
"downlink" => "HERUNTERLADEN",
|
||||
"uplink" => "H<EFBFBD>HER",
|
||||
"homelink" => "HOME",
|
||||
"reloadlink" => "ERNEUERN",
|
||||
"copylink" => "KOPIEREN",
|
||||
"movelink" => "VERSETZEN",
|
||||
"dellink" => "L<EFBFBD>SCHEN",
|
||||
"comprlink" => "ARCHIVIEREN",
|
||||
"adminlink" => "ADMINISTRATION",
|
||||
"logoutlink" => "ABMELDEN",
|
||||
"uploadlink" => "HOCHLADEN",
|
||||
"searchlink" => "SUCHEN",
|
||||
|
||||
// list
|
||||
"nameheader" => "Name",
|
||||
"sizeheader" => "Gr<EFBFBD><EFBFBD>e",
|
||||
"typeheader" => "Typ",
|
||||
"modifheader" => "Ge<EFBFBD>ndert",
|
||||
"permheader" => "Rechte",
|
||||
"actionheader" => "Aktionen",
|
||||
"pathheader" => "Pfad",
|
||||
|
||||
// buttons
|
||||
"btncancel" => "Abbrechen",
|
||||
"btnsave" => "Speichern",
|
||||
"btnchange" => "<EFBFBD>ndern",
|
||||
"btnreset" => "Zur<EFBFBD>cksetzen",
|
||||
"btnclose" => "Schlie<EFBFBD>en",
|
||||
"btncreate" => "Anlegen",
|
||||
"btnsearch" => "Suchen",
|
||||
"btnupload" => "Hochladen",
|
||||
"btncopy" => "Kopieren",
|
||||
"btnmove" => "Verschieben",
|
||||
"btnlogin" => "Anmelden",
|
||||
"btnlogout" => "Abmelden",
|
||||
"btnadd" => "Hinzuf<EFBFBD>gen",
|
||||
"btnedit" => "<EFBFBD>ndern",
|
||||
"btnremove" => "L<EFBFBD>schen",
|
||||
|
||||
// actions
|
||||
"actdir" => "Verzeichnis",
|
||||
"actperms" => "Rechte <20>ndern",
|
||||
"actedit" => "Datei bearbeiten",
|
||||
"actsearchresults" => "Suchergebnisse",
|
||||
"actcopyitems" => "Objekt(e) kopieren",
|
||||
"actcopyfrom" => "Kopiere von /%s nach /%s ",
|
||||
"actmoveitems" => "Objekt(e) verschieben",
|
||||
"actmovefrom" => "Versetze von /%s nach /%s ",
|
||||
"actlogin" => "Anmelden",
|
||||
"actloginheader" => "Melden sie sich an um QuiXplorer zu benutzen",
|
||||
"actadmin" => "Administration",
|
||||
"actchpwd" => "Passwort <20>ndern",
|
||||
"actusers" => "Benutzer",
|
||||
"actarchive" => "Objekt(e) archivieren",
|
||||
"actupload" => "Datei(en) hochladen",
|
||||
|
||||
// misc
|
||||
"miscitems" => "Objekt(e)",
|
||||
"miscfree" => "Freier Speicher",
|
||||
"miscusername" => "Benutzername",
|
||||
"miscpassword" => "Passwort",
|
||||
"miscoldpass" => "Altes Passwort",
|
||||
"miscnewpass" => "Neues Passwort",
|
||||
"miscconfpass" => "Best<EFBFBD>tige Passwort",
|
||||
"miscconfnewpass" => "Best<EFBFBD>tige neues Passwort",
|
||||
"miscchpass" => "<EFBFBD>ndere Passwort",
|
||||
"mischomedir" => "Home-Verzeichnis",
|
||||
"mischomeurl" => "Home URL",
|
||||
"miscshowhidden" => "Versteckte Objekte anzeigen",
|
||||
"mischidepattern" => "Versteck-Filter",
|
||||
"miscperms" => "Rechte",
|
||||
"miscuseritems" => "(Name, Home-Verzeichnis, versteckte Objekte anzeigen, Rechte, aktiviert)",
|
||||
"miscadduser" => "Benutzer hinzuf<75>gen",
|
||||
"miscedituser" => "Benutzer '%s' <20>ndern",
|
||||
"miscactive" => "Aktiviert",
|
||||
"misclang" => "Sprache",
|
||||
"miscnoresult" => "Suche ergebnislos.",
|
||||
"miscsubdirs" => "Suche in Unterverzeichnisse",
|
||||
"miscpermnames" => array("Nur ansehen","<EFBFBD>ndern","Passwort <20>ndern",
|
||||
"<EFBFBD>ndern & Passwort <20>ndern","Administrator"),
|
||||
"miscyesno" => array("Ja","Nein","J","N"),
|
||||
"miscchmod" => array("Besitzer", "Gruppe", "Publik"),
|
||||
);
|
||||
?>
|
60
Modules/Downloads/lang/de_mimes.php
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
// German Mimes Module for v2.3 (translated by the QuiX project)
|
||||
|
||||
$GLOBALS["mimes"]=array(
|
||||
// dir, exe, file
|
||||
"dir" => "Verzeichnis",
|
||||
"exe" => "Programm",
|
||||
"file" => "Datei",
|
||||
|
||||
// text
|
||||
"text" => "Text Dokument",
|
||||
|
||||
// programming
|
||||
"php" => "PHP Script",
|
||||
"sql" => "SQL Datei",
|
||||
"perl" => "PERL Script",
|
||||
"html" => "HTML Seite",
|
||||
"js" => "Javascript Datei",
|
||||
"css" => "CSS Datei",
|
||||
"cgi" => "CGI Script",
|
||||
// C++
|
||||
"cpps" => "C++ Quellcode",
|
||||
"cpph" => "C++ Header Datei",
|
||||
// Java
|
||||
"javas" => "Java Quellcode",
|
||||
"javac" => "Java Klasse Datei",
|
||||
// Pascal
|
||||
"pas" => "Pascal Quellcode",
|
||||
|
||||
// images
|
||||
"gif" => "GIF Bild",
|
||||
"jpg" => "JPG Bild",
|
||||
"bmp" => "BMP Bild",
|
||||
"png" => "PNG Bild",
|
||||
|
||||
// compressed
|
||||
"zip" => "ZIP Archiv",
|
||||
"tar" => "TAR Archiv",
|
||||
"gzip" => "GZIP Archiv",
|
||||
"bzip2" => "BZIP2 Archiv",
|
||||
"rar" => "RAR Archiv",
|
||||
|
||||
// music
|
||||
"mp3" => "MP3 Audio Datei",
|
||||
"wav" => "WAV Audio Datei",
|
||||
"midi" => "MIDI Audio Datei",
|
||||
"real" => "RealAudio Datei",
|
||||
|
||||
// movie
|
||||
"mpg" => "MPG Video Datei",
|
||||
"mov" => "Movie Datei",
|
||||
"avi" => "AVI Video Datei",
|
||||
"flash" => "Flash Movie Datei",
|
||||
|
||||
// Micosoft / Adobe
|
||||
"word" => "Word Dokument",
|
||||
"excel" => "Excel Dokument",
|
||||
"pdf" => "PDF Datei"
|
||||
); ?>
|
158
Modules/Downloads/lang/en.php
Normal file
@@ -0,0 +1,158 @@
|
||||
<?php
|
||||
|
||||
// English Language Module for v2.3 (translated by the QuiX project)
|
||||
|
||||
$GLOBALS["charset"] = "iso-8859-1";
|
||||
$GLOBALS["text_dir"] = "ltr"; // ('ltr' for left to right, 'rtl' for right to left)
|
||||
$GLOBALS["date_fmt"] = "Y/m/d H:i";
|
||||
$GLOBALS["error_msg"] = array(
|
||||
// error
|
||||
"error" => "ERROR(S)",
|
||||
"back" => "Go Back",
|
||||
|
||||
// root
|
||||
"home" => "The home directory doesn't exist, check your settings.",
|
||||
"abovehome" => "The current directory may not be above the home directory.",
|
||||
"targetabovehome" => "The target directory may not be above the home directory.",
|
||||
|
||||
// exist
|
||||
"direxist" => "This directory doesn't exist.",
|
||||
//"filedoesexist" => "This file already exists.",
|
||||
"fileexist" => "This file doesn't exist.",
|
||||
"itemdoesexist" => "This item already exists.",
|
||||
"itemexist" => "This item doesn't exist.",
|
||||
"targetexist" => "The target directory doesn't exist.",
|
||||
"targetdoesexist" => "The target item already exists.",
|
||||
|
||||
// open
|
||||
"opendir" => "Unable to open directory.",
|
||||
"readdir" => "Unable to read directory.",
|
||||
|
||||
// access
|
||||
"accessdir" => "You are not allowed to access this directory.",
|
||||
"accessfile" => "You are not allowed to access this file.",
|
||||
"accessitem" => "You are not allowed to access this item.",
|
||||
"accessfunc" => "You are not allowed to use this function.",
|
||||
"accesstarget" => "You are not allowed to access the target directory.",
|
||||
|
||||
// actions
|
||||
"permread" => "Getting permissions failed.",
|
||||
"permchange" => "Permission-change failed.",
|
||||
"openfile" => "File opening failed.",
|
||||
"savefile" => "File saving failed.",
|
||||
"createfile" => "File creation failed.",
|
||||
"createdir" => "Directory creation failed.",
|
||||
"uploadfile" => "File upload failed.",
|
||||
"copyitem" => "Copying failed.",
|
||||
"moveitem" => "Moving failed.",
|
||||
"delitem" => "Deleting failed.",
|
||||
"chpass" => "Changing password failed.",
|
||||
"deluser" => "Removing user failed.",
|
||||
"adduser" => "Adding user failed.",
|
||||
"saveuser" => "Saving user failed.",
|
||||
"searchnothing" => "You must supply something to search for.",
|
||||
|
||||
// misc
|
||||
"miscnofunc" => "Function unavailable.",
|
||||
"miscfilesize" => "File exceeds maximum size.",
|
||||
"miscfilepart" => "File was only partially uploaded.",
|
||||
"miscnoname" => "You must supply a name.",
|
||||
"miscselitems" => "You haven't selected any item(s).",
|
||||
"miscdelitems" => "Are you sure you want to delete these \"+num+\" item(s)?",
|
||||
"miscdeluser" => "Are you sure you want to delete user '\"+user+\"'?",
|
||||
"miscnopassdiff" => "New password doesn't differ from current.",
|
||||
"miscnopassmatch" => "Passwords don't match.",
|
||||
"miscfieldmissed" => "You missed an important field.",
|
||||
"miscnouserpass" => "Username or password incorrect.",
|
||||
"miscselfremove" => "You can't remove yourself.",
|
||||
"miscuserexist" => "User already exists.",
|
||||
"miscnofinduser" => "Can't find user.",
|
||||
);
|
||||
$GLOBALS["messages"] = array(
|
||||
// links
|
||||
"permlink" => "CHANGE PERMISSIONS",
|
||||
"editlink" => "EDIT",
|
||||
"downlink" => "DOWNLOAD",
|
||||
"uplink" => "UP",
|
||||
"homelink" => "HOME",
|
||||
"reloadlink" => "RELOAD",
|
||||
"copylink" => "COPY",
|
||||
"movelink" => "MOVE",
|
||||
"dellink" => "DELETE",
|
||||
"comprlink" => "ARCHIVE",
|
||||
"adminlink" => "ADMIN",
|
||||
"logoutlink" => "LOGOUT",
|
||||
"uploadlink" => "UPLOAD",
|
||||
"searchlink" => "SEARCH",
|
||||
|
||||
// list
|
||||
"nameheader" => "Name",
|
||||
"sizeheader" => "Size",
|
||||
"typeheader" => "Type",
|
||||
"modifheader" => "Modified",
|
||||
"permheader" => "Perm's",
|
||||
"actionheader" => "Actions",
|
||||
"pathheader" => "Path",
|
||||
|
||||
// buttons
|
||||
"btncancel" => "Cancel",
|
||||
"btnsave" => "Save",
|
||||
"btnchange" => "Change",
|
||||
"btnreset" => "Reset",
|
||||
"btnclose" => "Close",
|
||||
"btncreate" => "Create",
|
||||
"btnsearch" => "Search",
|
||||
"btnupload" => "Upload",
|
||||
"btncopy" => "Copy",
|
||||
"btnmove" => "Move",
|
||||
"btnlogin" => "Login",
|
||||
"btnlogout" => "Logout",
|
||||
"btnadd" => "Add",
|
||||
"btnedit" => "Edit",
|
||||
"btnremove" => "Remove",
|
||||
|
||||
// actions
|
||||
"actdir" => "Directory",
|
||||
"actperms" => "Change permissions",
|
||||
"actedit" => "Edit file",
|
||||
"actsearchresults" => "Search results",
|
||||
"actcopyitems" => "Copy item(s)",
|
||||
"actcopyfrom" => "Copy from /%s to /%s ",
|
||||
"actmoveitems" => "Move item(s)",
|
||||
"actmovefrom" => "Move from /%s to /%s ",
|
||||
"actlogin" => "Login",
|
||||
"actloginheader" => "Login to use QuiXplorer",
|
||||
"actadmin" => "Administration",
|
||||
"actchpwd" => "Change password",
|
||||
"actusers" => "Users",
|
||||
"actarchive" => "Archive item(s)",
|
||||
"actupload" => "Upload file(s)",
|
||||
|
||||
// misc
|
||||
"miscitems" => "Item(s)",
|
||||
"miscfree" => "Free",
|
||||
"miscusername" => "Username",
|
||||
"miscpassword" => "Password",
|
||||
"miscoldpass" => "Old password",
|
||||
"miscnewpass" => "New password",
|
||||
"miscconfpass" => "Confirm password",
|
||||
"miscconfnewpass" => "Confirm new password",
|
||||
"miscchpass" => "Change password",
|
||||
"mischomedir" => "Home directory",
|
||||
"mischomeurl" => "Home URL",
|
||||
"miscshowhidden" => "Show hidden items",
|
||||
"mischidepattern" => "Hide pattern",
|
||||
"miscperms" => "Permissions",
|
||||
"miscuseritems" => "(name, home directory, show hidden items, permissions, active)",
|
||||
"miscadduser" => "add user",
|
||||
"miscedituser" => "edit user '%s'",
|
||||
"miscactive" => "Active",
|
||||
"misclang" => "Language",
|
||||
"miscnoresult" => "No results available.",
|
||||
"miscsubdirs" => "Search subdirectories",
|
||||
"miscpermnames" => array("View only","Modify","Change password","Modify & Change password",
|
||||
"Administrator"),
|
||||
"miscyesno" => array("Yes","No","Y","N"),
|
||||
"miscchmod" => array("Owner", "Group", "Public"),
|
||||
);
|
||||
?>
|
60
Modules/Downloads/lang/en_mimes.php
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
// English Mimes Module for v2.3 (translated by the QuiX project)
|
||||
|
||||
$GLOBALS["mimes"]=array(
|
||||
// dir, exe, file
|
||||
"dir" => "Directory",
|
||||
"exe" => "Executable File",
|
||||
"file" => "File",
|
||||
|
||||
// text
|
||||
"text" => "Text File",
|
||||
|
||||
// programming
|
||||
"php" => "PHP Script",
|
||||
"sql" => "SQL File",
|
||||
"perl" => "PERL Script",
|
||||
"html" => "HTML Page",
|
||||
"js" => "Javascript File",
|
||||
"css" => "CSS File",
|
||||
"cgi" => "CGI Script",
|
||||
// C++
|
||||
"cpps" => "C++ Source File",
|
||||
"cpph" => "C++ Header File",
|
||||
// Java
|
||||
"javas" => "Java Source File",
|
||||
"javac" => "Java Class File",
|
||||
// Pascal
|
||||
"pas" => "Pascal File",
|
||||
|
||||
// images
|
||||
"gif" => "GIF Picture",
|
||||
"jpg" => "JPG Picture",
|
||||
"bmp" => "BMP Picture",
|
||||
"png" => "PNG Picture",
|
||||
|
||||
// compressed
|
||||
"zip" => "ZIP Archive",
|
||||
"tar" => "TAR Archive",
|
||||
"gzip" => "GZIP Archive",
|
||||
"bzip2" => "BZIP2 Archive",
|
||||
"rar" => "RAR Archive",
|
||||
|
||||
// music
|
||||
"mp3" => "MP3 Audio File",
|
||||
"wav" => "WAV Audio File",
|
||||
"midi" => "MIDI Audio File",
|
||||
"real" => "RealAudio File",
|
||||
|
||||
// movie
|
||||
"mpg" => "MPG Video File",
|
||||
"mov" => "Movie File",
|
||||
"avi" => "AVI Video File",
|
||||
"flash" => "Flash Movie File",
|
||||
|
||||
// Micosoft / Adobe
|
||||
"word" => "Word Document",
|
||||
"excel" => "Excel Document",
|
||||
"pdf" => "PDF File"
|
||||
); ?>
|
157
Modules/Downloads/lang/es.php
Normal file
@@ -0,0 +1,157 @@
|
||||
<?php
|
||||
|
||||
// Spanish Language Module for v2.3 (translated by J. Pedro Flor P.)
|
||||
|
||||
$GLOBALS["charset"] = "iso-8859-1";
|
||||
$GLOBALS["text_dir"] = "ltr"; // ('ltr' for left to right, 'rtl' for right to left)
|
||||
$GLOBALS["date_fmt"] = "Y/m/d H:i";
|
||||
$GLOBALS["error_msg"] = array(
|
||||
// error
|
||||
"error" => "ERROR(ES)",
|
||||
"back" => "Ir Atr<74>s",
|
||||
|
||||
// root
|
||||
"home" => "El directorio home no existe, revise su configuraci<63>n.",
|
||||
"abovehome" => "El directorio actual no puede estar arriba del directorio home.",
|
||||
"targetabovehome" => "El directorio objetivo no puede estar arriba del directorio home.",
|
||||
|
||||
// exist
|
||||
"direxist" => "Este directorio no existe.",
|
||||
//"filedoesexist" => "Este archivo ya existe.",
|
||||
"fileexist" => "Este archivo no existe.",
|
||||
"itemdoesexist" => "Este art<72>culo ya existe.",
|
||||
"itemexist" => "Este art<72>culo no existe.",
|
||||
"targetexist" => "El directorio objetivo no existe.",
|
||||
"targetdoesexist" => "El art<72>culo objetivo ya existe.",
|
||||
|
||||
// open
|
||||
"opendir" => "Incapaz de abrir directorio.",
|
||||
"readdir" => "Incapaz de leer directorio.",
|
||||
|
||||
// access
|
||||
"accessdir" => "Ud. no est<73> permitido accesar este directorio.",
|
||||
"accessfile" => "Ud. no est<73> permitido accesar a este archivo.",
|
||||
"accessitem" => "Ud. no est<73> permitido accesar a este art<72>culo.",
|
||||
"accessfunc" => "Ud. no est<73> permitido usar esta funcion.",
|
||||
"accesstarget" => "Ud. no est<73> permitido accesar al directorio objetivo.",
|
||||
|
||||
// actions
|
||||
"permread" => "Fracaso reuniendo permisos.",
|
||||
"permchange" => "Fracaso en Cambio de permisos.",
|
||||
"openfile" => "Fracaso abriendo archivo.",
|
||||
"savefile" => "Fracaso guardando archivo.",
|
||||
"createfile" => "Fracaso creando archivo.",
|
||||
"createdir" => "Fracaso creando Directorio.",
|
||||
"uploadfile" => "Fracaso subiendo archivo.",
|
||||
"copyitem" => "Fracaso Copiando.",
|
||||
"moveitem" => "Fracaso Moviendo.",
|
||||
"delitem" => "Fracaso Borrando.",
|
||||
"chpass" => "Fracaso Cambiando password.",
|
||||
"deluser" => "Fracaso Removiendo usuario.",
|
||||
"adduser" => "Fracaso Agragando usuario.",
|
||||
"saveuser" => "Fracaso Guardadno usuario.",
|
||||
"searchnothing" => "Ud. debe suministrar algo para la busqueda.",
|
||||
|
||||
// misc
|
||||
"miscnofunc" => "Funci<EFBFBD>n no disponible.",
|
||||
"miscfilesize" => "Archivo excede maximo tama<6D>o.",
|
||||
"miscfilepart" => "Archivo fue parcialmente subido.",
|
||||
"miscnoname" => "Ud. debe suministrar un nombre.",
|
||||
"miscselitems" => "Ud. no tiene seleccionado(s) ningun art<72>culo.",
|
||||
"miscdelitems" => "Est<EFBFBD> seguro de querer borrar este(os) \"+num+\" art<72>culo(s)?",
|
||||
"miscdeluser" => "Est<EFBFBD> seguro de querer borrar usuario '\"+user+\"'?",
|
||||
"miscnopassdiff" => "Nuevo password no difiere del actual.",
|
||||
"miscnopassmatch" => "No coinciden los Passwords.",
|
||||
"miscfieldmissed" => "Ud. fall<6C> en un importante campo.",
|
||||
"miscnouserpass" => "Usuario o password incorrecto.",
|
||||
"miscselfremove" => "Ud. no puede borrarse a si mismo.",
|
||||
"miscuserexist" => "Usuario ya existe.",
|
||||
"miscnofinduser" => "No se puede encontrar usuario.",
|
||||
);
|
||||
$GLOBALS["messages"] = array(
|
||||
// links
|
||||
"permlink" => "PORMISOS CAMBIADOS",
|
||||
"editlink" => "EDITAR",
|
||||
"downlink" => "DESCARGAR",
|
||||
"uplink" => "ARRIBA",
|
||||
"homelink" => "HOME",
|
||||
"reloadlink" => "RECARGAR",
|
||||
"copylink" => "COPIAR",
|
||||
"movelink" => "MOVER",
|
||||
"dellink" => "BORRAR",
|
||||
"comprlink" => "ARCHIVAR",
|
||||
"adminlink" => "ADMINISTRAR",
|
||||
"logoutlink" => "SALIR",
|
||||
"uploadlink" => "SUBIR",
|
||||
"searchlink" => "B<EFBFBD>SQUEDA",
|
||||
|
||||
// list
|
||||
"nameheader" => "Nombre",
|
||||
"sizeheader" => "Tama<EFBFBD>o",
|
||||
"typeheader" => "Tipo",
|
||||
"modifheader" => "Modificado",
|
||||
"permheader" => "Permisos",
|
||||
"actionheader" => "Acciones",
|
||||
"pathheader" => "Ruta",
|
||||
|
||||
// buttons
|
||||
"btncancel" => "Cancelar",
|
||||
"btnsave" => "Grabar",
|
||||
"btnchange" => "Cambiar",
|
||||
"btnreset" => "Restablecer",
|
||||
"btnclose" => "Cerrar",
|
||||
"btncreate" => "Crear",
|
||||
"btnsearch" => "Buscar",
|
||||
"btnupload" => "Subir",
|
||||
"btncopy" => "Copiar",
|
||||
"btnmove" => "Mover",
|
||||
"btnlogin" => "Login",
|
||||
"btnlogout" => "Salir",
|
||||
"btnadd" => "A<EFBFBD>adir",
|
||||
"btnedit" => "Editar",
|
||||
"btnremove" => "Remover",
|
||||
|
||||
// actions
|
||||
"actdir" => "Directorio",
|
||||
"actperms" => "Cambiar permisos",
|
||||
"actedit" => "Editar archivo",
|
||||
"actsearchresults" => "Resultado de busqueda.",
|
||||
"actcopyitems" => "Copiar art<72>culos(s)",
|
||||
"actcopyfrom" => "Copia de /%s a /%s ",
|
||||
"actmoveitems" => "Mover art<72>culo(s)",
|
||||
"actmovefrom" => "Mover de /%s a /%s ",
|
||||
"actlogin" => "Login",
|
||||
"actloginheader" => "Login para usar QuiXplorer",
|
||||
"actadmin" => "Administraci<EFBFBD>n",
|
||||
"actchpwd" => "Cambiar password",
|
||||
"actusers" => "Usuarios",
|
||||
"actarchive" => "Archivar item(s)",
|
||||
"actupload" => "Subir Archivo(s)",
|
||||
|
||||
// misc
|
||||
"miscitems" => "Art<EFBFBD>culo(s)",
|
||||
"miscfree" => "Libre",
|
||||
"miscusername" => "Nombre de usuario",
|
||||
"miscpassword" => "Password",
|
||||
"miscoldpass" => "Password Antiguo",
|
||||
"miscnewpass" => "Password Nuevo",
|
||||
"miscconfpass" => "Confirmar password",
|
||||
"miscconfnewpass" => "Confirmar nuevo password",
|
||||
"miscchpass" => "Cambiar password",
|
||||
"mischomedir" => "Directorio Home",
|
||||
"mischomeurl" => "URL Home",
|
||||
"miscshowhidden" => "Mostrar art<72>culos ocultos",
|
||||
"mischidepattern" => "Ocultar patr<74>n",
|
||||
"miscperms" => "Permisos",
|
||||
"miscuseritems" => "(nombre, directorio home, mostrar art<72>culos ocultos, permisos, activar)",
|
||||
"miscadduser" => "a<EFBFBD>adir usuario",
|
||||
"miscedituser" => "editar usario '%s'",
|
||||
"miscactive" => "Activar",
|
||||
"misclang" => "Lenguaje",
|
||||
"miscnoresult" => "Resultado(s) no disponible(s).",
|
||||
"miscsubdirs" => "B<EFBFBD>squeda de subdirectorios",
|
||||
"miscpermnames" => array("Solo ver","Modificar","Cambiar password","Modificar & Cambiar password", "Administrador"),
|
||||
"miscyesno" => array("Si","No","S","N"),
|
||||
"miscchmod" => array("Propietario", "Grupo", "P<EFBFBD>blico"),
|
||||
);
|
||||
?>
|
60
Modules/Downloads/lang/es_mimes.php
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
// Spanish Mimes Module for v2.3 (translated by J. Pedro Flor P.)
|
||||
|
||||
$GLOBALS["mimes"]=array(
|
||||
// dir, exe, file
|
||||
"dir" => "Directorio",
|
||||
"exe" => "Archivo Ejecutable",
|
||||
"file" => "Archivo",
|
||||
|
||||
// text
|
||||
"text" => "Archivo de Texto",
|
||||
|
||||
// programming
|
||||
"php" => "Script PHP",
|
||||
"sql" => "Archivo SQL",
|
||||
"perl" => "Script PERL",
|
||||
"html" => "Pagina HTML",
|
||||
"js" => "Archivo Javascript",
|
||||
"css" => "Archivo CSS",
|
||||
"cgi" => "Script CGI",
|
||||
// C++
|
||||
"cpps" => "Archivo C++ Source",
|
||||
"cpph" => "Archivo C++ Header",
|
||||
// Java
|
||||
"javas" => "Archivo Java Source",
|
||||
"javac" => "Archivo Java Class",
|
||||
// Pascal
|
||||
"pas" => "Archivo Pascal",
|
||||
|
||||
// images
|
||||
"gif" => "Imagen GIF",
|
||||
"jpg" => "Imagen JPG",
|
||||
"bmp" => "Imagen BMP",
|
||||
"png" => "Imagen PNG",
|
||||
|
||||
// compressed
|
||||
"zip" => "Archivo ZIP",
|
||||
"tar" => "Archivo TAR",
|
||||
"gzip" => "Archivo GZIP",
|
||||
"bzip2" => "Archivo BZIP2",
|
||||
"rar" => "Archivo RAR",
|
||||
|
||||
// music
|
||||
"mp3" => "Archivo MP3 Audio",
|
||||
"wav" => "Archivo WAV Audio",
|
||||
"midi" => "Archivo MIDI Audio",
|
||||
"real" => "Archivo RealAudio",
|
||||
|
||||
// movie
|
||||
"mpg" => "Archivo MPG Video",
|
||||
"mov" => "Archivo Movie",
|
||||
"avi" => "Archivo AVI Video",
|
||||
"flash" => "Archivo Flash Movie",
|
||||
|
||||
// Micosoft / Adobe
|
||||
"word" => "Documento Word",
|
||||
"excel" => "Documento Excel",
|
||||
"pdf" => "Archivo PDF"
|
||||
); ?>
|
158
Modules/Downloads/lang/fr.php
Normal file
@@ -0,0 +1,158 @@
|
||||
<?php
|
||||
|
||||
// French Language Module for v2.3 (translated by Olivier Pariseau & the QuiX project)
|
||||
|
||||
$GLOBALS["charset"] = "iso-8859-1";
|
||||
$GLOBALS["text_dir"] = "ltr"; // ('ltr' for left to right, 'rtl' for right to left)
|
||||
$GLOBALS["date_fmt"] = "d/m/Y H:i";
|
||||
$GLOBALS["error_msg"] = array(
|
||||
// error
|
||||
"error" => "ERREUR(S)",
|
||||
"back" => "Page pr<70>c<EFBFBD>dente",
|
||||
|
||||
// root
|
||||
"home" => "Le r<>pertoire home n'existe pas, v<>rifiez vos pr<70>f<EFBFBD>rences.",
|
||||
"abovehome" => "Le r<>pertoire courant n'a pas l'air d'etre au-dessus du r<>pertoire home.",
|
||||
"targetabovehome" => "Le r<>pertoire cible n'a pas l'air d'etre au-dessus du r<>pertoire home.",
|
||||
|
||||
// exist
|
||||
"direxist" => "Ce r<>pertoire n'existe pas.",
|
||||
//"filedoesexist" => "Ce fichier existe deja.",
|
||||
"fileexist" => "Ce fichier n'existe pas.",
|
||||
"itemdoesexist" => "Cet item existe deja.",
|
||||
"itemexist" => "Cet item n'existe pas.",
|
||||
"targetexist" => "Le r<>pertoire cible n'existe pas.",
|
||||
"targetdoesexist" => "L'item cible existe deja.",
|
||||
|
||||
// open
|
||||
"opendir" => "Impossible d'ouvrir le r<>pertoire.",
|
||||
"readdir" => "Impossible de lire le r<>pertoire.",
|
||||
|
||||
// access
|
||||
"accessdir" => "Vous n'etes pas autoris<69> a acceder a ce r<>pertoire.",
|
||||
"accessfile" => "Vous n'etes pas autoris<69> a acc<63>der a ce fichier.",
|
||||
"accessitem" => "Vous n'etes pas autoris<69> a acc<63>der a cet item.",
|
||||
"accessfunc" => "Vous ne pouvez pas utiliser cette fonction.",
|
||||
"accesstarget" => "Vous n'etes pas autoris<69> a acc<63>der au repertoire cible.",
|
||||
|
||||
// actions
|
||||
"permread" => "Lecture des permissions <20>chou<6F>e.",
|
||||
"permchange" => "Changement des permissions <20>chou<6F>.",
|
||||
"openfile" => "Ouverture du fichier <20>chou<6F>e.",
|
||||
"savefile" => "Sauvegarde du fichier <20>chou<6F>e.",
|
||||
"createfile" => "Cr<EFBFBD>ation du fichier <20>chou<6F>e.",
|
||||
"createdir" => "Cr<EFBFBD>ation du r<>pertoire <20>chou<6F>e.",
|
||||
"uploadfile" => "Envoie du fichier <20>chou<6F>.",
|
||||
"copyitem" => "La copie a <20>chou<6F>e.",
|
||||
"moveitem" => "Le d<>placement a <20>chou<6F>.",
|
||||
"delitem" => "La supression a <20>chou<6F>e.",
|
||||
"chpass" => "Le changement de mot de passe a <20>chou<6F>.",
|
||||
"deluser" => "La supression de l'usager a <20>chou<6F>e.",
|
||||
"adduser" => "L'ajout de l'usager a <20>chou<6F>e.",
|
||||
"saveuser" => "La sauvegarde de l'usager a <20>chou<6F>e.",
|
||||
"searchnothing" => "Vous devez entrez quelquechose <20> chercher.",
|
||||
|
||||
// misc
|
||||
"miscnofunc" => "Fonctionalit<EFBFBD> non disponible.",
|
||||
"miscfilesize" => "La taille du fichier exc<78>de la taille maximale autoris<69>e.",
|
||||
"miscfilepart" => "L'envoi du fichier n'a pas <20>t<EFBFBD> compl<70>t<EFBFBD>.",
|
||||
"miscnoname" => "Vous devez entrer un nom.",
|
||||
"miscselitems" => "Vous n'avez s<>lectionn<6E> aucuns item(s).",
|
||||
"miscdelitems" => "<EFBFBD>tes-vous certain de vouloir supprimer ces \"+num+\" item(s)?",
|
||||
"miscdeluser" => "<EFBFBD>tes-vous certain de vouloir supprimer l'usager '\"+user+\"'?",
|
||||
"miscnopassdiff" => "Le nouveau mot de passe est indentique au pr<70>c<EFBFBD>dent.",
|
||||
"miscnopassmatch" => "Les mots de passe diff<66>rent.",
|
||||
"miscfieldmissed" => "Un champs requis n'a pas <20>t<EFBFBD> rempli.",
|
||||
"miscnouserpass" => "Nom d'usager ou mot de passe invalide.",
|
||||
"miscselfremove" => "Vous ne pouvez pas supprimer votre compte.",
|
||||
"miscuserexist" => "Ce nom d'usager existe d<>j<EFBFBD>.",
|
||||
"miscnofinduser" => "Usager non trouv<75>.",
|
||||
);
|
||||
$GLOBALS["messages"] = array(
|
||||
// links
|
||||
"permlink" => "CHANGER LES PERMISSIONS",
|
||||
"editlink" => "<EFBFBD>DITER",
|
||||
"downlink" => "T<EFBFBD>L<EFBFBD>CHARGER",
|
||||
"uplink" => "PARENT",
|
||||
"homelink" => "HOME",
|
||||
"reloadlink" => "RAFRA<EFBFBD>CHIR",
|
||||
"copylink" => "COPIER",
|
||||
"movelink" => "D<EFBFBD>PLACER",
|
||||
"dellink" => "SUPPRIMER",
|
||||
"comprlink" => "ARCHIVER",
|
||||
"adminlink" => "ADMINISTRATION",
|
||||
"logoutlink" => "D<EFBFBD>CONNECTER",
|
||||
"uploadlink" => "ENVOYER",
|
||||
"searchlink" => "RECHERCHER",
|
||||
|
||||
// list
|
||||
"nameheader" => "Nom",
|
||||
"sizeheader" => "Taille",
|
||||
"typeheader" => "Type",
|
||||
"modifheader" => "Modifi<EFBFBD>",
|
||||
"permheader" => "Perm's",
|
||||
"actionheader" => "Actions",
|
||||
"pathheader" => "Chemin",
|
||||
|
||||
// buttons
|
||||
"btncancel" => "Annuler",
|
||||
"btnsave" => "Sauver",
|
||||
"btnchange" => "Changer",
|
||||
"btnreset" => "R<EFBFBD>initialiser",
|
||||
"btnclose" => "Fermer",
|
||||
"btncreate" => "Cr<EFBFBD>er",
|
||||
"btnsearch" => "Chercher",
|
||||
"btnupload" => "Envoyer",
|
||||
"btncopy" => "Copier",
|
||||
"btnmove" => "D<EFBFBD>placer",
|
||||
"btnlogin" => "Connecter",
|
||||
"btnlogout" => "D<EFBFBD>connecter",
|
||||
"btnadd" => "Ajouter",
|
||||
"btnedit" => "<EFBFBD>diter",
|
||||
"btnremove" => "Supprimer",
|
||||
|
||||
// actions
|
||||
"actdir" => "R<EFBFBD>pertoire",
|
||||
"actperms" => "Changer les permissions",
|
||||
"actedit" => "<EFBFBD>diter le fichier",
|
||||
"actsearchresults" => "R<EFBFBD>sultats de la recherche",
|
||||
"actcopyitems" => "Copier le(s) item(s)",
|
||||
"actcopyfrom" => "Copier de /%s <20> /%s ",
|
||||
"actmoveitems" => "D<EFBFBD>placer le(s) item(s)",
|
||||
"actmovefrom" => "D<EFBFBD>placer de /%s <20> /%s ",
|
||||
"actlogin" => "Connecter",
|
||||
"actloginheader" => "Connecter pour utiliser QuiXplorer",
|
||||
"actadmin" => "Administration",
|
||||
"actchpwd" => "Changer le mot de passe",
|
||||
"actusers" => "Usagers",
|
||||
"actarchive" => "Archiver le(s) item(s)",
|
||||
"actupload" => "Envoyer le(s) fichier(s)",
|
||||
|
||||
// misc
|
||||
"miscitems" => "Item(s)",
|
||||
"miscfree" => "Disponible",
|
||||
"miscusername" => "Usager",
|
||||
"miscpassword" => "Mot de passe",
|
||||
"miscoldpass" => "Ancien mot de passe",
|
||||
"miscnewpass" => "Nouveau mot de passe",
|
||||
"miscconfpass" => "Confirmer le mot de passe",
|
||||
"miscconfnewpass" => "Confirmer le nouveau mot de passe",
|
||||
"miscchpass" => "Changer le mot de passe",
|
||||
"mischomedir" => "R<EFBFBD>pertoire home",
|
||||
"mischomeurl" => "URL home",
|
||||
"miscshowhidden" => "Voir les items cach<63>s",
|
||||
"mischidepattern" => "Cacher pattern",
|
||||
"miscperms" => "Permissions",
|
||||
"miscuseritems" => "(nom, r<>pertoire home, Voir les items cach<63>s, permissions, actif)",
|
||||
"miscadduser" => "ajouter un usager",
|
||||
"miscedituser" => "editer l'usager '%s'",
|
||||
"miscactive" => "Actif",
|
||||
"misclang" => "Langage",
|
||||
"miscnoresult" => "Aucun r<>sultats.",
|
||||
"miscsubdirs" => "Rechercher dans les sous-r<>pertoires",
|
||||
"miscpermnames" => array("Lecture seulement","Modifier","Changement le mot de passe","Modifier & Changer le mot de passe",
|
||||
"Administrateur"),
|
||||
"miscyesno" => array("Oui","Non","O","N"),
|
||||
"miscchmod" => array("Propri<EFBFBD>taire", "Groupe", "Publique"),
|
||||
);
|
||||
?>
|
60
Modules/Downloads/lang/fr_mimes.php
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
// French Mimes Module for v2.3 (translated by Olivier Pariseau)
|
||||
|
||||
$GLOBALS["mimes"]=array(
|
||||
// dir, exe, file
|
||||
"dir" => "R<EFBFBD>pertoire",
|
||||
"exe" => "Ex<EFBFBD>cutable",
|
||||
"file" => "Fichier",
|
||||
|
||||
// text
|
||||
"text" => "Fichier texte",
|
||||
|
||||
// programming
|
||||
"php" => "Script PHP",
|
||||
"sql" => "Fichier SQL",
|
||||
"perl" => "Script PERL",
|
||||
"html" => "Page HTML",
|
||||
"js" => "Fichier Javascript",
|
||||
"css" => "Fichier CSS",
|
||||
"cgi" => "Script CGI",
|
||||
// C++
|
||||
"cpps" => "Fichier source C++",
|
||||
"cpph" => "Fichier source C++",
|
||||
// Java
|
||||
"javas" => "Fichier source Java",
|
||||
"javac" => "Fichier classe Java",
|
||||
// Pascal
|
||||
"pas" => "Fichie Pascal",
|
||||
|
||||
// images
|
||||
"gif" => "Image GIF",
|
||||
"jpg" => "Image JPG",
|
||||
"bmp" => "Image BMP",
|
||||
"png" => "Image PNG",
|
||||
|
||||
// compressed
|
||||
"zip" => "Archive ZIP",
|
||||
"tar" => "Archive TAR",
|
||||
"gzip" => "Archive GZIP",
|
||||
"bzip2" => "Archive BZIP2",
|
||||
"rar" => "Archive RAR",
|
||||
|
||||
// music
|
||||
"mp3" => "Fichier audio MP3",
|
||||
"wav" => "Fichier audio WAV",
|
||||
"midi" => "Fichier audio MIDI",
|
||||
"real" => "Fichier RealAudio",
|
||||
|
||||
// movie
|
||||
"mpg" => "Fichier vid<69>o MPG",
|
||||
"mov" => "Fichier Vid<69>o",
|
||||
"avi" => "Fichier vid<69>o AVI",
|
||||
"flash" => "Fichier vid<69>o Flash",
|
||||
|
||||
// Micosoft / Adobe
|
||||
"word" => "Document Word",
|
||||
"excel" => "Document Excel",
|
||||
"pdf" => "Fichier PDF"
|
||||
); ?>
|
158
Modules/Downloads/lang/nl.php
Normal file
@@ -0,0 +1,158 @@
|
||||
<?php
|
||||
|
||||
// Dutch Language Module for v2.3 (translated by the QuiX project)
|
||||
|
||||
$GLOBALS["charset"] = "iso-8859-1";
|
||||
$GLOBALS["text_dir"] = "ltr"; // ('ltr' for left to right, 'rtl' for right to left)
|
||||
$GLOBALS["date_fmt"] = "d-m-Y H:i";
|
||||
$GLOBALS["error_msg"] = array(
|
||||
// error
|
||||
"error" => "FOUT(EN)",
|
||||
"back" => "Ga Terug",
|
||||
|
||||
// root
|
||||
"home" => "De thuis map bestaat niet, controleer uw instellingen.",
|
||||
"abovehome" => "De huidige map mag niet hoger liggen dan de thuis map.",
|
||||
"targetabovehome" => "De doel map mag niet hoger liggen dan de thuis map.",
|
||||
|
||||
// exist
|
||||
"direxist" => "Deze map bestaat niet.",
|
||||
//"filedoesexist" => "Dit bestand bestaat al.",
|
||||
"fileexist" => "Dit bestand bestaat niet.",
|
||||
"itemdoesexist" => "Dit item bestaat al.",
|
||||
"itemexist" => "Dit item bestaat niet.",
|
||||
"targetexist" => "De doel map bestaat niet.",
|
||||
"targetdoesexist" => "Het doel item bestaat al.",
|
||||
|
||||
// open
|
||||
"opendir" => "Kan map niet openen.",
|
||||
"readdir" => "Kan map niet lezen.",
|
||||
|
||||
// access
|
||||
"accessdir" => "U hebt geen toegang tot deze map.",
|
||||
"accessfile" => "U hebt geen toegang tot dit bestand.",
|
||||
"accessitem" => "U hebt geen toegang tot dit item.",
|
||||
"accessfunc" => "U hebt geen rechten deze functie te gebruiken.",
|
||||
"accesstarget" => "U hebt geen toegang tot de doel map.",
|
||||
|
||||
// actions
|
||||
"permread" => "Rechten opvragen mislukt.",
|
||||
"permchange" => "Rechten wijzigen mislukt.",
|
||||
"openfile" => "Bestand openen mislukt.",
|
||||
"savefile" => "Bestand opslaan mislukt.",
|
||||
"createfile" => "Bestand maken mislukt.",
|
||||
"createdir" => "Map maken mislukt.",
|
||||
"uploadfile" => "Bestand uploaden mislukt.",
|
||||
"copyitem" => "Kopi<EFBFBD>ren mislukt.",
|
||||
"moveitem" => "Verplaatsen mislukt.",
|
||||
"delitem" => "Verwijderen mislukt.",
|
||||
"chpass" => "Wachtwoord wijzigen mislukt.",
|
||||
"deluser" => "Gebruiker verwijderen mislukt.",
|
||||
"adduser" => "Gebruiker toevoegen mislukt.",
|
||||
"saveuser" => "Gebruiker opslaan mislukt.",
|
||||
"searchnothing" => "U moet iets te zoeken opgeven.",
|
||||
|
||||
// misc
|
||||
"miscnofunc" => "Functie niet beschikbaar.",
|
||||
"miscfilesize" => "Bestand is groter dan de maximum grootte.",
|
||||
"miscfilepart" => "Bestand is maar gedeeltelijk geupload.",
|
||||
"miscnoname" => "U moet een naam opgeven.",
|
||||
"miscselitems" => "U hebt geen item(s) geselecteerd.",
|
||||
"miscdelitems" => "Weet u zeker dat u deze \"+num+\" item(s) wilt verwijderen?",
|
||||
"miscdeluser" => "Weet u zeker dat u gebruiker '\"+user+\"' wilt verwijderen?",
|
||||
"miscnopassdiff" => "Het nieuwe wachtwoord verschilt niet van het huidige.",
|
||||
"miscnopassmatch" => "Wachtwoorden komen niet overeen.",
|
||||
"miscfieldmissed" => "U bent een belangrijk veld vergeten in te vullen.",
|
||||
"miscnouserpass" => "Gebruiker of wachtwoord onjuist.",
|
||||
"miscselfremove" => "U kunt zichzelf niet verwijderen.",
|
||||
"miscuserexist" => "De gebruiker bestaat al.",
|
||||
"miscnofinduser" => "Kan gebruiker niet vinden.",
|
||||
);
|
||||
$GLOBALS["messages"] = array(
|
||||
// links
|
||||
"permlink" => "RECHTEN WIJZIGEN",
|
||||
"editlink" => "BEWERKEN",
|
||||
"downlink" => "DOWNLOADEN",
|
||||
"uplink" => "OMHOOG",
|
||||
"homelink" => "THUIS",
|
||||
"reloadlink" => "VERNIEUWEN",
|
||||
"copylink" => "KOPI<EFBFBD>REN",
|
||||
"movelink" => "VERPLAATSEN",
|
||||
"dellink" => "VERWIJDEREN",
|
||||
"comprlink" => "ARCHIVEREN",
|
||||
"adminlink" => "BEHEER",
|
||||
"logoutlink" => "AFMELDEN",
|
||||
"uploadlink" => "UPLOADEN",
|
||||
"searchlink" => "ZOEKEN",
|
||||
|
||||
// list
|
||||
"nameheader" => "Naam",
|
||||
"sizeheader" => "Grootte",
|
||||
"typeheader" => "Type",
|
||||
"modifheader" => "Gewijzigd",
|
||||
"permheader" => "Rechten",
|
||||
"actionheader" => "Acties",
|
||||
"pathheader" => "Pad",
|
||||
|
||||
// buttons
|
||||
"btncancel" => "Annuleren",
|
||||
"btnsave" => "Opslaan",
|
||||
"btnchange" => "Wijzigen",
|
||||
"btnreset" => "Opnieuw",
|
||||
"btnclose" => "Sluiten",
|
||||
"btncreate" => "Maken",
|
||||
"btnsearch" => "Zoeken",
|
||||
"btnupload" => "Uploaden",
|
||||
"btncopy" => "Kopi<EFBFBD>ren",
|
||||
"btnmove" => "Verplaatsen",
|
||||
"btnlogin" => "Aanmelden",
|
||||
"btnlogout" => "Afmelden",
|
||||
"btnadd" => "Toevoegen",
|
||||
"btnedit" => "Bewerken",
|
||||
"btnremove" => "Verwijderen",
|
||||
|
||||
// actions
|
||||
"actdir" => "Map",
|
||||
"actperms" => "Rechten wijzigen",
|
||||
"actedit" => "Bestand bewerken",
|
||||
"actsearchresults" => "Zoek resultaten",
|
||||
"actcopyitems" => "Item(s) kopi<70>ren",
|
||||
"actcopyfrom" => "Kopieer van /%s naar /%s ",
|
||||
"actmoveitems" => "Item(s) verplaatsen",
|
||||
"actmovefrom" => "Verplaats van /%s naar /%s ",
|
||||
"actlogin" => "Aanmelden",
|
||||
"actloginheader" => "Meld u aan om QuiXplorer te gebruiken",
|
||||
"actadmin" => "Beheer",
|
||||
"actchpwd" => "Wachtwoord wijzigen",
|
||||
"actusers" => "Gebruikers",
|
||||
"actarchive" => "Item(s) archiveren",
|
||||
"actupload" => "Bestand(en) uploaden",
|
||||
|
||||
// misc
|
||||
"miscitems" => "Item(s)",
|
||||
"miscfree" => "Beschikbaar",
|
||||
"miscusername" => "Gebruikersnaam",
|
||||
"miscpassword" => "Wachtwoord",
|
||||
"miscoldpass" => "Oud wachtwoord",
|
||||
"miscnewpass" => "Nieuw wachtwoord",
|
||||
"miscconfpass" => "Bevestig wachtwoord",
|
||||
"miscconfnewpass" => "Bevestig nieuw wachtwoord",
|
||||
"miscchpass" => "Wijzig wachtwoord",
|
||||
"mischomedir" => "Thuismap",
|
||||
"mischomeurl" => "Thuis URL",
|
||||
"miscshowhidden" => "Verborgen items weergeven",
|
||||
"mischidepattern" => "Verberg patroon",
|
||||
"miscperms" => "Rechten",
|
||||
"miscuseritems" => "(naam, thuis map, verborgen items weergeven, rechten, geactiveerd)",
|
||||
"miscadduser" => "gebruiker toevoegen",
|
||||
"miscedituser" => "gebruiker '%s' bewerken",
|
||||
"miscactive" => "Geactiveerd",
|
||||
"misclang" => "Taal",
|
||||
"miscnoresult" => "Geen resultaten beschikbaar.",
|
||||
"miscsubdirs" => "Zoek in subdirectories",
|
||||
"miscpermnames" => array("Alleen kijken","Wijzigen","Wachtwoord wijzigen",
|
||||
"Wijzigen & Wachtwoord wijzigen","Beheerder"),
|
||||
"miscyesno" => array("Ja","Nee","J","N"),
|
||||
"miscchmod" => array("Eigenaar", "Groep", "Publiek"),
|
||||
);
|
||||
?>
|
60
Modules/Downloads/lang/nl_mimes.php
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
// Dutch Mimes Module for v2.3 (translated by the QuiX project)
|
||||
|
||||
$GLOBALS["mimes"]=array(
|
||||
// dir, exe, file
|
||||
"dir" => "Map",
|
||||
"exe" => "Programma",
|
||||
"file" => "Bestand",
|
||||
|
||||
// text
|
||||
"text" => "Tekstbestand",
|
||||
|
||||
// programming
|
||||
"php" => "PHP Script",
|
||||
"sql" => "SQL Bestand",
|
||||
"perl" => "PERL Script",
|
||||
"html" => "HTML Pagina",
|
||||
"js" => "Javascript Bestand",
|
||||
"css" => "CSS Bestand",
|
||||
"cgi" => "CGI Script",
|
||||
// C++
|
||||
"cpps" => "C++ Bronbestand",
|
||||
"cpph" => "C++ Header Bestand",
|
||||
// Java
|
||||
"javas" => "Java Bronbestand",
|
||||
"javac" => "Java Class Bestand",
|
||||
// Pascal
|
||||
"pas" => "Pascal Bestand",
|
||||
|
||||
// images
|
||||
"gif" => "GIF Afbeelding",
|
||||
"jpg" => "JPG Afbeelding",
|
||||
"bmp" => "BMP Afbeelding",
|
||||
"png" => "PNG Afbeelding",
|
||||
|
||||
// compressed
|
||||
"zip" => "ZIP Archief",
|
||||
"tar" => "TAR Archief",
|
||||
"gzip" => "GZIP Archief",
|
||||
"bzip2" => "BZIP2 Archief",
|
||||
"rar" => "RAR Archief",
|
||||
|
||||
// music
|
||||
"mp3" => "MP3 Audio Bestand",
|
||||
"wav" => "WAV Audio Bestand",
|
||||
"midi" => "MIDI Audio Bestand",
|
||||
"real" => "RealAudio Bestand",
|
||||
|
||||
// movie
|
||||
"mpg" => "MPG Video Bestand",
|
||||
"mov" => "Movie Bestand",
|
||||
"avi" => "AVI Video Bestand",
|
||||
"flash" => "Flash Movie Bestand",
|
||||
|
||||
// Micosoft / Adobe
|
||||
"word" => "Word Document",
|
||||
"excel" => "Excel Document",
|
||||
"pdf" => "PDF Bestand"
|
||||
); ?>
|
158
Modules/Downloads/lang/ru.php
Normal file
@@ -0,0 +1,158 @@
|
||||
<?php
|
||||
|
||||
// Russian Language Module (translated by Mikhail M. Pigulsky - mikhail@mikhail.pp.ru)
|
||||
|
||||
$GLOBALS["charset"] = "windows-1251";
|
||||
$GLOBALS["text_dir"] = "ltr"; // ('ltr' for left to right, 'rtl' for right to left)
|
||||
$GLOBALS["date_fmt"] = "Y/m/d H:i";
|
||||
$GLOBALS["error_msg"] = array(
|
||||
// error
|
||||
"error" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28>)",
|
||||
"back" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
|
||||
// root
|
||||
"home" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>! <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.",
|
||||
"abovehome" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.",
|
||||
"targetabovehome" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.",
|
||||
|
||||
// exist
|
||||
"direxist" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
//"filedoesexist" => "<22><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"fileexist" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"itemdoesexist" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"itemexist" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"targetexist" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"targetdoesexist" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
|
||||
// open
|
||||
"opendir" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"readdir" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
|
||||
// access
|
||||
"accessdir" => "<EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"accessfile" => "<EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>",
|
||||
"accessitem" => "<EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"accessfunc" => "<EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"accesstarget" => "<EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
|
||||
// actions
|
||||
"permread" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"permchange" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"openfile" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"savefile" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"createfile" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"createdir" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"uploadfile" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"copyitem" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"moveitem" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"delitem" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"chpass" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"deluser" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"adduser" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"saveuser" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"searchnothing" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
|
||||
// misc
|
||||
"miscnofunc" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"miscfilesize" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"miscfilepart" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"miscnoname" => "<EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>",
|
||||
"miscselitems" => "<EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28>)",
|
||||
"miscdelitems" => "<EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> \"+num+\" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28>/<2F><>)?",
|
||||
"miscdeluser" => "<EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '\"+user+\"'?",
|
||||
"miscnopassdiff" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"miscnopassmatch" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"miscfieldmissed" => "<EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>",
|
||||
"miscnouserpass" => "<EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"miscselfremove" => "<EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>",
|
||||
"miscuserexist" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"miscnofinduser" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
);
|
||||
$GLOBALS["messages"] = array(
|
||||
// links
|
||||
"permlink" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"editlink" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"downlink" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"uplink" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"homelink" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"reloadlink" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"copylink" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"movelink" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"dellink" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"comprlink" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"adminlink" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"logoutlink" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"uploadlink" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"searchlink" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
|
||||
// list
|
||||
"nameheader" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"sizeheader" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"typeheader" => "<EFBFBD><EFBFBD><EFBFBD>",
|
||||
"modifheader" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"permheader" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"actionheader" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"pathheader" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
|
||||
// buttons
|
||||
"btncancel" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"btnsave" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"btnchange" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"btnreset" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"btnclose" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"btncreate" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"btnsearch" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"btnupload" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"btncopy" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"btnmove" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"btnlogin" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"btnlogout" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"btnadd" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"btnedit" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"btnremove" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
|
||||
// actions
|
||||
"actdir" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"actperms" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"actedit" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>",
|
||||
"actsearchresults" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"actcopyitems" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28>)",
|
||||
"actcopyfrom" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> /%s <20> /%s ",
|
||||
"actmoveitems" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28>)",
|
||||
"actmovefrom" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> /%s <20> /%s ",
|
||||
"actlogin" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"actloginheader" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> QuiXplorer",
|
||||
"actadmin" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"actchpwd" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"actusers" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"actarchive" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28>)",
|
||||
"actupload" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(<28>)",
|
||||
|
||||
// misc
|
||||
"miscitems" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28>/<2F><>)",
|
||||
"miscfree" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"miscusername" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"miscpassword" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"miscoldpass" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"miscnewpass" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"miscconfpass" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"miscconfnewpass" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"miscchpass" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"mischomedir" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"mischomeurl" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> URL",
|
||||
"miscshowhidden" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"mischidepattern" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"miscperms" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"miscuseritems" => "(<28><><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)",
|
||||
"miscadduser" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"miscedituser" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '%s'",
|
||||
"miscactive" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"misclang" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"miscnoresult" => "<EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"miscsubdirs" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"miscpermnames" => array("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"),
|
||||
"miscyesno" => array("<EFBFBD><EFBFBD>","<EFBFBD><EFBFBD><EFBFBD>","<EFBFBD>","<EFBFBD>"),
|
||||
"miscchmod" => array("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"),
|
||||
);
|
||||
?>
|
60
Modules/Downloads/lang/ru_mimes.php
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
// Russian Mimes Module (translated by Mikhail M. Pigulsky - mikhail@mikhail.pp.ru)
|
||||
|
||||
$GLOBALS["mimes"]=array(
|
||||
// dir, exe, file
|
||||
"dir" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"exe" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>",
|
||||
"file" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
|
||||
// text
|
||||
"text" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>",
|
||||
|
||||
// programming
|
||||
"php" => "PHP <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"sql" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD> SQL",
|
||||
"perl" => "PERL <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"html" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> HTML",
|
||||
"js" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD> Javascript",
|
||||
"css" => "CSS <20><><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"cgi" => "CGI <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
// C++
|
||||
"cpps" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> C++",
|
||||
"cpph" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> C++",
|
||||
// Java
|
||||
"javas" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> Java",
|
||||
"javac" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> Java class",
|
||||
// Pascal
|
||||
"pas" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD> Pascal",
|
||||
|
||||
// images
|
||||
"gif" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> GIF",
|
||||
"jpg" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> JPG",
|
||||
"bmp" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> BMP",
|
||||
"png" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> PNG",
|
||||
|
||||
// compressed
|
||||
"zip" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ZIP",
|
||||
"tar" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> TAR",
|
||||
"gzip" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> GZIP",
|
||||
"bzip2" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> BZIP2e",
|
||||
"rar" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> RAR",
|
||||
|
||||
// music
|
||||
"mp3" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD> MP3",
|
||||
"wav" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD> WAV",
|
||||
"midi" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD> MIDI",
|
||||
"real" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD> RealAudio",
|
||||
|
||||
// movie
|
||||
"mpg" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD> MPG",
|
||||
"mov" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD> Movie",
|
||||
"avi" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD> AVI",
|
||||
"flash" => "Flash <20><><EFBFBD><EFBFBD>",
|
||||
|
||||
// Micosoft / Adobe
|
||||
"word" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Word",
|
||||
"excel" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Excel",
|
||||
"pdf" => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD> PDF"
|
||||
); ?>
|
96
Modules/Forum/add_answer.php
Executable file
@@ -0,0 +1,96 @@
|
||||
<?php
|
||||
$tempname = $_FILES['datei']['tmp_name'];
|
||||
$name = $_FILES['datei']['name'];
|
||||
$type = $_FILES['datei']['type'];
|
||||
$size = $_FILES['datei']['size'];
|
||||
session_start();
|
||||
|
||||
$tbl_name="forum_answer"; // Table name
|
||||
$moduleurl = $_POST["path"];
|
||||
|
||||
|
||||
// Connect to server and select database.
|
||||
include ($_SERVER["DOCUMENT_ROOT"]."/Config/_dbconfig_.php");
|
||||
@$y = mysql_connect($MYSQL_HOST,$MYSQL_USER,$MYSQL_PASS);
|
||||
@$x = mysql_select_db($MYSQL_DATABASE);
|
||||
if (empty($x))
|
||||
{
|
||||
die ("Keine Verbindung zur Datenbank! [<b><font color=red>FAIL</b></font>]<br>");
|
||||
}
|
||||
|
||||
// Get value of id that sent from hidden field
|
||||
$id=mysql_real_escape_string($_POST['id']);
|
||||
|
||||
// Find highest answer number.
|
||||
$sql="SELECT MAX(a_id) AS Maxa_id FROM ". $tbl_name ." WHERE question_id='".$id."'";
|
||||
$result=mysql_query($sql);
|
||||
$rows=mysql_fetch_array($result);
|
||||
// add + 1 to highest answer number and keep it in variable name "$Max_id". if there no answer yet set it = 1
|
||||
if ($rows)
|
||||
{
|
||||
$Max_id = $rows['Maxa_id']+1;
|
||||
}
|
||||
else
|
||||
{
|
||||
$Max_id = 1;
|
||||
}
|
||||
|
||||
//----------------- Uploads
|
||||
if($type == "php" || $type == "application/x-httpd-php" || $type == "htm" || $type == "html" || $type == "text/html")
|
||||
die("NO HTML OR PHP FILES ALLOWED!");
|
||||
if($tempname != "" && $name != "")
|
||||
{
|
||||
move_uploaded_file($tempname, $_SERVER["DOCUMENT_ROOT"]."/Modules/Forum/uploads/".$id."-".$Max_id."-".$name);
|
||||
}
|
||||
//die("tmP:".$tempname." name:".$name);
|
||||
|
||||
//-----------------
|
||||
|
||||
|
||||
// get values that sent from form
|
||||
$a_name=mysql_real_escape_string($_SESSION["user_nickname"]);
|
||||
if($a_name == "" || !$_SESSION['user_nickname'])
|
||||
{
|
||||
$a_name = "guest";
|
||||
}
|
||||
$a_avatar=mysql_real_escape_string($_SESSION["user_avatar"]);
|
||||
$a_answer=mysql_real_escape_string($_POST['a_answer']);
|
||||
|
||||
$datetime=date("d-m-y H:i:s"); // create date and time
|
||||
|
||||
if($tempname != "" && $tempname != "")
|
||||
{
|
||||
$dbeintrag= $id.'-'.$Max_id.'-'.$name;
|
||||
}
|
||||
else
|
||||
{
|
||||
$dbeintrag = "";
|
||||
}
|
||||
if($a_answer != "")
|
||||
{
|
||||
// Insert answer
|
||||
$sql2="INSERT INTO $tbl_name(question_id, a_id, a_name, a_avatar, a_answer, a_datetime, a_attachment)VALUES('$id', '$Max_id', '$a_name', '$a_avatar', '$a_answer', '$datetime', '$dbeintrag')";
|
||||
$result2=mysql_query($sql2);
|
||||
|
||||
if($result2)
|
||||
{
|
||||
// If added new answer, add value +1 in reply column
|
||||
$tbl_name2="forum_question";
|
||||
$sql3="UPDATE $tbl_name2 SET reply='$Max_id' WHERE id='$id'";
|
||||
$result3=mysql_query($sql3);
|
||||
$datetime=date('Y-m-d H:i:s');
|
||||
$sql3="UPDATE $tbl_name2 SET `lastupdate` = NOW( ) WHERE `forum_question`.`id`='$id'";
|
||||
$result3=mysql_query($sql3);
|
||||
header ("Location: ".$moduleurl."&uebergabe=1&uebergabe2=".$id);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "ERROR";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
header ("Location: ".$moduleurl."&uebergabe=1&uebergabe2=".$id);
|
||||
}
|
||||
mysql_close();
|
||||
?>
|
52
Modules/Forum/add_topic.php
Executable file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
include($_SERVER["DOCUMENT_ROOT"]."/Site/checkuser.php");
|
||||
$tbl_name="forum_question"; // Table name
|
||||
$uebergabe = 1;
|
||||
// Connect to server and select database.
|
||||
include ($_SERVER["DOCUMENT_ROOT"]."/Config/_dbconfig_.php");
|
||||
|
||||
$moduleurl = $_POST['path'];
|
||||
@$y = mysql_connect($MYSQL_HOST,$MYSQL_USER,$MYSQL_PASS);
|
||||
@$x = mysql_select_db($MYSQL_DATABASE);
|
||||
if (empty($x))
|
||||
{
|
||||
die ("Keine Verbindung zur Datenbank! [<b><font color=red>FAIL</b></font>]<br>");
|
||||
}
|
||||
|
||||
// get data that sent from form
|
||||
$topic=mysql_real_escape_string($_POST['topic']);
|
||||
$writeperm=mysql_real_escape_string($_POST['writeperm']);
|
||||
$readperm=mysql_real_escape_string($_POST['readperm']);
|
||||
$detail=mysql_real_escape_string($_POST['detail']);
|
||||
$name=mysql_real_escape_string($_SESSION['user_nickname']);
|
||||
$avatar=mysql_real_escape_string($_SESSION['user_avatar']);
|
||||
|
||||
$datetime=date("d-m-y H:i:s"); //create date time
|
||||
if($topic != "" && $detail != "")
|
||||
{
|
||||
$sql="INSERT INTO $tbl_name(topic, detail, name, avatar, w_adminonly, w_guest, r_adminonly, r_guest, datetime)VALUES('$topic', '$detail', '$name', '$avatar', ";
|
||||
if($writeperm=="admin"){$sql=$sql."1, ";}else{$sql=$sql."0, ";}
|
||||
if($writeperm=="any"){$sql=$sql."1, ";}else{$sql=$sql."0, ";}
|
||||
if($readperm=="admin"){$sql=$sql."1, ";}else{$sql=$sql."0, ";}
|
||||
if($readperm=="any"){$sql=$sql."1, ";}else{$sql=$sql."0, ";}
|
||||
$sql=$sql."'$datetime')";
|
||||
//echo $sql;
|
||||
$result=mysql_query($sql);
|
||||
|
||||
if($result)
|
||||
{
|
||||
header ("Location: ".$moduleurl."&uebergabe=0");
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "ERROR";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
header ("Location: ".$moduleurl."&uebergabe=0");
|
||||
}
|
||||
mysql_close();
|
||||
?>
|
BIN
Modules/Forum/avatar/0.png
Executable file
After Width: | Height: | Size: 64 KiB |
BIN
Modules/Forum/avatar/1.png
Executable file
After Width: | Height: | Size: 10 KiB |
BIN
Modules/Forum/avatar/10.png
Executable file
After Width: | Height: | Size: 12 KiB |
BIN
Modules/Forum/avatar/100.png
Executable file
After Width: | Height: | Size: 11 KiB |
BIN
Modules/Forum/avatar/101.png
Executable file
After Width: | Height: | Size: 13 KiB |
BIN
Modules/Forum/avatar/102.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
Modules/Forum/avatar/11.png
Executable file
After Width: | Height: | Size: 12 KiB |
BIN
Modules/Forum/avatar/12.png
Executable file
After Width: | Height: | Size: 11 KiB |
BIN
Modules/Forum/avatar/13.png
Executable file
After Width: | Height: | Size: 16 KiB |
BIN
Modules/Forum/avatar/14.png
Executable file
After Width: | Height: | Size: 13 KiB |
BIN
Modules/Forum/avatar/15.png
Executable file
After Width: | Height: | Size: 8.2 KiB |
BIN
Modules/Forum/avatar/16.png
Executable file
After Width: | Height: | Size: 10 KiB |
BIN
Modules/Forum/avatar/17.png
Executable file
After Width: | Height: | Size: 13 KiB |
BIN
Modules/Forum/avatar/18.png
Executable file
After Width: | Height: | Size: 16 KiB |
BIN
Modules/Forum/avatar/19.png
Executable file
After Width: | Height: | Size: 15 KiB |
BIN
Modules/Forum/avatar/2.png
Executable file
After Width: | Height: | Size: 49 KiB |