- create a new virtualhosts directory, this where you put all your virtualhosts.
PHP stuff:
- php-gd
- php-mbstring
| <?php | |
| class Logger { | |
| public $db; | |
| public function __construct() { | |
| $this->db = $this->_conn('localhost','root','root','stats'); | |
| } | |
| private function _conn($dbhost, $user,$pwd, $db) { | |
| try { | |
| return mysqli_connect($dbhost,$user,$pwd,$db); |
| import os | |
| os.system("/Applications/XAMPP/xamppfiles/xampp start") |
| <?php | |
| // /vendors/phpmailer/class.phpmail.php -> | |
| // add a variable named SMTPSecure - SSL / TLS | |
| var $SMTPSecure | |
| // line 542 | |
| if(!empty($this->SMTPSecure)) | |
| { | |
| $secure = $this->SMTPSecure . '://'; | |
| } |
| function exportSaveHtml(dhtml) { | |
| window.open('data:application/csv;charset=utf-8,' + encodeURI(dhtml)); | |
| } |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <style> | |
| #my-carousel { border: 1px solid #000; padding: 10px; } | |
| .carousel-item { display: none; position: relative; padding: 0 30px;} | |
| .carousel-item .carousel-prev { position: absolute; left: 0; } | |
| .carousel-item .carousel-next { position: absolute; right: 0; } | |
| </style> | |
| </head> |
| /* jqModal base Styling courtesy of; | |
| Brice Burgess <[email protected]> */ | |
| /* The Window's CSS z-index value is respected (takes priority). If none is supplied, | |
| the Window's z-index value will be set to 3000 by default (via jqModal.js). */ | |
| .jqmWindow { | |
| /* display: none; Normally you want to display:none to avoid a FOUC, but this causes problems if there is a Facebook like button in the overlay (it will not display on some browsers. So, we use visibility:hidden instead and adapt the launch script accordingly */ | |
| visibility:hidden; |
| function hideModal(modalId) { | |
| document.getElementById(modalId).innerHTML = ""; //('slow'); | |
| } |
| $(document).keyup(function(e) { | |
| if (e.keyCode == 27) { | |
| view.modalClose(); | |
| } | |
| }); | |
| // then in your backbone view | |
| //... | |
| modalClose: function() { |
| function GetWidth() | |
| { | |
| var x = 0; | |
| if (self.innerHeight) { | |
| x = self.innerWidth; | |
| } else if (document.documentElement && document.documentElement.clientHeight){ | |
| x = document.documentElement.clientWidth; | |
| } else if (document.body){ | |
| x = document.body.clientWidth; | |
| } |