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 | |
| ################## | |
| # Bash script to install IonCube Loader | |
| # By @AamnahAkram from http://aamnah.com | |
| ################## | |
| # Color Reset | |
| Color_Off='\033[0m' # Text Reset |
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
| // 4 spaces to 2 spaces | |
| %s;^\(\s\+\);\=repeat(' ', len(submatch(0))/2);g | |
| // Tab to 2 spaces | |
| :%s/\t/ /g |
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 | |
| /* vars for export */ | |
| // database record to be exported | |
| $db_record = 'XXXXXXXXX'; | |
| // optional where query | |
| $where = 'WHERE 1 ORDER BY 1'; | |
| // filename for export | |
| $csv_filename = 'db_export_'.$db_record.'_'.date('Y-m-d').'.csv'; | |
| // database variables |
NewerOlder