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
| $files = glob("*"); | |
| foreach($files as $file){ | |
| rrmdir($file); | |
| } | |
| function rrmdir($dir) | |
| { | |
| if (is_dir($dir)) // ensures that we actually have a directory |
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
| $zip = new ZipArchive; | |
| $res = $zip->open('sw.zip'); | |
| if ($res === TRUE) { | |
| $zip->extractTo('./'); | |
| $zip->close(); | |
| echo 'ok'; | |
| } else { | |
| echo 'failed'; | |
| } |
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
| chmod 777 config.php | |
| chmod 777 -R cache | |
| chmod 777 -R files | |
| chmod 777 -R media | |
| chmod 777 -R engine/Shopware/Plugins/Community | |
| chmod 777 -R logs | |
| chmod 777 -R engine/Shopware/Plugins/Default | |
| chmod 777 -R web/cache/ | |
| chmod 777 -R recovery/ | |
| chmod 777 -R themes/Frontend |
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 | |
| $d = new DOMDocument; | |
| $mock = new DOMDocument; | |
| $d->loadHTML(file_get_contents('http://www.telekom-stiftung.de/dts-cms/de/mobile-newsarchiv')); | |
| $body = $d->getElementsByTagName('body')->item(0); | |
| foreach ($body->childNodes as $child){ | |
| $mock->appendChild($mock->importNode($child, true)); | |
| } | |
| echo $mock->saveHTML(); |
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
| $ret = array_map ( | |
| function ($_) {return explode (':', $_);}, | |
| explode (';', $data) | |
| ); |
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
| -- -------------------------------------------------------- | |
| -- | |
| -- Create View in export-DB to get data by customernumber and export it to a tmp table into the import-DB | |
| -- | |
| -- -------------------------------------------------------- | |
| DROP VIEW IF EXISTS `v_user_debit_by_customernumber`; | |
| CREATE VIEW `v_user_debit_by_customernumber` AS select `s_user_billingaddress`.`customernumber` AS `customernumber`,`s_user_debit`.`account` AS `account`,`s_user_debit`.`bankcode` AS `bankcode`,`s_user_debit`.`bankname` AS `bankname`,`s_user_debit`.`bankholder` AS `bankholder` from (`s_user_billingaddress` join `s_user_debit`) where (`s_user_billingaddress`.`userID` = `s_user_debit`.`userID`); | |
| -- -------------------------------------------------------- |
NewerOlder