CRLF -> LF
Dieser Commit ist enthalten in:
Ursprung
82085eda16
Commit
b1a10a129d
39 geänderte Dateien mit 1154 neuen und 1128 gelöschten Zeilen
22
.gitattributes
gevendort
Normale Datei
22
.gitattributes
gevendort
Normale Datei
|
@ -0,0 +1,22 @@
|
|||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
||||
|
||||
# Custom for Visual Studio
|
||||
*.cs diff=csharp
|
||||
*.sln merge=union
|
||||
*.csproj merge=union
|
||||
*.vbproj merge=union
|
||||
*.fsproj merge=union
|
||||
*.dbproj merge=union
|
||||
|
||||
# Standard to msysgit
|
||||
*.doc diff=astextplain
|
||||
*.DOC diff=astextplain
|
||||
*.docx diff=astextplain
|
||||
*.DOCX diff=astextplain
|
||||
*.dot diff=astextplain
|
||||
*.DOT diff=astextplain
|
||||
*.pdf diff=astextplain
|
||||
*.PDF diff=astextplain
|
||||
*.rtf diff=astextplain
|
||||
*.RTF diff=astextplain
|
4
.gitignore
gevendort
Normale Datei
4
.gitignore
gevendort
Normale Datei
|
@ -0,0 +1,4 @@
|
|||
|
||||
/.idea
|
||||
/application/configs/users.ini
|
||||
/work/config/mysqldumper.ini
|
|
@ -1,11 +1,11 @@
|
|||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
|
||||
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
|
||||
|
||||
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
|
||||
|
||||
Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
|
||||
|
||||
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis.
|
||||
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
|
||||
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
|
||||
|
||||
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
|
||||
|
||||
Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
|
||||
|
||||
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis.
|
||||
|
||||
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, At accusam aliquyam diam diam dolore dolores duo eirmod eos erat, et nonumy sed tempor et et invidunt justo labore Stet clita ea et gubergren, kasd magna no rebum. sanctus sea sed takimata ut vero voluptua. est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: DSB (15), Hardlayers (2), mega_soft (216)
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: DSB (15), Hardlayers (2), mega_soft (216)
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => 'حدث',
|
||||
'L_ACTIVATED' => 'تفعيل',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => '',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => '',
|
||||
'L_ZEND_ID_NOT_SAME' => '',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: batzidi (69)
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: batzidi (69)
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => 'Действие',
|
||||
'L_ACTIVATED' => 'Активиран',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => '',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => '',
|
||||
'L_ZEND_ID_NOT_SAME' => '',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: caos30 (766), DSB (7)
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: caos30 (766), DSB (7)
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => 'Acció',
|
||||
'L_ACTIVATED' => 'actiu',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => 'Només es permeten digits numerals.',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => 'Tipus no vàlid. S\'esperava String (cadena de texte), Integer (nombre sencer), Float (nombre amb coma flotant), Boolean (boleà) o Array (matriz).',
|
||||
'L_ZEND_ID_NOT_SAME' => 'Ambdós IDs no coincideixen.',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by:
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by:
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => 'Akce',
|
||||
'L_ACTIVATED' => 'aktivní',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => '',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => '',
|
||||
'L_ZEND_ID_NOT_SAME' => '',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: jsm (359)
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: jsm (359)
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => 'Aktion',
|
||||
'L_ACTIVATED' => 'aktiveret',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => 'Kun tal kan indtastes.',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => 'Typen af værdien er ugyldig. Streng, heltal, float, boolean eller array forventet.',
|
||||
'L_ZEND_ID_NOT_SAME' => 'De to givne tokens stemmer ikke overens.',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: DSB (286), JanRei (23), Kyoya (31), StvN (2)
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: DSB (286), JanRei (23), Kyoya (31), StvN (2)
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => 'Aktion',
|
||||
'L_ACTIVATED' => 'aktiviert',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => 'Es dürfen nur Zahlen eingegeben werden.',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => 'Der Typ des Wertes ist ungültig. Es wird ein String, Integer, Float, Boolean oder Array erwartet.',
|
||||
'L_ZEND_ID_NOT_SAME' => 'Die beiden angegebenen Merkmale stimmen nicht überein.',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by:
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by:
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => 'Aktion',
|
||||
'L_ACTIVATED' => 'aktiviärt',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => '',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => '',
|
||||
'L_ZEND_ID_NOT_SAME' => '',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by:
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by:
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => '',
|
||||
'L_ACTIVATED' => 'aktivéiert',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => '',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => '',
|
||||
'L_ZEND_ID_NOT_SAME' => '',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: diastasi (244)
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: diastasi (244)
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => 'Ενέργεια',
|
||||
'L_ACTIVATED' => 'ενεργό',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => 'Επιτρέπονται μόνο ψηφία',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => 'Δόθηκε άκυρος τύπος. Αναμενόταν κείμενο, ακέραιος, float, boolean ή array.',
|
||||
'L_ZEND_ID_NOT_SAME' => 'Τα δύο σύμβολα δεν ταιριάζουν',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: DSB (257), JanRei (14), Kyoya (31), StvN (6), zuma (20)
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: DSB (257), JanRei (14), Kyoya (31), StvN (6), zuma (20)
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => 'Action',
|
||||
'L_ACTIVATED' => 'activated',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => 'Only digits are allowed.',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => 'Invalid type given. String, integer, float, boolean or array expected.',
|
||||
'L_ZEND_ID_NOT_SAME' => 'The two given tokens do not match.',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: caos30 (349), mike (160), StvN (135)
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: caos30 (349), mike (160), StvN (135)
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => 'Acción',
|
||||
'L_ACTIVATED' => 'activo',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => 'Sólo se permite números.',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => 'Tipo no válido. Se esperaba String (cadena de texto), Integer (número entero), Float (número con coma flotante), Boolean (boleano) o Array (matriz).',
|
||||
'L_ZEND_ID_NOT_SAME' => 'Ambos IDs no coinciden.',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: DSB (1), majidfire2003 (151)
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: DSB (1), majidfire2003 (151)
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => 'عمليات',
|
||||
'L_ACTIVATED' => 'فعال',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => 'فقط ارقام معتبر میباشند',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => 'مقدار ناصحیح وارد شده است',
|
||||
'L_ZEND_ID_NOT_SAME' => 'رمز ها یکسان نیستند',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: Diaboloz (48), mike (221)
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: Diaboloz (48), mike (221)
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => 'Action',
|
||||
'L_ACTIVATED' => 'activé',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => '',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => '',
|
||||
'L_ZEND_ID_NOT_SAME' => 'Les deux données ne correspondent pas !',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: meisterix (13)
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: meisterix (13)
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => 'Akcija',
|
||||
'L_ACTIVATED' => 'aktiviran',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => '',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => '',
|
||||
'L_ZEND_ID_NOT_SAME' => '',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: Eleariel (434)
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: Eleariel (434)
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => '',
|
||||
'L_ACTIVATED' => 'aktiválva',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => 'Csak számok engedélyezettek.',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => '',
|
||||
'L_ZEND_ID_NOT_SAME' => '',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: eclissesolare (81), gattobenny (426)
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: eclissesolare (81), gattobenny (426)
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => 'Azione',
|
||||
'L_ACTIVATED' => 'attivato',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => '',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => '',
|
||||
'L_ZEND_ID_NOT_SAME' => '',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: DSB (1), JesseB (367), pavdeijk (60)
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: DSB (1), JesseB (367), pavdeijk (60)
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => 'Actie',
|
||||
'L_ACTIVATED' => 'geactiveerd',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => 'Er zijn alleen maar cijfers toegelaten.',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => 'Foute formaat: String, integer, float, boolean en array is verwacht.',
|
||||
'L_ZEND_ID_NOT_SAME' => 'Beide aangegeven tokens komen niet uit.',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: Marek.W (147), omen1975 (172)
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: Marek.W (147), omen1975 (172)
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => 'Akcja',
|
||||
'L_ACTIVATED' => 'aktywowany',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => 'Dopuszczalne są tylko cyfry.',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => '',
|
||||
'L_ZEND_ID_NOT_SAME' => 'Tokeny nie pasują do siebie.',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by:
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by:
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => '',
|
||||
'L_ACTIVATED' => 'ativado',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => '',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => '',
|
||||
'L_ZEND_ID_NOT_SAME' => '',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: UX (306)
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: UX (306)
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => 'Actiunea',
|
||||
'L_ACTIVATED' => 'aktivat',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => '',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => '',
|
||||
'L_ZEND_ID_NOT_SAME' => '',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: elena (90), KT (263)
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: elena (90), KT (263)
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => 'Действие',
|
||||
'L_ACTIVATED' => 'активировано',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => '',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => '',
|
||||
'L_ZEND_ID_NOT_SAME' => '',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: brahma9277 (139), Harry (460)
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: brahma9277 (139), Harry (460)
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => 'Akcia',
|
||||
'L_ACTIVATED' => 'Aktívne',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => 'Len číslice sú povolené.',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => 'Typ hodnoty je neplatný. Očakáva sa, reťazec, celé číslo, float, boolean alebo pole.',
|
||||
'L_ZEND_ID_NOT_SAME' => 'Tieto dve uvedené charakteristiky nezodpovedajú.',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: gapa (759)
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: gapa (759)
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => 'Akcija',
|
||||
'L_ACTIVATED' => 'vključeno',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => 'Samo številke so dovoljene.',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => 'Podan je napačen tip. Niz, celo število, decimalno število, logična vrednost ali polje je pričakovan tip.',
|
||||
'L_ZEND_ID_NOT_SAME' => 'Ta dva žetona se ne ujemata.',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: HolgerGremminger (628)
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: HolgerGremminger (628)
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => 'Aktion',
|
||||
'L_ACTIVATED' => 'aktiverat',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => 'Ange endast siffror.',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => 'Värdets typ är ogiltig. String, Integer, Float, Boolean eller Array förväntas.',
|
||||
'L_ZEND_ID_NOT_SAME' => 'De bägge kriterierna stämmer ej överens.',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: katpatuka (23), Tango (39)
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: katpatuka (23), Tango (39)
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => 'İşlem',
|
||||
'L_ACTIVATED' => 'etkin',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => '',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => '',
|
||||
'L_ZEND_ID_NOT_SAME' => '',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: laze (255)
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: laze (255)
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => 'Thực hiện',
|
||||
'L_ACTIVATED' => 'đã kích hoạt',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => 'Chỉ cho phép các chữ số.',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => 'Kiểu này không hợp lệ. Yêu cầu chuỗi, số nguyên, boolean float, hoặc một mảng.',
|
||||
'L_ZEND_ID_NOT_SAME' => 'Hai chuỗi không khớp.',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: fmben (74)
|
||||
*/
|
||||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage Languages
|
||||
* @version $Rev: 1227 $
|
||||
* @author $Author: DSB $
|
||||
* Maintained by: fmben (74)
|
||||
*/
|
||||
$lang=array(
|
||||
'L_ACTION' => '',
|
||||
'L_ACTIVATED' => '激活',
|
||||
|
@ -765,5 +765,5 @@ $lang=array(
|
|||
'L_ZEND_ID_NOT_DIGITS' => '',
|
||||
'L_ZEND_ID_NOT_EMPTY_INVALID' => '',
|
||||
'L_ZEND_ID_NOT_SAME' => '',
|
||||
);
|
||||
);
|
||||
return $lang;
|
||||
|
|
|
@ -1,163 +1,163 @@
|
|||
<?php
|
||||
$t = Msd_Language::getInstance()->getTranslator();
|
||||
?>
|
||||
<div data-role="page" id="config_menu">
|
||||
<?php echo $this->partial('/partials/header.phtml', array(
|
||||
'title' => 'L_CONFIG',
|
||||
'lastPage' => array(
|
||||
'title' => 'L_HOME',
|
||||
'url' => $this->absoluteUrl(array(
|
||||
'controller' => 'index',
|
||||
'action' => 'index'
|
||||
)),
|
||||
))); ?>
|
||||
<div data-role="content">
|
||||
<form id="config_form" action="<?php echo $this->absoluteUrl(array(
|
||||
'controller' => 'config',
|
||||
'action' => 'index'
|
||||
));?>">
|
||||
<button type="submit"><?php echo $t->_('L_SAVE'); ?></button>
|
||||
<br />
|
||||
<ul id="config_menu_list" data-role="listview">
|
||||
<li>
|
||||
<a href="#config_general">
|
||||
<?php echo $this->lang->L_GENERAL;?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#config_dbuser">
|
||||
<?php echo $this->lang->L_DBS;?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#config_interface">
|
||||
<?php echo $this->lang->L_CONFIG_INTERFACE;?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#config_autodelete">
|
||||
<?php echo $this->lang->L_CONFIG_AUTODELETE;?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#config_email">
|
||||
<?php echo $this->lang->L_EMAIL;?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#config_ftp">
|
||||
<?php echo $this->lang->L_FTP;?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#config_cronscript">
|
||||
<?php echo $this->lang->L_CRONSCRIPT;?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#config_configfiles">
|
||||
<?php echo $this->lang->L_CONFIGFILES;?>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br />
|
||||
<button type="submit"><?php echo $t->_('L_SAVE'); ?></button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="config_general" data-role="page">
|
||||
<?php echo $this->partial('/partials/header.phtml', array(
|
||||
'title' => 'L_GENERAL',
|
||||
'lastPage' => array(
|
||||
'url' => 'back',
|
||||
'title' => 'L_CONFIG'
|
||||
))); ?>
|
||||
<div data-role="content">
|
||||
<?php echo $this->form->getSubForm('general'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="config_dbuser" data-role="page">
|
||||
<?php echo $this->partial('/partials/header.phtml', array(
|
||||
'title' => 'L_DBS',
|
||||
'lastPage' => array(
|
||||
'url' => 'back',
|
||||
'title' => 'L_CONFIG'
|
||||
))); ?>
|
||||
<div data-role="content">
|
||||
<?php echo $this->form->getSubForm('dbuser'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="config_interface" data-role="page">
|
||||
<?php echo $this->partial('/partials/header.phtml', array(
|
||||
'title' => 'L_CONFIG_INTERFACE',
|
||||
'lastPage' => array(
|
||||
'url' => 'back',
|
||||
'title' => 'L_CONFIG'
|
||||
)));?>
|
||||
<div data-role="content">
|
||||
<?php echo $this->form->getSubForm('interface'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="config_autodelete" data-role="page">
|
||||
<?php echo $this->partial('/partials/header.phtml', array(
|
||||
'title' => 'L_CONFIG_AUTODELETE',
|
||||
'lastPage' => array(
|
||||
'url' => 'back',
|
||||
'title' => 'L_CONFIG'
|
||||
)));?>
|
||||
<div data-role="content">
|
||||
<?php echo $this->form->getSubForm('autodelete'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="config_email" data-role="page">
|
||||
<?php echo $this->partial('/partials/header.phtml', array(
|
||||
'title' => 'L_EMAIL',
|
||||
'lastPage' => array(
|
||||
'url' => 'back',
|
||||
'title' => 'L_CONFIG'
|
||||
))); ?>
|
||||
<div data-role="content">
|
||||
<?php echo $this->form->getSubForm('email'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="config_ftp" data-role="page">
|
||||
<?php echo $this->partial('/partials/header.phtml', array(
|
||||
'title' => 'L_FTP',
|
||||
'lastPage' => array(
|
||||
'url' => 'back',
|
||||
'title' => 'L_CONFIG'
|
||||
))); ?>
|
||||
<div data-role="content">
|
||||
<?php echo $this->form->getSubForm('ftp'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="config_cronscript" data-role="page">
|
||||
<?php echo $this->partial('/partials/header.phtml', array(
|
||||
'title' => 'L_CRONSCRIPT',
|
||||
'lastPage' => array(
|
||||
'url' => 'back',
|
||||
'title' => 'L_CONFIG'
|
||||
))); ?>
|
||||
<div data-role="content">
|
||||
<?php echo $this->form->getSubForm('cronscript'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="config_configfiles" data-role="page">
|
||||
<?php echo $this->partial('/partials/header.phtml', array(
|
||||
'title' => 'L_CONFIGFILES',
|
||||
'lastPage' => array(
|
||||
'url' => 'back',
|
||||
'title' => 'L_CONFIG'
|
||||
))); ?>
|
||||
<div data-role="content">
|
||||
<?php echo $this->form->getSubForm('configfiles'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$t = Msd_Language::getInstance()->getTranslator();
|
||||
?>
|
||||
<div data-role="page" id="config_menu">
|
||||
<?php echo $this->partial('/partials/header.phtml', array(
|
||||
'title' => 'L_CONFIG',
|
||||
'lastPage' => array(
|
||||
'title' => 'L_HOME',
|
||||
'url' => $this->absoluteUrl(array(
|
||||
'controller' => 'index',
|
||||
'action' => 'index'
|
||||
)),
|
||||
))); ?>
|
||||
<div data-role="content">
|
||||
<form id="config_form" action="<?php echo $this->absoluteUrl(array(
|
||||
'controller' => 'config',
|
||||
'action' => 'index'
|
||||
));?>">
|
||||
<button type="submit"><?php echo $t->_('L_SAVE'); ?></button>
|
||||
<br />
|
||||
<ul id="config_menu_list" data-role="listview">
|
||||
<li>
|
||||
<a href="#config_general">
|
||||
<?php echo $this->lang->L_GENERAL;?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#config_dbuser">
|
||||
<?php echo $this->lang->L_DBS;?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#config_interface">
|
||||
<?php echo $this->lang->L_CONFIG_INTERFACE;?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#config_autodelete">
|
||||
<?php echo $this->lang->L_CONFIG_AUTODELETE;?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#config_email">
|
||||
<?php echo $this->lang->L_EMAIL;?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#config_ftp">
|
||||
<?php echo $this->lang->L_FTP;?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#config_cronscript">
|
||||
<?php echo $this->lang->L_CRONSCRIPT;?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#config_configfiles">
|
||||
<?php echo $this->lang->L_CONFIGFILES;?>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br />
|
||||
<button type="submit"><?php echo $t->_('L_SAVE'); ?></button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="config_general" data-role="page">
|
||||
<?php echo $this->partial('/partials/header.phtml', array(
|
||||
'title' => 'L_GENERAL',
|
||||
'lastPage' => array(
|
||||
'url' => 'back',
|
||||
'title' => 'L_CONFIG'
|
||||
))); ?>
|
||||
<div data-role="content">
|
||||
<?php echo $this->form->getSubForm('general'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="config_dbuser" data-role="page">
|
||||
<?php echo $this->partial('/partials/header.phtml', array(
|
||||
'title' => 'L_DBS',
|
||||
'lastPage' => array(
|
||||
'url' => 'back',
|
||||
'title' => 'L_CONFIG'
|
||||
))); ?>
|
||||
<div data-role="content">
|
||||
<?php echo $this->form->getSubForm('dbuser'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="config_interface" data-role="page">
|
||||
<?php echo $this->partial('/partials/header.phtml', array(
|
||||
'title' => 'L_CONFIG_INTERFACE',
|
||||
'lastPage' => array(
|
||||
'url' => 'back',
|
||||
'title' => 'L_CONFIG'
|
||||
)));?>
|
||||
<div data-role="content">
|
||||
<?php echo $this->form->getSubForm('interface'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="config_autodelete" data-role="page">
|
||||
<?php echo $this->partial('/partials/header.phtml', array(
|
||||
'title' => 'L_CONFIG_AUTODELETE',
|
||||
'lastPage' => array(
|
||||
'url' => 'back',
|
||||
'title' => 'L_CONFIG'
|
||||
)));?>
|
||||
<div data-role="content">
|
||||
<?php echo $this->form->getSubForm('autodelete'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="config_email" data-role="page">
|
||||
<?php echo $this->partial('/partials/header.phtml', array(
|
||||
'title' => 'L_EMAIL',
|
||||
'lastPage' => array(
|
||||
'url' => 'back',
|
||||
'title' => 'L_CONFIG'
|
||||
))); ?>
|
||||
<div data-role="content">
|
||||
<?php echo $this->form->getSubForm('email'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="config_ftp" data-role="page">
|
||||
<?php echo $this->partial('/partials/header.phtml', array(
|
||||
'title' => 'L_FTP',
|
||||
'lastPage' => array(
|
||||
'url' => 'back',
|
||||
'title' => 'L_CONFIG'
|
||||
))); ?>
|
||||
<div data-role="content">
|
||||
<?php echo $this->form->getSubForm('ftp'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="config_cronscript" data-role="page">
|
||||
<?php echo $this->partial('/partials/header.phtml', array(
|
||||
'title' => 'L_CRONSCRIPT',
|
||||
'lastPage' => array(
|
||||
'url' => 'back',
|
||||
'title' => 'L_CONFIG'
|
||||
))); ?>
|
||||
<div data-role="content">
|
||||
<?php echo $this->form->getSubForm('cronscript'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="config_configfiles" data-role="page">
|
||||
<?php echo $this->partial('/partials/header.phtml', array(
|
||||
'title' => 'L_CONFIGFILES',
|
||||
'lastPage' => array(
|
||||
'url' => 'back',
|
||||
'title' => 'L_CONFIG'
|
||||
))); ?>
|
||||
<div data-role="content">
|
||||
<?php echo $this->form->getSubForm('configfiles'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
<?php
|
||||
$t = Msd_Language::getInstance()->getTranslator();
|
||||
?>
|
||||
<div data-role="header" data-position="inline">
|
||||
<?php if(isset($this->lastPage)): ?>
|
||||
<?php $lastPage = $this->lastPage;?>
|
||||
<?php if($lastPage['url'] != 'back'): ?>
|
||||
<a href="<?php echo $lastPage['url'];?>" data-ajax="false" data-icon="back">
|
||||
<?php else: ?>
|
||||
<a href="#" data-rel="back" data-icon="back">
|
||||
<?php endif; ?>
|
||||
<?php echo $t->_($lastPage['title']);?></a>
|
||||
<?php endif; ?>
|
||||
<h1><?php echo $t->_($this->title); ?></h1>
|
||||
<a href="<?php echo $this->absoluteUrl(array(
|
||||
'controller' => 'index',
|
||||
'action' => 'index'
|
||||
)); ?>" data-ajax="false" data-icon="home"><?php echo $t->_('L_HOME'); ?></a>
|
||||
<?php
|
||||
$t = Msd_Language::getInstance()->getTranslator();
|
||||
?>
|
||||
<div data-role="header" data-position="inline">
|
||||
<?php if(isset($this->lastPage)): ?>
|
||||
<?php $lastPage = $this->lastPage;?>
|
||||
<?php if($lastPage['url'] != 'back'): ?>
|
||||
<a href="<?php echo $lastPage['url'];?>" data-ajax="false" data-icon="back">
|
||||
<?php else: ?>
|
||||
<a href="#" data-rel="back" data-icon="back">
|
||||
<?php endif; ?>
|
||||
<?php echo $t->_($lastPage['title']);?></a>
|
||||
<?php endif; ?>
|
||||
<h1><?php echo $t->_($this->title); ?></h1>
|
||||
<a href="<?php echo $this->absoluteUrl(array(
|
||||
'controller' => 'index',
|
||||
'action' => 'index'
|
||||
)); ?>" data-ajax="false" data-icon="home"><?php echo $t->_('L_HOME'); ?></a>
|
||||
</div>
|
|
@ -1,89 +1,89 @@
|
|||
<?php
|
||||
$formUrl = $this->url(array('controller'=>'sql','action'=>'create.database'));
|
||||
?>
|
||||
<div id="content">
|
||||
<h2><?php echo $this->lang->L_CREATE_DATABASE;?></h2>
|
||||
<?php echo $this->sqlHeadNavi(); ?>
|
||||
<h4><?php echo $this->lang->L_CREATE_DATABASE;?>:</h4>
|
||||
<form method="post" action="<?php echo $formUrl;?>">
|
||||
<table class="bdr" summary="create new database">
|
||||
<tr class="row-odd">
|
||||
<td><?php echo $this->lang->L_DB_NAME; ?>:</td>
|
||||
<td><input type="text" class="text" id="dbName" name="newDbInfo[dbName]" value="<?php echo (isset($this->dbCreated) && !$this->dbCreated) ? $this->out($this->newDbInfo['dbName']) : ''; ?>"/></td>
|
||||
</tr>
|
||||
<tr class="row-even">
|
||||
<td><?php echo $this->lang->L_DEFAULT_CHARSET;?>:</td>
|
||||
<td><select class="select" id="dbCharset" name="newDbInfo[dbCharset]"><?php foreach ($this->charsets as $charset) { ?>
|
||||
<option value="<?php echo $this->out($charset); ?>"<?php echo ($charset == $this->newDbInfo['dbCharset']) ? ' selected="selected"' : ''; ?>><?php echo $this->out($charset); ?></option>
|
||||
<?php } ?></select></td>
|
||||
</tr>
|
||||
<tr class="row-odd">
|
||||
<td><?php echo $this->lang->L_DEFAULT_COLLATION_NAME;?>:</td>
|
||||
<td><select class="select" id="dbCollation" name="newDbInfo[dbCollation]"><?php foreach ($this->collations[$this->newDbInfo['dbCharset']] as $collation) { ?>
|
||||
<option value="<?php echo $this->out($collation); ?>"<?php echo ($collation == $this->newDbInfo['dbCollation']) ? ' selected="selected"' : ''; ?>><?php echo $this->out($collation); ?></option>
|
||||
<?php } ?></select></td>
|
||||
</tr>
|
||||
<tr class="row-even">
|
||||
<td> </td>
|
||||
<td class="buttonBar">
|
||||
<button type="submit" class="Formbutton"><?php echo $this->getIcon('Database', '', 16); echo $this->lang->L_CREATE_DATABASE; ?></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<?php $this->jQuery()->onLoadCaptureStart(); ?>
|
||||
var dbCollations = <?php echo json_encode($this->collations); ?>;
|
||||
var dbDefaultCollations = <?php echo json_encode($this->defaultCollations); ?>;
|
||||
$('#dbCharset').bind('change', function() {
|
||||
var newOpts = '';
|
||||
var curCharset = $(this).val();
|
||||
$(dbCollations[curCharset]).each(function(id, v) {
|
||||
var selected = '';
|
||||
if (v == dbDefaultCollations[curCharset]) {
|
||||
selected = ' selected="selected"';
|
||||
}
|
||||
newOpts += '<option value="' + v +'"' + selected + '>' + v + '</option>';
|
||||
$('#dbCollation').html(newOpts);
|
||||
});
|
||||
});
|
||||
$(document).ready(function() {
|
||||
$('#dbName').focus();
|
||||
});
|
||||
<?php
|
||||
$this->jQuery()->onLoadCaptureEnd();
|
||||
|
||||
if (isset($this->dbCreated)) {
|
||||
if ($this->dbCreated) {
|
||||
$this->popUpMessage()->addMessage(
|
||||
'dialogDbCreation',
|
||||
'L_CREATE_DATABASE',
|
||||
array('L_DATABASE_CREATED_SUCCESS', $this->newDbInfo['dbName']),
|
||||
array(
|
||||
'modal' => 'true',
|
||||
'autoOpen' => 'true',
|
||||
'buttons' => array(
|
||||
'L_OK' => 'function(){$(this).dialog("close"); }',
|
||||
)
|
||||
)
|
||||
);
|
||||
} else {
|
||||
$this->popUpMessage()->addMessage(
|
||||
'dialogDbCreation',
|
||||
'L_CREATE_DATABASE',
|
||||
array(
|
||||
'L_DATABASE_CREATED_FAILED',
|
||||
'<span class="error">(' . $this->errorInfo['code'] . ') '
|
||||
. $this->errorInfo['message'] .'</span>'
|
||||
),
|
||||
array(
|
||||
'modal' => 'true',
|
||||
'autoOpen' => 'true',
|
||||
'buttons' => array(
|
||||
'L_OK' => 'function(){$(this).dialog("close"); }',
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
<?php
|
||||
$formUrl = $this->url(array('controller'=>'sql','action'=>'create.database'));
|
||||
?>
|
||||
<div id="content">
|
||||
<h2><?php echo $this->lang->L_CREATE_DATABASE;?></h2>
|
||||
<?php echo $this->sqlHeadNavi(); ?>
|
||||
<h4><?php echo $this->lang->L_CREATE_DATABASE;?>:</h4>
|
||||
<form method="post" action="<?php echo $formUrl;?>">
|
||||
<table class="bdr" summary="create new database">
|
||||
<tr class="row-odd">
|
||||
<td><?php echo $this->lang->L_DB_NAME; ?>:</td>
|
||||
<td><input type="text" class="text" id="dbName" name="newDbInfo[dbName]" value="<?php echo (isset($this->dbCreated) && !$this->dbCreated) ? $this->out($this->newDbInfo['dbName']) : ''; ?>"/></td>
|
||||
</tr>
|
||||
<tr class="row-even">
|
||||
<td><?php echo $this->lang->L_DEFAULT_CHARSET;?>:</td>
|
||||
<td><select class="select" id="dbCharset" name="newDbInfo[dbCharset]"><?php foreach ($this->charsets as $charset) { ?>
|
||||
<option value="<?php echo $this->out($charset); ?>"<?php echo ($charset == $this->newDbInfo['dbCharset']) ? ' selected="selected"' : ''; ?>><?php echo $this->out($charset); ?></option>
|
||||
<?php } ?></select></td>
|
||||
</tr>
|
||||
<tr class="row-odd">
|
||||
<td><?php echo $this->lang->L_DEFAULT_COLLATION_NAME;?>:</td>
|
||||
<td><select class="select" id="dbCollation" name="newDbInfo[dbCollation]"><?php foreach ($this->collations[$this->newDbInfo['dbCharset']] as $collation) { ?>
|
||||
<option value="<?php echo $this->out($collation); ?>"<?php echo ($collation == $this->newDbInfo['dbCollation']) ? ' selected="selected"' : ''; ?>><?php echo $this->out($collation); ?></option>
|
||||
<?php } ?></select></td>
|
||||
</tr>
|
||||
<tr class="row-even">
|
||||
<td> </td>
|
||||
<td class="buttonBar">
|
||||
<button type="submit" class="Formbutton"><?php echo $this->getIcon('Database', '', 16); echo $this->lang->L_CREATE_DATABASE; ?></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<?php $this->jQuery()->onLoadCaptureStart(); ?>
|
||||
var dbCollations = <?php echo json_encode($this->collations); ?>;
|
||||
var dbDefaultCollations = <?php echo json_encode($this->defaultCollations); ?>;
|
||||
$('#dbCharset').bind('change', function() {
|
||||
var newOpts = '';
|
||||
var curCharset = $(this).val();
|
||||
$(dbCollations[curCharset]).each(function(id, v) {
|
||||
var selected = '';
|
||||
if (v == dbDefaultCollations[curCharset]) {
|
||||
selected = ' selected="selected"';
|
||||
}
|
||||
newOpts += '<option value="' + v +'"' + selected + '>' + v + '</option>';
|
||||
$('#dbCollation').html(newOpts);
|
||||
});
|
||||
});
|
||||
$(document).ready(function() {
|
||||
$('#dbName').focus();
|
||||
});
|
||||
<?php
|
||||
$this->jQuery()->onLoadCaptureEnd();
|
||||
|
||||
if (isset($this->dbCreated)) {
|
||||
if ($this->dbCreated) {
|
||||
$this->popUpMessage()->addMessage(
|
||||
'dialogDbCreation',
|
||||
'L_CREATE_DATABASE',
|
||||
array('L_DATABASE_CREATED_SUCCESS', $this->newDbInfo['dbName']),
|
||||
array(
|
||||
'modal' => 'true',
|
||||
'autoOpen' => 'true',
|
||||
'buttons' => array(
|
||||
'L_OK' => 'function(){$(this).dialog("close"); }',
|
||||
)
|
||||
)
|
||||
);
|
||||
} else {
|
||||
$this->popUpMessage()->addMessage(
|
||||
'dialogDbCreation',
|
||||
'L_CREATE_DATABASE',
|
||||
array(
|
||||
'L_DATABASE_CREATED_FAILED',
|
||||
'<span class="error">(' . $this->errorInfo['code'] . ') '
|
||||
. $this->errorInfo['message'] .'</span>'
|
||||
),
|
||||
array(
|
||||
'modal' => 'true',
|
||||
'autoOpen' => 'true',
|
||||
'buttons' => array(
|
||||
'L_OK' => 'function(){$(this).dialog("close"); }',
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
?>
|
|
@ -1,133 +1,133 @@
|
|||
<?php $this->jQuery()->onLoadCaptureStart(); ?>
|
||||
$('#sqltextarea').bind('keyup', function(e){
|
||||
if (e.which == 13 && e.ctrlKey) {
|
||||
$('#execsql').trigger('click');
|
||||
}
|
||||
});
|
||||
<?php $this->jQuery()->onLoadCaptureEnd(); ?>
|
||||
<div id="content">
|
||||
<h2><?php echo $this->lang->L_SQLBOX;?></h2>
|
||||
<?php echo $this->sqlHeadNavi(); ?>
|
||||
|
||||
<div id="mysqlbox">
|
||||
<form action="<?php echo $this->url(array('controller'=>'sql','action'=>'sqlbox'));?>" method="post" id="myForm">
|
||||
<div id="sqlheaderbox" style="height:28px;">
|
||||
<div style="padding:2px 8px 0 4px; float:left;">
|
||||
<a href="sqlbox.phtml#" onclick="$('#sqltextarea').animate({ height: '-0'}, 300);return false;"><?php echo $this->getIcon('ArrowUp', '', 16);?></a>
|
||||
<a href="sqlbox.phtml#" onclick="$('#sqltextarea').animate({ height: '+=60'}, 300);return false;"><?php echo $this->getIcon('plus');?></a>
|
||||
<a href="sqlbox.phtml#" onclick="$('#sqltextarea').animate({ height: '-=60'}, 300);return false;"><?php echo $this->getIcon('minus');?></a>
|
||||
</div>
|
||||
<span style="float:left;">
|
||||
<?php echo $this->lang->L_TABLE;?>: <select id="selectTable" class="text" onchange="setShowTableQuery();"><?php echo $this->tableSelectBox;?></select>
|
||||
<input class="Formbutton" type="submit" name="execsql" id="execsql" value="<?php echo $this->lang->L_SQL_EXEC;?>" />
|
||||
<input class="Formbutton" type="button" value="<?php echo $this->lang->L_RESET;?>" onclick="$('#sqltextarea').val('');"/>
|
||||
</span>
|
||||
<br class="clear" />
|
||||
</div>
|
||||
<div>
|
||||
<textarea style="height:<?php echo $this->config->getParam('interface.sqlboxHeight');?>px;" name="sqltextarea" id="sqltextarea" rows="4" cols="10"><?php echo $this->boxcontent;?></textarea>
|
||||
<div class="sqlbox-warning small center"><?php echo $this->lang->L_SQL_WARNING;?></div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<br />
|
||||
<?php
|
||||
$this->jQuery()->javascriptCaptureStart();
|
||||
if (isset($this->errorMessage)) {
|
||||
$this->popUpMessage()->addMessage(
|
||||
'SqlError',
|
||||
$this->lang->L_ERROR,
|
||||
$this->errorMessage,
|
||||
array(
|
||||
'modal' => true,
|
||||
'height' => 220,
|
||||
'width' => 400,
|
||||
'dialogClass' => 'error'
|
||||
)
|
||||
);
|
||||
}
|
||||
?>
|
||||
function setShowTableQuery()
|
||||
{
|
||||
query = $('#selectTable').attr('value');
|
||||
query = 'SELECT * FROM `' + query + '`;';
|
||||
$('#sqltextarea').val(query);
|
||||
$('#myForm').submit();
|
||||
}
|
||||
<?php
|
||||
$this->jQuery()->javascriptCaptureEnd();
|
||||
|
||||
if (isset($this->resultset) && is_array($this->resultset)) {
|
||||
$res = $this->resultset;
|
||||
if (count($res)>0) {
|
||||
$fieldNames = array_keys($res[0]);
|
||||
$i = 1;
|
||||
$cycleHelper = $this->getHelper('cycle')->cycle(array('row-even', 'row-odd'));
|
||||
?>
|
||||
<table class="bdr" summary="Table lists result sets">
|
||||
<tr class="thead">
|
||||
<th class="right">#</th>
|
||||
<?php
|
||||
foreach ($fieldNames as $field) {
|
||||
echo '<th>' . $field .'</th>';
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($res as $row) {
|
||||
?>
|
||||
<tr class="<?php echo $cycleHelper->next()?>">
|
||||
<td class="small right"><?php echo $this->numberFormat($i);?>.</td>
|
||||
<?php
|
||||
foreach ($row as $data) {
|
||||
if (is_numeric($data)) {
|
||||
echo '<td class="small right">' . $data . '</td>';
|
||||
} else {
|
||||
echo '<td class="small">' . $this->out($data) . '</td>';
|
||||
}
|
||||
}
|
||||
echo '</tr>';
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<?php
|
||||
} else {
|
||||
echo '<p>' . $this->lang->L_NO_ENTRIES . '</p>';
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($this->resultSummary)) {
|
||||
$i = 1;
|
||||
$totalQueries = 0;
|
||||
$cycleHelper = $this->getHelper('cycle')->cycle(array('row-even', 'row-odd'));
|
||||
?>
|
||||
<table class="bdr" summary="Table lists result sets">
|
||||
<tr class="thead">
|
||||
<th colspan="3"><?php echo $this->lang->L_RESULT;?>:</th>
|
||||
</tr>
|
||||
<tr class="thead">
|
||||
<th class="right">#</th>
|
||||
<th><?php echo $this->lang->L_QUERY_TYPE;?></th>
|
||||
<th><?php echo $this->lang->L_NR_OF_QUERIES;?></th>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($this->resultSummary as $type => $count) {
|
||||
$totalQueries += $count;
|
||||
?>
|
||||
<tr class="<?php echo $cycleHelper->next();?>">
|
||||
<td class="small right"><?php echo $this->numberFormat($i);?>.</td>
|
||||
<td class="small"><?php echo ucfirst($type);?></td>
|
||||
<td class="small right"><?php echo $this->numberFormat($count);?></td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
} ?>
|
||||
<tr class="<?php echo $cycleHelper->next();?>">
|
||||
<td class="small sum"> </td>
|
||||
<td class="small sum"><?php echo $this->lang->L_SUM_TOTAL;;?></td>
|
||||
<td class="small right sum"><?php echo $this->numberFormat($totalQueries);?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
} ?>
|
||||
</div>
|
||||
<?php $this->jQuery()->onLoadCaptureStart(); ?>
|
||||
$('#sqltextarea').bind('keyup', function(e){
|
||||
if (e.which == 13 && e.ctrlKey) {
|
||||
$('#execsql').trigger('click');
|
||||
}
|
||||
});
|
||||
<?php $this->jQuery()->onLoadCaptureEnd(); ?>
|
||||
<div id="content">
|
||||
<h2><?php echo $this->lang->L_SQLBOX;?></h2>
|
||||
<?php echo $this->sqlHeadNavi(); ?>
|
||||
|
||||
<div id="mysqlbox">
|
||||
<form action="<?php echo $this->url(array('controller'=>'sql','action'=>'sqlbox'));?>" method="post" id="myForm">
|
||||
<div id="sqlheaderbox" style="height:28px;">
|
||||
<div style="padding:2px 8px 0 4px; float:left;">
|
||||
<a href="sqlbox.phtml#" onclick="$('#sqltextarea').animate({ height: '-0'}, 300);return false;"><?php echo $this->getIcon('ArrowUp', '', 16);?></a>
|
||||
<a href="sqlbox.phtml#" onclick="$('#sqltextarea').animate({ height: '+=60'}, 300);return false;"><?php echo $this->getIcon('plus');?></a>
|
||||
<a href="sqlbox.phtml#" onclick="$('#sqltextarea').animate({ height: '-=60'}, 300);return false;"><?php echo $this->getIcon('minus');?></a>
|
||||
</div>
|
||||
<span style="float:left;">
|
||||
<?php echo $this->lang->L_TABLE;?>: <select id="selectTable" class="text" onchange="setShowTableQuery();"><?php echo $this->tableSelectBox;?></select>
|
||||
<input class="Formbutton" type="submit" name="execsql" id="execsql" value="<?php echo $this->lang->L_SQL_EXEC;?>" />
|
||||
<input class="Formbutton" type="button" value="<?php echo $this->lang->L_RESET;?>" onclick="$('#sqltextarea').val('');"/>
|
||||
</span>
|
||||
<br class="clear" />
|
||||
</div>
|
||||
<div>
|
||||
<textarea style="height:<?php echo $this->config->getParam('interface.sqlboxHeight');?>px;" name="sqltextarea" id="sqltextarea" rows="4" cols="10"><?php echo $this->boxcontent;?></textarea>
|
||||
<div class="sqlbox-warning small center"><?php echo $this->lang->L_SQL_WARNING;?></div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<br />
|
||||
<?php
|
||||
$this->jQuery()->javascriptCaptureStart();
|
||||
if (isset($this->errorMessage)) {
|
||||
$this->popUpMessage()->addMessage(
|
||||
'SqlError',
|
||||
$this->lang->L_ERROR,
|
||||
$this->errorMessage,
|
||||
array(
|
||||
'modal' => true,
|
||||
'height' => 220,
|
||||
'width' => 400,
|
||||
'dialogClass' => 'error'
|
||||
)
|
||||
);
|
||||
}
|
||||
?>
|
||||
function setShowTableQuery()
|
||||
{
|
||||
query = $('#selectTable').attr('value');
|
||||
query = 'SELECT * FROM `' + query + '`;';
|
||||
$('#sqltextarea').val(query);
|
||||
$('#myForm').submit();
|
||||
}
|
||||
<?php
|
||||
$this->jQuery()->javascriptCaptureEnd();
|
||||
|
||||
if (isset($this->resultset) && is_array($this->resultset)) {
|
||||
$res = $this->resultset;
|
||||
if (count($res)>0) {
|
||||
$fieldNames = array_keys($res[0]);
|
||||
$i = 1;
|
||||
$cycleHelper = $this->getHelper('cycle')->cycle(array('row-even', 'row-odd'));
|
||||
?>
|
||||
<table class="bdr" summary="Table lists result sets">
|
||||
<tr class="thead">
|
||||
<th class="right">#</th>
|
||||
<?php
|
||||
foreach ($fieldNames as $field) {
|
||||
echo '<th>' . $field .'</th>';
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($res as $row) {
|
||||
?>
|
||||
<tr class="<?php echo $cycleHelper->next()?>">
|
||||
<td class="small right"><?php echo $this->numberFormat($i);?>.</td>
|
||||
<?php
|
||||
foreach ($row as $data) {
|
||||
if (is_numeric($data)) {
|
||||
echo '<td class="small right">' . $data . '</td>';
|
||||
} else {
|
||||
echo '<td class="small">' . $this->out($data) . '</td>';
|
||||
}
|
||||
}
|
||||
echo '</tr>';
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<?php
|
||||
} else {
|
||||
echo '<p>' . $this->lang->L_NO_ENTRIES . '</p>';
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($this->resultSummary)) {
|
||||
$i = 1;
|
||||
$totalQueries = 0;
|
||||
$cycleHelper = $this->getHelper('cycle')->cycle(array('row-even', 'row-odd'));
|
||||
?>
|
||||
<table class="bdr" summary="Table lists result sets">
|
||||
<tr class="thead">
|
||||
<th colspan="3"><?php echo $this->lang->L_RESULT;?>:</th>
|
||||
</tr>
|
||||
<tr class="thead">
|
||||
<th class="right">#</th>
|
||||
<th><?php echo $this->lang->L_QUERY_TYPE;?></th>
|
||||
<th><?php echo $this->lang->L_NR_OF_QUERIES;?></th>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($this->resultSummary as $type => $count) {
|
||||
$totalQueries += $count;
|
||||
?>
|
||||
<tr class="<?php echo $cycleHelper->next();?>">
|
||||
<td class="small right"><?php echo $this->numberFormat($i);?>.</td>
|
||||
<td class="small"><?php echo ucfirst($type);?></td>
|
||||
<td class="small right"><?php echo $this->numberFormat($count);?></td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
} ?>
|
||||
<tr class="<?php echo $cycleHelper->next();?>">
|
||||
<td class="small sum"> </td>
|
||||
<td class="small sum"><?php echo $this->lang->L_SUM_TOTAL;;?></td>
|
||||
<td class="small right sum"><?php echo $this->numberFormat($totalQueries);?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
} ?>
|
||||
</div>
|
||||
|
|
|
@ -1,85 +1,85 @@
|
|||
<?php
|
||||
$prefix = null;
|
||||
$optimizeTablesUrl = $this->url(array('controller' => 'sql', 'action' => 'optimize.tables'));
|
||||
$analyzeTablesUrl = $this->url(array('controller' => 'sql', 'action' => 'analyze.tables'));
|
||||
$checkTablesUrl = $this->url(array('controller' => 'sql', 'action' => 'check.tables'));
|
||||
$repairTablesUrl = $this->url(array('controller' => 'sql', 'action' => 'repair.tables'));
|
||||
$emptyTablesUrl = $this->url(array('controller' => 'sql', 'action' => 'empty.tables'));
|
||||
$deleteTablesUrl = $this->url(array('controller' => 'sql', 'action' => 'delete.tables'));
|
||||
$createTableUrl = $this->url(array('controller' => 'sql', 'action' => 'create.table'));
|
||||
?>
|
||||
<tr class="thead">
|
||||
<th colspan="15">
|
||||
<div class="buttonBar">
|
||||
<ul class="Formbutton">
|
||||
<li>
|
||||
<button class="Formbutton"
|
||||
type="submit"
|
||||
onclick="changeFormAction('.tablesForm', '<?php echo $createTableUrl; ?>');">
|
||||
<?php
|
||||
echo $this->getIcon('Tabledata', '' ,16);
|
||||
echo $this->lang->L_NEWTABLE;
|
||||
?>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button class="Formbutton" disabled="disabled"
|
||||
id="buttonOptimize"
|
||||
type="submit"
|
||||
onclick="changeFormAction('.tablesForm', '<?php echo $optimizeTablesUrl; ?>');">
|
||||
<?php echo$this->getIcon('Ok', '', 16);?>
|
||||
<?php echo $this->lang->L_OPTIMIZE;?>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button class="Formbutton" disabled="disabled"
|
||||
id="buttonAnalyze"
|
||||
type="submit"
|
||||
onclick="changeFormAction('.tablesForm', '<?php echo $analyzeTablesUrl; ?>');">
|
||||
<?php echo$this->getIcon('Ok', '', 16);?>
|
||||
<?php echo $this->lang->L_ANALYZE;?>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button class="Formbutton" disabled="disabled"
|
||||
id="buttonCheck"
|
||||
type="submit"
|
||||
onclick="changeFormAction('.tablesForm', '<?php echo $checkTablesUrl; ?>');">
|
||||
<?php echo$this->getIcon('Ok', '', 16);?>
|
||||
<?php echo $this->lang->L_CHECK;?>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button class="Formbutton" disabled="disabled"
|
||||
id="buttonRepair"
|
||||
type="submit"
|
||||
onclick="changeFormAction('.tablesForm', '<?php echo $repairTablesUrl; ?>');">
|
||||
<?php echo$this->getIcon('Ok', '', 16);?>
|
||||
<?php echo $this->lang->L_REPAIR;?>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button class="Formbutton" disabled="disabled"
|
||||
id="buttonTruncate"
|
||||
type="submit"
|
||||
onclick="changeFormAction('.tablesForm', '<?php echo $emptyTablesUrl; ?>');">
|
||||
<?php echo$this->getIcon('delete', '');?>
|
||||
<?php echo $this->lang->L_EMPTY;?>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button class="Formbutton" disabled="disabled"
|
||||
id="buttonDelete"
|
||||
type="submit"
|
||||
onclick="changeFormAction('.tablesForm', '<?php echo $deleteTablesUrl; ?>');">
|
||||
<?php echo$this->getIcon('delete', '');?>
|
||||
<?php echo $this->lang->L_DELETE;?>
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</th>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
$prefix = null;
|
||||
$optimizeTablesUrl = $this->url(array('controller' => 'sql', 'action' => 'optimize.tables'));
|
||||
$analyzeTablesUrl = $this->url(array('controller' => 'sql', 'action' => 'analyze.tables'));
|
||||
$checkTablesUrl = $this->url(array('controller' => 'sql', 'action' => 'check.tables'));
|
||||
$repairTablesUrl = $this->url(array('controller' => 'sql', 'action' => 'repair.tables'));
|
||||
$emptyTablesUrl = $this->url(array('controller' => 'sql', 'action' => 'empty.tables'));
|
||||
$deleteTablesUrl = $this->url(array('controller' => 'sql', 'action' => 'delete.tables'));
|
||||
$createTableUrl = $this->url(array('controller' => 'sql', 'action' => 'create.table'));
|
||||
?>
|
||||
<tr class="thead">
|
||||
<th colspan="15">
|
||||
<div class="buttonBar">
|
||||
<ul class="Formbutton">
|
||||
<li>
|
||||
<button class="Formbutton"
|
||||
type="submit"
|
||||
onclick="changeFormAction('.tablesForm', '<?php echo $createTableUrl; ?>');">
|
||||
<?php
|
||||
echo $this->getIcon('Tabledata', '' ,16);
|
||||
echo $this->lang->L_NEWTABLE;
|
||||
?>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button class="Formbutton" disabled="disabled"
|
||||
id="buttonOptimize"
|
||||
type="submit"
|
||||
onclick="changeFormAction('.tablesForm', '<?php echo $optimizeTablesUrl; ?>');">
|
||||
<?php echo$this->getIcon('Ok', '', 16);?>
|
||||
<?php echo $this->lang->L_OPTIMIZE;?>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button class="Formbutton" disabled="disabled"
|
||||
id="buttonAnalyze"
|
||||
type="submit"
|
||||
onclick="changeFormAction('.tablesForm', '<?php echo $analyzeTablesUrl; ?>');">
|
||||
<?php echo$this->getIcon('Ok', '', 16);?>
|
||||
<?php echo $this->lang->L_ANALYZE;?>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button class="Formbutton" disabled="disabled"
|
||||
id="buttonCheck"
|
||||
type="submit"
|
||||
onclick="changeFormAction('.tablesForm', '<?php echo $checkTablesUrl; ?>');">
|
||||
<?php echo$this->getIcon('Ok', '', 16);?>
|
||||
<?php echo $this->lang->L_CHECK;?>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button class="Formbutton" disabled="disabled"
|
||||
id="buttonRepair"
|
||||
type="submit"
|
||||
onclick="changeFormAction('.tablesForm', '<?php echo $repairTablesUrl; ?>');">
|
||||
<?php echo$this->getIcon('Ok', '', 16);?>
|
||||
<?php echo $this->lang->L_REPAIR;?>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button class="Formbutton" disabled="disabled"
|
||||
id="buttonTruncate"
|
||||
type="submit"
|
||||
onclick="changeFormAction('.tablesForm', '<?php echo $emptyTablesUrl; ?>');">
|
||||
<?php echo$this->getIcon('delete', '');?>
|
||||
<?php echo $this->lang->L_EMPTY;?>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button class="Formbutton" disabled="disabled"
|
||||
id="buttonDelete"
|
||||
type="submit"
|
||||
onclick="changeFormAction('.tablesForm', '<?php echo $deleteTablesUrl; ?>');">
|
||||
<?php echo$this->getIcon('delete', '');?>
|
||||
<?php echo $this->lang->L_DELETE;?>
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</th>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<div id="content">
|
||||
<h2><?php echo $this->lang->L_SQL_CREATETABLE;?></h2>
|
||||
|
||||
<br /><br />
|
||||
|
||||
Hello (MySQLDumper-) World!
|
||||
|
||||
<div id="content">
|
||||
<h2><?php echo $this->lang->L_SQL_CREATETABLE;?></h2>
|
||||
|
||||
<br /><br />
|
||||
|
||||
Hello (MySQLDumper-) World!
|
||||
|
||||
</div>
|
18
pdepend.xml
18
pdepend.xml
|
@ -1,10 +1,10 @@
|
|||
<?xml version="1.0" ?>
|
||||
<configuration
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://pdepend.org/schema/configuration"
|
||||
xsi:schemaLocation="http://pdepend.org/schema/configuration http://pdepend.org/schema/1.0/configuration.xsd">
|
||||
<cache>
|
||||
<driver>file</driver>
|
||||
<location>/tmp/pdepend</location>
|
||||
</cache>
|
||||
<?xml version="1.0" ?>
|
||||
<configuration
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://pdepend.org/schema/configuration"
|
||||
xsi:schemaLocation="http://pdepend.org/schema/configuration http://pdepend.org/schema/1.0/configuration.xsd">
|
||||
<cache>
|
||||
<driver>file</driver>
|
||||
<location>/tmp/pdepend</location>
|
||||
</cache>
|
||||
</configuration>
|
122
public/js/jquery/autogrow.js
gevendort
122
public/js/jquery/autogrow.js
gevendort
|
@ -1,61 +1,61 @@
|
|||
/*!
|
||||
* Autogrow Textarea Plugin Version v2.0
|
||||
* http://www.technoreply.com/autogrow-textarea-plugin-version-2-0
|
||||
*
|
||||
* Copyright 2011, Jevin O. Sewaruth
|
||||
*
|
||||
* Date: March 13, 2011
|
||||
*/
|
||||
jQuery.fn.autoGrow = function(){
|
||||
return this.each(function(){
|
||||
// Variables
|
||||
var colsDefault = this.cols;
|
||||
var rowsDefault = this.rows;
|
||||
|
||||
//Functions
|
||||
var grow = function() {
|
||||
growByRef(this);
|
||||
}
|
||||
|
||||
var growByRef = function(obj) {
|
||||
var linesCount = 0;
|
||||
var lines = obj.value.split('\n');
|
||||
|
||||
for (var i=lines.length-1; i>=0; --i)
|
||||
{
|
||||
linesCount += Math.floor((lines[i].length / colsDefault) + 1);
|
||||
}
|
||||
|
||||
if (linesCount >= rowsDefault)
|
||||
obj.rows = linesCount + 1;
|
||||
else
|
||||
obj.rows = rowsDefault;
|
||||
}
|
||||
|
||||
var characterWidth = function (obj){
|
||||
var characterWidth = 0;
|
||||
var temp1 = 0;
|
||||
var temp2 = 0;
|
||||
var tempCols = obj.cols;
|
||||
|
||||
obj.cols = 1;
|
||||
temp1 = obj.offsetWidth;
|
||||
obj.cols = 2;
|
||||
temp2 = obj.offsetWidth;
|
||||
characterWidth = temp2 - temp1;
|
||||
obj.cols = tempCols;
|
||||
|
||||
return characterWidth;
|
||||
}
|
||||
|
||||
// Manipulations
|
||||
this.style.width = "auto";
|
||||
this.style.height = "auto";
|
||||
this.style.overflow = "hidden";
|
||||
this.style.width = ((characterWidth(this) * this.cols) + 6) + "px";
|
||||
//this.onkeyup = grow;
|
||||
//this.onfocus = grow;
|
||||
//this.onblur = grow;
|
||||
growByRef(this);
|
||||
});
|
||||
};
|
||||
/*!
|
||||
* Autogrow Textarea Plugin Version v2.0
|
||||
* http://www.technoreply.com/autogrow-textarea-plugin-version-2-0
|
||||
*
|
||||
* Copyright 2011, Jevin O. Sewaruth
|
||||
*
|
||||
* Date: March 13, 2011
|
||||
*/
|
||||
jQuery.fn.autoGrow = function(){
|
||||
return this.each(function(){
|
||||
// Variables
|
||||
var colsDefault = this.cols;
|
||||
var rowsDefault = this.rows;
|
||||
|
||||
//Functions
|
||||
var grow = function() {
|
||||
growByRef(this);
|
||||
}
|
||||
|
||||
var growByRef = function(obj) {
|
||||
var linesCount = 0;
|
||||
var lines = obj.value.split('\n');
|
||||
|
||||
for (var i=lines.length-1; i>=0; --i)
|
||||
{
|
||||
linesCount += Math.floor((lines[i].length / colsDefault) + 1);
|
||||
}
|
||||
|
||||
if (linesCount >= rowsDefault)
|
||||
obj.rows = linesCount + 1;
|
||||
else
|
||||
obj.rows = rowsDefault;
|
||||
}
|
||||
|
||||
var characterWidth = function (obj){
|
||||
var characterWidth = 0;
|
||||
var temp1 = 0;
|
||||
var temp2 = 0;
|
||||
var tempCols = obj.cols;
|
||||
|
||||
obj.cols = 1;
|
||||
temp1 = obj.offsetWidth;
|
||||
obj.cols = 2;
|
||||
temp2 = obj.offsetWidth;
|
||||
characterWidth = temp2 - temp1;
|
||||
obj.cols = tempCols;
|
||||
|
||||
return characterWidth;
|
||||
}
|
||||
|
||||
// Manipulations
|
||||
this.style.width = "auto";
|
||||
this.style.height = "auto";
|
||||
this.style.overflow = "hidden";
|
||||
this.style.width = ((characterWidth(this) * this.cols) + 6) + "px";
|
||||
//this.onkeyup = grow;
|
||||
//this.onfocus = grow;
|
||||
//this.onblur = grow;
|
||||
growByRef(this);
|
||||
});
|
||||
};
|
||||
|
|
|
@ -1,231 +1,231 @@
|
|||
/*
|
||||
** Created by: Jeff Todnem (http://www.todnem.com/)
|
||||
** Created on: 2007-08-14
|
||||
** Last modified: 2010-05-03
|
||||
**
|
||||
** License Information:
|
||||
** -------------------------------------------------------------------------
|
||||
** Copyright (C) 2007 Jeff Todnem
|
||||
**
|
||||
** This program is free software; you can redistribute it and/or modify it
|
||||
** under the terms of the GNU General Public License as published by the
|
||||
** Free Software Foundation; either version 2 of the License, or (at your
|
||||
** option) any later version.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but
|
||||
** WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
** General Public License for more details.
|
||||
**
|
||||
** You should have received a copy of the GNU General Public License along
|
||||
** with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
** 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
**
|
||||
*/
|
||||
|
||||
String.prototype.strReverse = function() {
|
||||
var newstring = "";
|
||||
for (var s=0; s < this.length; s++) {
|
||||
newstring = this.charAt(s) + newstring;
|
||||
}
|
||||
return newstring;
|
||||
};
|
||||
|
||||
function chkPass(pwd) {
|
||||
// Simultaneous variable declaration and value assignment aren't supported in IE apparently
|
||||
// so I'm forced to assign the same value individually per var to support a crappy browser *sigh*
|
||||
var nScore=0, nLength=0, nAlphaUC=0, nAlphaLC=0, nNumber=0, nSymbol=0, nMidChar=0, nRequirements=0, nAlphasOnly=0, nNumbersOnly=0, nUnqChar=0, nRepChar=0, nRepInc=0, nConsecAlphaUC=0, nConsecAlphaLC=0, nConsecNumber=0, nConsecSymbol=0, nConsecCharType=0, nSeqAlpha=0, nSeqNumber=0, nSeqSymbol=0, nSeqChar=0, nReqChar=0, nMultConsecCharType=0;
|
||||
var nMultRepChar=1, nMultConsecSymbol=1;
|
||||
var nMultMidChar=2, nMultRequirements=2, nMultConsecAlphaUC=2, nMultConsecAlphaLC=2, nMultConsecNumber=2;
|
||||
var nReqCharType=3, nMultAlphaUC=3, nMultAlphaLC=3, nMultSeqAlpha=3, nMultSeqNumber=3, nMultSeqSymbol=3;
|
||||
var nMultLength=4, nMultNumber=4;
|
||||
var nMultSymbol=6;
|
||||
var nTmpAlphaUC="", nTmpAlphaLC="", nTmpNumber="", nTmpSymbol="";
|
||||
var sAlphaUC="0", sAlphaLC="0", sNumber="0", sSymbol="0", sMidChar="0", sRequirements="0", sAlphasOnly="0", sNumbersOnly="0", sRepChar="0", sConsecAlphaUC="0", sConsecAlphaLC="0", sConsecNumber="0", sSeqAlpha="0", sSeqNumber="0", sSeqSymbol="0";
|
||||
var sAlphas = "abcdefghijklmnopqrstuvwxyz";
|
||||
var sNumerics = "01234567890";
|
||||
var sSymbols = ")!@#$%^&*()";
|
||||
var nMinPwdLen = 8;
|
||||
if (document.all) { var nd = 0; } else { var nd = 1; }
|
||||
if (pwd) {
|
||||
nScore = parseInt(pwd.length * nMultLength);
|
||||
nLength = pwd.length;
|
||||
var arrPwd = pwd.replace(/\s+/g,"").split(/\s*/);
|
||||
var arrPwdLen = arrPwd.length;
|
||||
|
||||
/* Loop through password to check for Symbol, Numeric, Lowercase and Uppercase pattern matches */
|
||||
for (var a=0; a < arrPwdLen; a++) {
|
||||
if (arrPwd[a].match(/[A-Z]/g)) {
|
||||
if (nTmpAlphaUC !== "") { if ((nTmpAlphaUC + 1) == a) { nConsecAlphaUC++; nConsecCharType++; } }
|
||||
nTmpAlphaUC = a;
|
||||
nAlphaUC++;
|
||||
}
|
||||
else if (arrPwd[a].match(/[a-z]/g)) {
|
||||
if (nTmpAlphaLC !== "") { if ((nTmpAlphaLC + 1) == a) { nConsecAlphaLC++; nConsecCharType++; } }
|
||||
nTmpAlphaLC = a;
|
||||
nAlphaLC++;
|
||||
}
|
||||
else if (arrPwd[a].match(/[0-9]/g)) {
|
||||
if (a > 0 && a < (arrPwdLen - 1)) { nMidChar++; }
|
||||
if (nTmpNumber !== "") { if ((nTmpNumber + 1) == a) { nConsecNumber++; nConsecCharType++; } }
|
||||
nTmpNumber = a;
|
||||
nNumber++;
|
||||
}
|
||||
else if (arrPwd[a].match(/[^a-zA-Z0-9_]/g)) {
|
||||
if (a > 0 && a < (arrPwdLen - 1)) { nMidChar++; }
|
||||
if (nTmpSymbol !== "") { if ((nTmpSymbol + 1) == a) { nConsecSymbol++; nConsecCharType++; } }
|
||||
nTmpSymbol = a;
|
||||
nSymbol++;
|
||||
}
|
||||
/* Internal loop through password to check for repeat characters */
|
||||
var bCharExists = false;
|
||||
for (var b=0; b < arrPwdLen; b++) {
|
||||
if (arrPwd[a] == arrPwd[b] && a != b) { /* repeat character exists */
|
||||
bCharExists = true;
|
||||
/*
|
||||
Calculate icrement deduction based on proximity to identical characters
|
||||
Deduction is incremented each time a new match is discovered
|
||||
Deduction amount is based on total password length divided by the
|
||||
difference of distance between currently selected match
|
||||
*/
|
||||
nRepInc += Math.abs(arrPwdLen/(b-a));
|
||||
}
|
||||
}
|
||||
if (bCharExists) {
|
||||
nRepChar++;
|
||||
nUnqChar = arrPwdLen-nRepChar;
|
||||
nRepInc = (nUnqChar) ? Math.ceil(nRepInc/nUnqChar) : Math.ceil(nRepInc);
|
||||
}
|
||||
}
|
||||
|
||||
/* Check for sequential alpha string patterns (forward and reverse) */
|
||||
for (var s=0; s < 23; s++) {
|
||||
var sFwd = sAlphas.substring(s,parseInt(s+3));
|
||||
var sRev = sFwd.strReverse();
|
||||
if (pwd.toLowerCase().indexOf(sFwd) != -1 || pwd.toLowerCase().indexOf(sRev) != -1) { nSeqAlpha++; nSeqChar++;}
|
||||
}
|
||||
|
||||
/* Check for sequential numeric string patterns (forward and reverse) */
|
||||
for (var s=0; s < 8; s++) {
|
||||
var sFwd = sNumerics.substring(s,parseInt(s+3));
|
||||
var sRev = sFwd.strReverse();
|
||||
if (pwd.toLowerCase().indexOf(sFwd) != -1 || pwd.toLowerCase().indexOf(sRev) != -1) { nSeqNumber++; nSeqChar++;}
|
||||
}
|
||||
|
||||
/* Check for sequential symbol string patterns (forward and reverse) */
|
||||
for (var s=0; s < 8; s++) {
|
||||
var sFwd = sSymbols.substring(s,parseInt(s+3));
|
||||
var sRev = sFwd.strReverse();
|
||||
if (pwd.toLowerCase().indexOf(sFwd) != -1 || pwd.toLowerCase().indexOf(sRev) != -1) { nSeqSymbol++; nSeqChar++;}
|
||||
}
|
||||
|
||||
/* Modify overall score value based on usage vs requirements */
|
||||
|
||||
/* General point assignment */
|
||||
if (nAlphaUC > 0 && nAlphaUC < nLength) {
|
||||
nScore = parseInt(nScore + ((nLength - nAlphaUC) * 2));
|
||||
sAlphaUC = "+ " + parseInt((nLength - nAlphaUC) * 2);
|
||||
}
|
||||
if (nAlphaLC > 0 && nAlphaLC < nLength) {
|
||||
nScore = parseInt(nScore + ((nLength - nAlphaLC) * 2));
|
||||
sAlphaLC = "+ " + parseInt((nLength - nAlphaLC) * 2);
|
||||
}
|
||||
if (nNumber > 0 && nNumber < nLength) {
|
||||
nScore = parseInt(nScore + (nNumber * nMultNumber));
|
||||
sNumber = "+ " + parseInt(nNumber * nMultNumber);
|
||||
}
|
||||
if (nSymbol > 0) {
|
||||
nScore = parseInt(nScore + (nSymbol * nMultSymbol));
|
||||
sSymbol = "+ " + parseInt(nSymbol * nMultSymbol);
|
||||
}
|
||||
if (nMidChar > 0) {
|
||||
nScore = parseInt(nScore + (nMidChar * nMultMidChar));
|
||||
sMidChar = "+ " + parseInt(nMidChar * nMultMidChar);
|
||||
}
|
||||
|
||||
/* Point deductions for poor practices */
|
||||
if ((nAlphaLC > 0 || nAlphaUC > 0) && nSymbol === 0 && nNumber === 0) { // Only Letters
|
||||
nScore = parseInt(nScore - nLength);
|
||||
nAlphasOnly = nLength;
|
||||
sAlphasOnly = "- " + nLength;
|
||||
}
|
||||
if (nAlphaLC === 0 && nAlphaUC === 0 && nSymbol === 0 && nNumber > 0) { // Only Numbers
|
||||
nScore = parseInt(nScore - nLength);
|
||||
nNumbersOnly = nLength;
|
||||
sNumbersOnly = "- " + nLength;
|
||||
}
|
||||
if (nRepChar > 0) { // Same character exists more than once
|
||||
nScore = parseInt(nScore - nRepInc);
|
||||
sRepChar = "- " + nRepInc;
|
||||
}
|
||||
if (nConsecAlphaUC > 0) { // Consecutive Uppercase Letters exist
|
||||
nScore = parseInt(nScore - (nConsecAlphaUC * nMultConsecAlphaUC));
|
||||
sConsecAlphaUC = "- " + parseInt(nConsecAlphaUC * nMultConsecAlphaUC);
|
||||
}
|
||||
if (nConsecAlphaLC > 0) { // Consecutive Lowercase Letters exist
|
||||
nScore = parseInt(nScore - (nConsecAlphaLC * nMultConsecAlphaLC));
|
||||
sConsecAlphaLC = "- " + parseInt(nConsecAlphaLC * nMultConsecAlphaLC);
|
||||
}
|
||||
if (nConsecNumber > 0) { // Consecutive Numbers exist
|
||||
nScore = parseInt(nScore - (nConsecNumber * nMultConsecNumber));
|
||||
sConsecNumber = "- " + parseInt(nConsecNumber * nMultConsecNumber);
|
||||
}
|
||||
if (nSeqAlpha > 0) { // Sequential alpha strings exist (3 characters or more)
|
||||
nScore = parseInt(nScore - (nSeqAlpha * nMultSeqAlpha));
|
||||
sSeqAlpha = "- " + parseInt(nSeqAlpha * nMultSeqAlpha);
|
||||
}
|
||||
if (nSeqNumber > 0) { // Sequential numeric strings exist (3 characters or more)
|
||||
nScore = parseInt(nScore - (nSeqNumber * nMultSeqNumber));
|
||||
sSeqNumber = "- " + parseInt(nSeqNumber * nMultSeqNumber);
|
||||
}
|
||||
if (nSeqSymbol > 0) { // Sequential symbol strings exist (3 characters or more)
|
||||
nScore = parseInt(nScore - (nSeqSymbol * nMultSeqSymbol));
|
||||
sSeqSymbol = "- " + parseInt(nSeqSymbol * nMultSeqSymbol);
|
||||
}
|
||||
|
||||
/* Determine if mandatory requirements have been met and set image indicators accordingly */
|
||||
var arrChars = [nLength,nAlphaUC,nAlphaLC,nNumber,nSymbol];
|
||||
var arrCharsIds = ["nLength","nAlphaUC","nAlphaLC","nNumber","nSymbol"];
|
||||
var arrCharsLen = arrChars.length;
|
||||
for (var c=0; c < arrCharsLen; c++) {
|
||||
if (arrCharsIds[c] == "nLength") { var minVal = parseInt(nMinPwdLen - 1); } else { var minVal = 0; }
|
||||
if (arrChars[c] == parseInt(minVal + 1)) { nReqChar++ }
|
||||
else if (arrChars[c] > parseInt(minVal + 1)) { nReqChar++; }
|
||||
}
|
||||
|
||||
nRequirements = nReqChar;
|
||||
if (pwd.length >= nMinPwdLen) { var nMinReqChars = 3; } else { var nMinReqChars = 4; }
|
||||
if (nRequirements > nMinReqChars) { // One or more required characters exist
|
||||
nScore = parseInt(nScore + (nRequirements * 2));
|
||||
sRequirements = "+ " + parseInt(nRequirements * 2);
|
||||
}
|
||||
|
||||
/* Display updated score criteria to client */
|
||||
if (nScore > 100) { nScore = 100; } else if (nScore < 0) { nScore = 0; }
|
||||
$("#scorebar").css("width", parseInt(nScore) + "px");
|
||||
if (nScore > 0) {
|
||||
$("#scorebar").css("display", "");
|
||||
} else {
|
||||
$("#scorebar").css("display", "none");
|
||||
}
|
||||
}
|
||||
else {
|
||||
/* Display default score criteria to client */
|
||||
initPwdChk();
|
||||
}
|
||||
}
|
||||
|
||||
function initPwdChk() {
|
||||
/* Reset all form values to their default */
|
||||
$("#scorebar").css("width", "0px");
|
||||
$("#scorebar").css("display", "none");
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
/* Init the password checking */
|
||||
$("#pass").keyup(function() {
|
||||
chkPass(this.value);
|
||||
});
|
||||
$("#scorebar").wrap('<div id="scorebardiv" />');
|
||||
initPwdChk();
|
||||
/*
|
||||
** Created by: Jeff Todnem (http://www.todnem.com/)
|
||||
** Created on: 2007-08-14
|
||||
** Last modified: 2010-05-03
|
||||
**
|
||||
** License Information:
|
||||
** -------------------------------------------------------------------------
|
||||
** Copyright (C) 2007 Jeff Todnem
|
||||
**
|
||||
** This program is free software; you can redistribute it and/or modify it
|
||||
** under the terms of the GNU General Public License as published by the
|
||||
** Free Software Foundation; either version 2 of the License, or (at your
|
||||
** option) any later version.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but
|
||||
** WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
** General Public License for more details.
|
||||
**
|
||||
** You should have received a copy of the GNU General Public License along
|
||||
** with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
** 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
**
|
||||
*/
|
||||
|
||||
String.prototype.strReverse = function() {
|
||||
var newstring = "";
|
||||
for (var s=0; s < this.length; s++) {
|
||||
newstring = this.charAt(s) + newstring;
|
||||
}
|
||||
return newstring;
|
||||
};
|
||||
|
||||
function chkPass(pwd) {
|
||||
// Simultaneous variable declaration and value assignment aren't supported in IE apparently
|
||||
// so I'm forced to assign the same value individually per var to support a crappy browser *sigh*
|
||||
var nScore=0, nLength=0, nAlphaUC=0, nAlphaLC=0, nNumber=0, nSymbol=0, nMidChar=0, nRequirements=0, nAlphasOnly=0, nNumbersOnly=0, nUnqChar=0, nRepChar=0, nRepInc=0, nConsecAlphaUC=0, nConsecAlphaLC=0, nConsecNumber=0, nConsecSymbol=0, nConsecCharType=0, nSeqAlpha=0, nSeqNumber=0, nSeqSymbol=0, nSeqChar=0, nReqChar=0, nMultConsecCharType=0;
|
||||
var nMultRepChar=1, nMultConsecSymbol=1;
|
||||
var nMultMidChar=2, nMultRequirements=2, nMultConsecAlphaUC=2, nMultConsecAlphaLC=2, nMultConsecNumber=2;
|
||||
var nReqCharType=3, nMultAlphaUC=3, nMultAlphaLC=3, nMultSeqAlpha=3, nMultSeqNumber=3, nMultSeqSymbol=3;
|
||||
var nMultLength=4, nMultNumber=4;
|
||||
var nMultSymbol=6;
|
||||
var nTmpAlphaUC="", nTmpAlphaLC="", nTmpNumber="", nTmpSymbol="";
|
||||
var sAlphaUC="0", sAlphaLC="0", sNumber="0", sSymbol="0", sMidChar="0", sRequirements="0", sAlphasOnly="0", sNumbersOnly="0", sRepChar="0", sConsecAlphaUC="0", sConsecAlphaLC="0", sConsecNumber="0", sSeqAlpha="0", sSeqNumber="0", sSeqSymbol="0";
|
||||
var sAlphas = "abcdefghijklmnopqrstuvwxyz";
|
||||
var sNumerics = "01234567890";
|
||||
var sSymbols = ")!@#$%^&*()";
|
||||
var nMinPwdLen = 8;
|
||||
if (document.all) { var nd = 0; } else { var nd = 1; }
|
||||
if (pwd) {
|
||||
nScore = parseInt(pwd.length * nMultLength);
|
||||
nLength = pwd.length;
|
||||
var arrPwd = pwd.replace(/\s+/g,"").split(/\s*/);
|
||||
var arrPwdLen = arrPwd.length;
|
||||
|
||||
/* Loop through password to check for Symbol, Numeric, Lowercase and Uppercase pattern matches */
|
||||
for (var a=0; a < arrPwdLen; a++) {
|
||||
if (arrPwd[a].match(/[A-Z]/g)) {
|
||||
if (nTmpAlphaUC !== "") { if ((nTmpAlphaUC + 1) == a) { nConsecAlphaUC++; nConsecCharType++; } }
|
||||
nTmpAlphaUC = a;
|
||||
nAlphaUC++;
|
||||
}
|
||||
else if (arrPwd[a].match(/[a-z]/g)) {
|
||||
if (nTmpAlphaLC !== "") { if ((nTmpAlphaLC + 1) == a) { nConsecAlphaLC++; nConsecCharType++; } }
|
||||
nTmpAlphaLC = a;
|
||||
nAlphaLC++;
|
||||
}
|
||||
else if (arrPwd[a].match(/[0-9]/g)) {
|
||||
if (a > 0 && a < (arrPwdLen - 1)) { nMidChar++; }
|
||||
if (nTmpNumber !== "") { if ((nTmpNumber + 1) == a) { nConsecNumber++; nConsecCharType++; } }
|
||||
nTmpNumber = a;
|
||||
nNumber++;
|
||||
}
|
||||
else if (arrPwd[a].match(/[^a-zA-Z0-9_]/g)) {
|
||||
if (a > 0 && a < (arrPwdLen - 1)) { nMidChar++; }
|
||||
if (nTmpSymbol !== "") { if ((nTmpSymbol + 1) == a) { nConsecSymbol++; nConsecCharType++; } }
|
||||
nTmpSymbol = a;
|
||||
nSymbol++;
|
||||
}
|
||||
/* Internal loop through password to check for repeat characters */
|
||||
var bCharExists = false;
|
||||
for (var b=0; b < arrPwdLen; b++) {
|
||||
if (arrPwd[a] == arrPwd[b] && a != b) { /* repeat character exists */
|
||||
bCharExists = true;
|
||||
/*
|
||||
Calculate icrement deduction based on proximity to identical characters
|
||||
Deduction is incremented each time a new match is discovered
|
||||
Deduction amount is based on total password length divided by the
|
||||
difference of distance between currently selected match
|
||||
*/
|
||||
nRepInc += Math.abs(arrPwdLen/(b-a));
|
||||
}
|
||||
}
|
||||
if (bCharExists) {
|
||||
nRepChar++;
|
||||
nUnqChar = arrPwdLen-nRepChar;
|
||||
nRepInc = (nUnqChar) ? Math.ceil(nRepInc/nUnqChar) : Math.ceil(nRepInc);
|
||||
}
|
||||
}
|
||||
|
||||
/* Check for sequential alpha string patterns (forward and reverse) */
|
||||
for (var s=0; s < 23; s++) {
|
||||
var sFwd = sAlphas.substring(s,parseInt(s+3));
|
||||
var sRev = sFwd.strReverse();
|
||||
if (pwd.toLowerCase().indexOf(sFwd) != -1 || pwd.toLowerCase().indexOf(sRev) != -1) { nSeqAlpha++; nSeqChar++;}
|
||||
}
|
||||
|
||||
/* Check for sequential numeric string patterns (forward and reverse) */
|
||||
for (var s=0; s < 8; s++) {
|
||||
var sFwd = sNumerics.substring(s,parseInt(s+3));
|
||||
var sRev = sFwd.strReverse();
|
||||
if (pwd.toLowerCase().indexOf(sFwd) != -1 || pwd.toLowerCase().indexOf(sRev) != -1) { nSeqNumber++; nSeqChar++;}
|
||||
}
|
||||
|
||||
/* Check for sequential symbol string patterns (forward and reverse) */
|
||||
for (var s=0; s < 8; s++) {
|
||||
var sFwd = sSymbols.substring(s,parseInt(s+3));
|
||||
var sRev = sFwd.strReverse();
|
||||
if (pwd.toLowerCase().indexOf(sFwd) != -1 || pwd.toLowerCase().indexOf(sRev) != -1) { nSeqSymbol++; nSeqChar++;}
|
||||
}
|
||||
|
||||
/* Modify overall score value based on usage vs requirements */
|
||||
|
||||
/* General point assignment */
|
||||
if (nAlphaUC > 0 && nAlphaUC < nLength) {
|
||||
nScore = parseInt(nScore + ((nLength - nAlphaUC) * 2));
|
||||
sAlphaUC = "+ " + parseInt((nLength - nAlphaUC) * 2);
|
||||
}
|
||||
if (nAlphaLC > 0 && nAlphaLC < nLength) {
|
||||
nScore = parseInt(nScore + ((nLength - nAlphaLC) * 2));
|
||||
sAlphaLC = "+ " + parseInt((nLength - nAlphaLC) * 2);
|
||||
}
|
||||
if (nNumber > 0 && nNumber < nLength) {
|
||||
nScore = parseInt(nScore + (nNumber * nMultNumber));
|
||||
sNumber = "+ " + parseInt(nNumber * nMultNumber);
|
||||
}
|
||||
if (nSymbol > 0) {
|
||||
nScore = parseInt(nScore + (nSymbol * nMultSymbol));
|
||||
sSymbol = "+ " + parseInt(nSymbol * nMultSymbol);
|
||||
}
|
||||
if (nMidChar > 0) {
|
||||
nScore = parseInt(nScore + (nMidChar * nMultMidChar));
|
||||
sMidChar = "+ " + parseInt(nMidChar * nMultMidChar);
|
||||
}
|
||||
|
||||
/* Point deductions for poor practices */
|
||||
if ((nAlphaLC > 0 || nAlphaUC > 0) && nSymbol === 0 && nNumber === 0) { // Only Letters
|
||||
nScore = parseInt(nScore - nLength);
|
||||
nAlphasOnly = nLength;
|
||||
sAlphasOnly = "- " + nLength;
|
||||
}
|
||||
if (nAlphaLC === 0 && nAlphaUC === 0 && nSymbol === 0 && nNumber > 0) { // Only Numbers
|
||||
nScore = parseInt(nScore - nLength);
|
||||
nNumbersOnly = nLength;
|
||||
sNumbersOnly = "- " + nLength;
|
||||
}
|
||||
if (nRepChar > 0) { // Same character exists more than once
|
||||
nScore = parseInt(nScore - nRepInc);
|
||||
sRepChar = "- " + nRepInc;
|
||||
}
|
||||
if (nConsecAlphaUC > 0) { // Consecutive Uppercase Letters exist
|
||||
nScore = parseInt(nScore - (nConsecAlphaUC * nMultConsecAlphaUC));
|
||||
sConsecAlphaUC = "- " + parseInt(nConsecAlphaUC * nMultConsecAlphaUC);
|
||||
}
|
||||
if (nConsecAlphaLC > 0) { // Consecutive Lowercase Letters exist
|
||||
nScore = parseInt(nScore - (nConsecAlphaLC * nMultConsecAlphaLC));
|
||||
sConsecAlphaLC = "- " + parseInt(nConsecAlphaLC * nMultConsecAlphaLC);
|
||||
}
|
||||
if (nConsecNumber > 0) { // Consecutive Numbers exist
|
||||
nScore = parseInt(nScore - (nConsecNumber * nMultConsecNumber));
|
||||
sConsecNumber = "- " + parseInt(nConsecNumber * nMultConsecNumber);
|
||||
}
|
||||
if (nSeqAlpha > 0) { // Sequential alpha strings exist (3 characters or more)
|
||||
nScore = parseInt(nScore - (nSeqAlpha * nMultSeqAlpha));
|
||||
sSeqAlpha = "- " + parseInt(nSeqAlpha * nMultSeqAlpha);
|
||||
}
|
||||
if (nSeqNumber > 0) { // Sequential numeric strings exist (3 characters or more)
|
||||
nScore = parseInt(nScore - (nSeqNumber * nMultSeqNumber));
|
||||
sSeqNumber = "- " + parseInt(nSeqNumber * nMultSeqNumber);
|
||||
}
|
||||
if (nSeqSymbol > 0) { // Sequential symbol strings exist (3 characters or more)
|
||||
nScore = parseInt(nScore - (nSeqSymbol * nMultSeqSymbol));
|
||||
sSeqSymbol = "- " + parseInt(nSeqSymbol * nMultSeqSymbol);
|
||||
}
|
||||
|
||||
/* Determine if mandatory requirements have been met and set image indicators accordingly */
|
||||
var arrChars = [nLength,nAlphaUC,nAlphaLC,nNumber,nSymbol];
|
||||
var arrCharsIds = ["nLength","nAlphaUC","nAlphaLC","nNumber","nSymbol"];
|
||||
var arrCharsLen = arrChars.length;
|
||||
for (var c=0; c < arrCharsLen; c++) {
|
||||
if (arrCharsIds[c] == "nLength") { var minVal = parseInt(nMinPwdLen - 1); } else { var minVal = 0; }
|
||||
if (arrChars[c] == parseInt(minVal + 1)) { nReqChar++ }
|
||||
else if (arrChars[c] > parseInt(minVal + 1)) { nReqChar++; }
|
||||
}
|
||||
|
||||
nRequirements = nReqChar;
|
||||
if (pwd.length >= nMinPwdLen) { var nMinReqChars = 3; } else { var nMinReqChars = 4; }
|
||||
if (nRequirements > nMinReqChars) { // One or more required characters exist
|
||||
nScore = parseInt(nScore + (nRequirements * 2));
|
||||
sRequirements = "+ " + parseInt(nRequirements * 2);
|
||||
}
|
||||
|
||||
/* Display updated score criteria to client */
|
||||
if (nScore > 100) { nScore = 100; } else if (nScore < 0) { nScore = 0; }
|
||||
$("#scorebar").css("width", parseInt(nScore) + "px");
|
||||
if (nScore > 0) {
|
||||
$("#scorebar").css("display", "");
|
||||
} else {
|
||||
$("#scorebar").css("display", "none");
|
||||
}
|
||||
}
|
||||
else {
|
||||
/* Display default score criteria to client */
|
||||
initPwdChk();
|
||||
}
|
||||
}
|
||||
|
||||
function initPwdChk() {
|
||||
/* Reset all form values to their default */
|
||||
$("#scorebar").css("width", "0px");
|
||||
$("#scorebar").css("display", "none");
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
/* Init the password checking */
|
||||
$("#pass").keyup(function() {
|
||||
chkPass(this.value);
|
||||
});
|
||||
$("#scorebar").wrap('<div id="scorebardiv" />');
|
||||
initPwdChk();
|
||||
});
|
Laden …
In neuem Issue referenzieren