From: Roland Häder Date: Sun, 5 Apr 2009 07:51:48 +0000 (+0000) Subject: Renamed to match with latest core. Database files ignored, cache files ignored X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5b6f80fb31c512804673214de15dba186ad54519;p=shipsimu.git Renamed to match with latest core. Database files ignored, cache files ignored --- diff --git a/.gitattributes b/.gitattributes index 5e68650..d50f5b2 100644 --- a/.gitattributes +++ b/.gitattributes @@ -224,12 +224,13 @@ application/ship-simu/templates/de/emails/text_resend_link.tpl -text application/ship-simu/templates/de/html/.htaccess -text application/ship-simu/templates/de/html/nav_advert.tpl -text application/ship-simu/templates/de/html/selector_ship-simu.tpl -text +application/ship-simu/templates/de/menu/.htaccess -text application/ship-simu/templates/images/.htaccess -text application/ship-simu/templates/images/_cache/.htaccess -text application/ship-simu/templates/images/de/.htaccess -text application/ship-simu/templates/images/de/image/.htaccess -text -application/ship-simu/templates/images/de/image/base_code.itp -text -application/ship-simu/templates/images/de/image/code_captcha.itp -text +application/ship-simu/templates/images/de/image/base_code.xml -text +application/ship-simu/templates/images/de/image/code_captcha.xml -text /clear-cache.sh -text db/.htaccess -text db/company/.htaccess -text diff --git a/.gitignore b/.gitignore index 5e4afd2..9a129d4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,11 @@ /.cache /.project /.settings +application/ship-simu/templates/images/_cache/*.* +db/company/*.serialized +db/company_user/*.serialized +db/gov_user/*.serialized +db/news/*.serialized +db/payments/*.serialized +db/user/*.serialized +db/user_points/*.serialized diff --git a/application/ship-simu/templates/de/menu/.htaccess b/application/ship-simu/templates/de/menu/.htaccess new file mode 100644 index 0000000..3a42882 --- /dev/null +++ b/application/ship-simu/templates/de/menu/.htaccess @@ -0,0 +1 @@ +Deny from all diff --git a/application/ship-simu/templates/images/de/image/base_code.itp b/application/ship-simu/templates/images/de/image/base_code.itp deleted file mode 100644 index 6501b56..0000000 --- a/application/ship-simu/templates/images/de/image/base_code.itp +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/application/ship-simu/templates/images/de/image/base_code.xml b/application/ship-simu/templates/images/de/image/base_code.xml new file mode 100644 index 0000000..6501b56 --- /dev/null +++ b/application/ship-simu/templates/images/de/image/base_code.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/application/ship-simu/templates/images/de/image/code_captcha.itp b/application/ship-simu/templates/images/de/image/code_captcha.itp deleted file mode 100644 index 2e28522..0000000 --- a/application/ship-simu/templates/images/de/image/code_captcha.itp +++ /dev/null @@ -1,78 +0,0 @@ -setImageName("code_captcha"); -$helper->setBaseImage("base_code"); - -// Set image dimensions -$helper->setWidth(100); -$helper->setHeight(50); - -// Get random number -$rand = $helper->getRngInstance()->randomNumber(0, 6); - -// Background and foreground color -switch ($rand) { - case 1: - // First varriant - $helper->setBackgroundColorRedGreenBlue('rand', 0x90 , 0x00 ); - $helper->setForegroundColorRedGreenBlue(0x00 , 0xff , 'rand'); - break; - - case 2: - // Second varriant - $helper->setBackgroundColorRedGreenBlue(0x90 , 'rand', 0x00 ); - $helper->setForegroundColorRedGreenBlue(0xff , 0x00 , 'rand'); - break; - - case 3: - // Third varriant - $helper->setBackgroundColorRedGreenBlue('rand', 0x00 , 0x90 ); - $helper->setForegroundColorRedGreenBlue(0x00 , 'rand', 0xff ); - break; - - case 4: - // Forth varriant - $helper->setBackgroundColorRedGreenBlue(0x00 , 0x90 , 'rand'); - $helper->setForegroundColorRedGreenBlue(0x00 , 'rand', 0xa0 ); - break; - - case 5: - // Fith varriant - $helper->setBackgroundColorRedGreenBlue('rand', 0x00 , 0x90 ); - $helper->setForegroundColorRedGreenBlue(0x00 , 0xe0 , 'rand'); - break; - - default: - // Last varriant - $helper->setBackgroundColorRedGreenBlue(0x00 , 'rand', 0x90 ); - $helper->setForegroundColorRedGreenBlue(0xff , 0x00 , 'rand'); - break; -} - -// Random X/Y factors... -$xRand = $helper->getRngInstance()->randomNumber(0, 45); -$yRand = $helper->getRngInstance()->randomNumber(0, 25); - -// Add code -$helper->addTextLine("code"); -$helper->setCoord((5 + $xRand), (5 + $yRand)); -$helper->setFontSize('rand'); -$helper->setImageString("{?decrypted_code?}"); - -// Only for debug! -/* -$helper->addTextLine("debug"); -$helper->setCoord(90, 35); -$helper->setFontSize(3); -$helper->setImageString($rand); -*/ - -// Flush content to the template engine -$helper->flushContent(); - -// Comment this out if image is done -//$this->debugInstance(); - -// [EOF] -?> diff --git a/application/ship-simu/templates/images/de/image/code_captcha.xml b/application/ship-simu/templates/images/de/image/code_captcha.xml new file mode 100644 index 0000000..2e28522 --- /dev/null +++ b/application/ship-simu/templates/images/de/image/code_captcha.xml @@ -0,0 +1,78 @@ +setImageName("code_captcha"); +$helper->setBaseImage("base_code"); + +// Set image dimensions +$helper->setWidth(100); +$helper->setHeight(50); + +// Get random number +$rand = $helper->getRngInstance()->randomNumber(0, 6); + +// Background and foreground color +switch ($rand) { + case 1: + // First varriant + $helper->setBackgroundColorRedGreenBlue('rand', 0x90 , 0x00 ); + $helper->setForegroundColorRedGreenBlue(0x00 , 0xff , 'rand'); + break; + + case 2: + // Second varriant + $helper->setBackgroundColorRedGreenBlue(0x90 , 'rand', 0x00 ); + $helper->setForegroundColorRedGreenBlue(0xff , 0x00 , 'rand'); + break; + + case 3: + // Third varriant + $helper->setBackgroundColorRedGreenBlue('rand', 0x00 , 0x90 ); + $helper->setForegroundColorRedGreenBlue(0x00 , 'rand', 0xff ); + break; + + case 4: + // Forth varriant + $helper->setBackgroundColorRedGreenBlue(0x00 , 0x90 , 'rand'); + $helper->setForegroundColorRedGreenBlue(0x00 , 'rand', 0xa0 ); + break; + + case 5: + // Fith varriant + $helper->setBackgroundColorRedGreenBlue('rand', 0x00 , 0x90 ); + $helper->setForegroundColorRedGreenBlue(0x00 , 0xe0 , 'rand'); + break; + + default: + // Last varriant + $helper->setBackgroundColorRedGreenBlue(0x00 , 'rand', 0x90 ); + $helper->setForegroundColorRedGreenBlue(0xff , 0x00 , 'rand'); + break; +} + +// Random X/Y factors... +$xRand = $helper->getRngInstance()->randomNumber(0, 45); +$yRand = $helper->getRngInstance()->randomNumber(0, 25); + +// Add code +$helper->addTextLine("code"); +$helper->setCoord((5 + $xRand), (5 + $yRand)); +$helper->setFontSize('rand'); +$helper->setImageString("{?decrypted_code?}"); + +// Only for debug! +/* +$helper->addTextLine("debug"); +$helper->setCoord(90, 35); +$helper->setFontSize(3); +$helper->setImageString($rand); +*/ + +// Flush content to the template engine +$helper->flushContent(); + +// Comment this out if image is done +//$this->debugInstance(); + +// [EOF] +?>