This file contains 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
//from https://github.com/peachananr/loading-bar | |
//I have recoded it a bit since uses a loop each, which is not convenient for me at all | |
$(function(){ | |
$("a.ajax-load").click(function(e){ | |
e.preventDefault(); | |
button = $(this); | |
//get the link location that was clicked | |
pageurl = button.attr('href'); | |
//to get the ajax content and display in div with id 'content' |
This file contains 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 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 <chema@open-classifieds.com> | |
* @copyright (c) 2009-2014 Open Classifieds Team | |
* @license GPL v3 | |
*/ |
This file contains 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 <chema@open-classifieds.com> | |
* @copyright (c) 2009-2014 Open Classifieds Team | |
* @license GPL v3 | |
*/ |
This file contains 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 <chema@open-classifieds.com> | |
* @copyright (c) 2009-2014 Open Classifieds Team | |
* @license GPL v3 | |
*/ |
This file contains 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 <chema@open-classifieds.com> | |
* @copyright (c) 2009-2014 Open Classifieds Team | |
* @license GPL v3 | |
*/ |
This file contains 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 <chema@open-classifieds.com> | |
* @copyright (c) 2009-2014 Open Classifieds Team | |
* @license GPL v3 |
This file contains 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 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 <chema@open-classifieds.com> | |
* @copyright (c) 2009-2014 Open Classifieds Team | |
* @license GPL v3 |
This file contains 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 | |
folders=(folder1 /my/otherfolder/ /var/www/openclassifieds2/) | |
for i in "${folders[@]}" | |
do | |
foo+=(--tab -e "bash -c 'cd "$i";git pull;git status';bash") | |
done | |
gnome-terminal "${foo[@]}" |
OlderNewer