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
| #!/bin/bash | |
| # Author: Michaël Marinetti | |
| # Description: in each files ( $ext extension) | |
| # if they not contains $search add $content (absolute path) before $add_before (a vim regex, beginning with / or ?) | |
| dir=www | |
| ext="htm" | |
| search="_setAccount" | |
| content=~/correct-html-header | |
| add_before="/<\/head>/-1" |
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 | |
| private function getCurrentRule() { | |
| $return = false; | |
| $rules = array_reverse($this->getRules()); | |
| $today = time() ; | |
| $year = Date('Y') ; | |
| $day = Date('d') ; | |
| $month = Date('m') ; |
NewerOlder