This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // HTTPS Check | |
| if($this->getRequest()->isSecure()) { | |
| if(!$this->document || !$this->document->getProperty("https")) { | |
| $this->_redirect("http://" . $_SERVER["HTTP_HOST"] . $this->getRequest()->getRequestUri()); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static function getRetinaImage($image, $thumbnail){ | |
| if($image instanceof Document_Tag_Image){ | |
| $myfile = $image->image; | |
| } else if($image instanceof Asset_Image){ | |
| $myfile = $image; | |
| } else { | |
| return false; | |
| exit; | |
| } | |
| $end = explode('.', $myfile->getFilename()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RewriteCond %{HTTP:Accept-Language} ^en.*$ [NC] | |
| RewriteCond %{REQUEST_URI} ^/$ [NC] | |
| RewriteCond %{QUERY_STRING} !(^q\=) [NC] | |
| RewriteRule ^(.*)$ /en [L,R=302] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rsync -avz /www user@ip:/www | |
| Ein tar.gz-Archiv erstellen: | |
| tar cfvz test.tar.gz | |
| Die Datei test.tar.gz (mit gzip komprimiert) entpacken | |
| tar xfvz test.tar.gz | |
| Zunächst der Shell-Kommandoaufruf für das Backup einer Datenbank | |
| mysqldump -u username -p database_name > backup_file.sql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php if($_SERVER['REMOTE_ADDR'] == 'xx.xx.xx.xx'){ ?> | |
| <?php if($_SERVER["HTTP_X_FORWARDED_FOR"]== 'xx.xx.xx.xx'){ ?> | |
| <?php if(Pimcore_Tool::getClientIp() == 'xx.xx.xx.xx'){ ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var monthnames = []; | |
| var daynames = []; | |
| var dateFormat = 'dd.mm.yy'; | |
| var nextprev = []; | |
| switch(lang) { | |
| case "de": | |
| monthnames = ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember']; | |
| daynames = ['So','Mo','Di','Mi','Do','Fr','Sa']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| myhostname = hostname.example.com | |
| myorigin = $mydomain | |
| relayhost = $mydomain | |
| inet_interfaces = loopback-only | |
| mydestination = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Website_Controller_Action extends Pimcore_Controller_Action_Frontend { | |
| public function init () { | |
| if($this->_getParam("language") && Zend_Locale::isLocale($this->_getParam("language"))) { | |
| $locale = new Zend_Locale($this->_getParam("language")); | |
| Zend_Registry::set("Zend_Locale", $locale); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $mandatoryFields = array( | |
| 'firstname' => $this->_getParam('firstname'), | |
| 'lastname' => $this->_getParam('lastname'), | |
| 'street' => $this->_getParam('street'), | |
| 'zip' => $this->_getParam('zip'), | |
| 'city' => $this->_getParam('city'), | |
| 'land' => $this->_getParam('land'), | |
| 'email' => $this->_getParam('email') | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Website_Tool_Helper | |
| { | |
| public static function getImageTitle($image, $language) | |
| { | |
| $key = 'bild_title_' . $language; |
OlderNewer