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 | |
/* | |
EmailAddressValidator Class | |
http://code.google.com/p/php-email-address-validation/ | |
Released under New BSD license | |
http://www.opensource.org/licenses/bsd-license.php | |
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 | |
/** | |
* HTML template for the install | |
* | |
* @package Install | |
* @category Helper | |
* @author Chema <[email protected]> | |
* @copyright (c) 2009-2014 Open Classifieds Team | |
* @license GPL v3 | |
*/ |
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 | |
/** | |
* HTML template for the install | |
* | |
* @package Install | |
* @category Helper | |
* @author Chema <[email protected]> | |
* @copyright (c) 2009-2014 Open Classifieds Team | |
* @license GPL v3 | |
*/ |
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 | |
/** | |
* HTML template for the install | |
* | |
* @package Install | |
* @category Helper | |
* @author Chema <[email protected]> | |
* @copyright (c) 2009-2014 Open Classifieds Team | |
* @license GPL v3 | |
*/ |
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 | |
/** | |
* HTML template for the install | |
* | |
* @package Install | |
* @category Helper | |
* @author Chema <[email protected]> | |
* @copyright (c) 2009-2014 Open Classifieds Team | |
* @license GPL v3 | |
*/ |
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
<? | |
/** | |
* checks if a domain name is valid | |
* @param string $domain_name | |
* @return bool | |
*/ | |
public static function domain_name($domain_name) | |
{ | |
//FILTER_VALIDATE_URL checks length but..why not? so we dont move forward with more expensive operations | |
$domain_len = strlen($domain_name); |
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
server { | |
listen 80; | |
listen [::]:80; | |
server_name | |
yourdomain.com | |
; | |
root /var/www/openclassifieds; | |
proxy_set_header Host $host; |
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 | |
/** | |
* HTML template for the install | |
* | |
* @package Install | |
* @category Helper | |
* @author Chema <[email protected]> | |
* @copyright (c) 2009-2014 Open Classifieds Team | |
* @license GPL v3 |
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
/** | |
* CSV file to array | |
* @param file $csv | |
* @param array $expected_header | |
* @param boolean $convert_object you want it returned as an object? | |
* @param string $delimiter | |
* @param string $enclosure | |
* @return array | |
*/ | |
public function csv_to_array($csv,$expected_header=NULL,$convert_object = FALSE, $delimiter = "," , $enclosure = '"') |
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 | |
/** | |
* HTML template for the install | |
* | |
* @package Install | |
* @category Helper | |
* @author Chema <[email protected]> | |
* @copyright (c) 2009-2014 Open Classifieds Team | |
* @license GPL v3 |