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 | |
| use Base32\Base32; | |
| /** | |
| * Class for options | |
| */ | |
| final class BackWPup_Option { | |
| /** |
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
| {"items":[{"matp":"01","name":"Thành phố Hà Nội","type":"Thành phố Trung ương","huyen":[{"maqh":"001","name":"Quận Ba Đình","type":"Quận","matp":"01","xa":[{"xaid":"00001","name":"Phường Phúc Xá","type":"Phường","maqh":"001"},{"xaid":"00004","name":"Phường Trúc Bạch","type":"Phường","maqh":"001"},{"xaid":"00006","name":"Phường Vĩnh Phúc","type":"Phường","maqh":"001"},{"xaid":"00007","name":"Phường Cống Vị","type":"Phường","maqh":"001"},{"xaid":"00008","name":"Phường Liễu Giai","type":"Phường","maqh":"001"},{"xaid":"00010","name":"Phường Nguyễn Trung Trực","type":"Phường","maqh":"001"},{"xaid":"00013","name":"Phường Quán Thánh","type":"Phường","maqh":"001"},{"xaid":"00016","name":"Phường Ngọc Hà","type":"Phường","maqh":"001"},{"xaid":"00019","name":"Phường Điện Biên","type":"Phường","maqh":"001"},{"xaid":"00022","name":"Phường Đội Cấn","type":"Phường","maqh":"001"},{"xaid":"00025","name":"Phường Ngọc Khánh","type":"Phường","maqh":"001"},{"xaid":"00028","name":"Phường Kim Mã","type":"Phường","maqh":"001"},{"xai |
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 | |
| use \Inpsyde\BackWPup\Pro\Settings; | |
| /** | |
| * BackWPup_Admin | |
| */ | |
| final class BackWPup_Admin { | |
| public $page_hooks = []; |
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 | |
| use \Inpsyde\BackWPup\Pro\Settings; | |
| /** | |
| * BackWPup_Admin | |
| */ | |
| final class BackWPup_Admin { | |
| public $page_hooks = []; |
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 for communicating with Dropbox API V2. | |
| */ | |
| final class BackWPup_Destination_Dropbox_API { | |
| /** | |
| * URL to Dropbox API endpoint. | |
| */ |
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 in that the BackWPup job runs | |
| */ | |
| final class BackWPup_Job { | |
| const ENCRYPTION_SYMMETRIC = 'symmetric'; | |
| const ENCRYPTION_ASYMMETRIC = 'asymmetric'; |
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 | |
| ### Set Language | |
| TEXTDOMAIN=virtualhost | |
| ### Set default parameters | |
| action=$1 | |
| domain=$2 | |
| rootDir=$3 | |
| owner=$(who am i | awk '{print $1}') | |
| apacheUser=$(ps -ef | egrep '(httpd|apache2|apache)' | grep -v root | head -n1 | awk '{print $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 | |
| use Inpsyde\BackWPup\Settings; | |
| /** | |
| * Class BackWPup_Page_Settings | |
| */ | |
| class BackWPup_Page_Settings { | |
| /** |
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
| //maps.googleapis.com | |
| //maps.gstatic.com | |
| //fonts.googleapis.com | |
| //fonts.gstatic.com | |
| //ajax.googleapis.com | |
| //apis.google.com | |
| //google-analytics.com | |
| //www.google-analytics.com | |
| //ssl.google-analytics.com | |
| //youtube.com |
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 | |
| protected function form() | |
| { | |
| $form = new Form(new ModelName); | |
| $form->text('title')->rules('required')->required()->help('This field must be required'); | |
| $form->text('number')->rules('required|regex:/\d{3}/')->pattern('\d{3}')->help('This field must be three digits'); | |
| return $form; | |
| } |