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 | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
error_reporting(E_ERROR); | |
$hostname = '{imap.gmail.com:993/imap/ssl}INBOX'; | |
$username = '[email protected]'; | |
$password = 'password'; | |
$inbox = imap_open($hostname,$username,$password) or die('Cannot connect to Gmail: ' . imap_last_error()); |
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
INSTALL SYMFONY APP IN A SUBFOLDER OF AN EXISTING SITE | |
http://www.yegods.it/2015/01/30/install-symfony-app-in-a-subfolder-of-an-existing-site/ | |
Here a solution using virtual host Alias: | |
<VirtualHost *:80> | |
DocumentRoot "/var/www/html/vhosts/example.com/public_html" | |
ServerName www.example.com | |
<Directory "/var/www/html/vhosts/example.com/public_html"> |
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
.nav > li.divider { | |
display: none; | |
@media (min-width: @screen-sm) { | |
display: block; | |
& > a { | |
padding-left: 0; | |
padding-right: 0; | |
cursor: default; | |
&:hover, |
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
var circular = function (selector) { | |
var circle = ((typeof selector == "string") ? $(selector) : selector); | |
if (typeof selector == "string") { | |
window.setTimeout(function () { | |
$(selector).parent().addClass('open'); | |
}, 500); | |
} | |
var items = circle.children('li'); |
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 | |
/** | |
* Convert simple text to full html | |
* Image links will convert in <IMG> tags | |
* Url links will convert in <A> tags | |
* | |
* @param string $str the text to convert | |
* @param string $cssClass css class for tags | |
* @param boolean $strip_tags init strip html tags |
NewerOlder