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 | |
| // redirect site | |
| if(!Pimcore_Tool::isFrontentRequestByAdmin()){ | |
| $d = preg_match('/region\/(.*)/', $this->_request->getPathInfo(), $matches); | |
| if($d){ | |
| $this->redirect('http://www.newdomain.at/' . $matches[1], array('code' => 301)); | |
| } | |
| } |
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 | |
| $document_path = $this->_request->getPathInfo(); | |
| if(!Pimcore_Tool::isFrontentRequestByAdmin()){ | |
| $pos = strpos($document_path, '/' . $this->language . '/tosc4'); | |
| if($pos === false && $_SERVER['SERVER_PORT'] == 443){ | |
| Pimcore_Model_Cache::disable(); | |
| $this->_redirect('http://www.domain.at' . $document_path, array('code' => 301)); | |
| } |
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 | |
| public function QrcodeAction () { | |
| $url = $this->getParam("url"); | |
| $codeSettings = array( | |
| 'text' => $url, | |
| 'backgroundColor' => '#FFFFFF', | |
| 'foreColor' => '#000000', | |
| 'padding' => 0, //array(10,5,10,5), | |
| 'moduleSize' => 10 |
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 | |
| $today = new Zend_Date(); | |
| $today->add(6, Zend_Date::MONTH); | |
| $time = $today->getTimestamp(); | |
| $rd = new InsertRedirect(); | |
| $row = 1; | |
| if (($handle = fopen("redirects.csv", "r")) !== FALSE) { | |
| while (($data = fgetcsv($handle, 10000, ";")) !== FALSE) { |
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
| /* Smartphones (portrait and landscape) ----------- */ | |
| @media only screen | |
| and (min-device-width : 320px) | |
| and (max-device-width : 480px) { | |
| /* Styles */ | |
| } | |
| /* Smartphones (landscape) ----------- */ | |
| @media only screen | |
| and (min-width : 321px) { |
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
| if(typeof(Storage) !== "undefined") { | |
| var d = new Date(); | |
| var n = Math.round(d.getTime() /1000); | |
| if (sessionStorage.toralarmvisit) { | |
| } else { | |
| sessionStorage.toralarmvisit = n; | |
| } |
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
| pimcore.registerNS("pimcore.plugin.productimport"); | |
| pimcore.plugin.productimport = Class.create(pimcore.plugin.admin, { | |
| getClassName: function() { | |
| return "pimcore.plugin.productimport"; | |
| }, | |
| initialize: function() { | |
| pimcore.plugin.broker.registerPlugin(this); |
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 | |
| $tmpFiles = []; | |
| foreach ($_FILES as $file) { | |
| $imPath = PIMCORE_TEMPORARY_DIRECTORY . "/" . uniqid() . ".jpg"; | |
| $im = Pimcore_Image::getInstance(); |
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 | |
| // SSL redirect | |
| if(!$this->editmode){ | |
| if($this->document instanceof Document_Page){ | |
| $domain = 'www.domain.tld'; | |
| if($this->document->getProperty('https') && !$this->getRequest()->isSecure()){ |
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 | |
| $fp = fsockopen('127.0.0.1', 6379, $errno, $errstr, 30); | |
| $data = array(); | |
| if (!$fp) { | |
| die($errstr); | |
| } else { | |
| fwrite($fp, "INFO\r\nQUIT\r\n"); | |
| while (!feof($fp)) { |
OlderNewer