yum install varnish
yum install nginx
server {
listen 8081;
server_name www.example.com;
Joomla.submitform = function(task, form) { | |
if (typeof (form) === 'undefined' || form === null) { | |
form = document.adminForm; | |
} | |
jQuery('.toolbox-saveConfig').trigger('click'); // dirty hack for megamenu save | |
if (typeof (task) !== 'undefined') { | |
form.task.value = task; | |
} |
<?php | |
// Get Params | |
$app = JFactory::getApplication(); | |
$params = $app->getMenu()->getActive()->params; // get the active item | |
$category_ids = array($params->get('category_id')); | |
getSubCategories( array($params->get('category_id')), $category_ids, 4 ); | |
var_dump($category_ids); | |
function getSubCategories($ids, &$catIDs, $level){ |
$currency_symbols = array( | |
'AED(د.إ)', // ? | |
'AFN(Af)', | |
'ALL(Lek)', | |
'ANG(ƒ)', | |
'AOA(Kz)', // ? | |
'ARS($)', | |
'AUD($)', | |
'AWG(ƒ)', | |
'AZN(ман)', |
<?php | |
include("includes/config.inc.php"); | |
#Language | |
$objSite->languageSession(); | |
#echo "<pre>"; print_r($objSmarty); echo "</pre>";exit; | |
if( ($_SERVER['HTTP_X_FORWARDED_HOST'] || $_SERVER['SERVER_ADDR'] == '31.210.53.104') && (($_SERVER['HTTP_HOST'] != 'enkolayweb.com' && $_SERVER['HTTP_HOST'] != 'www.enkolayweb.com' && $_SERVER['HTTP_HOST'] != 'http://enkolayweb.com' ) || $_SERVER['HTTP_X_FORWARDED_HOST'] ) ) | |
{ | |
if($_SERVER['HTTP_X_FORWARDED_HOST']) |
#!/bin/bash | |
# usage: ./backup.sh domain.com | |
#Config | |
BACKUPPATH="/home/backup"; # store backups here | |
HOSTPATH="/home"; # path where hosted domains are | |
# set database settings. | |
DBUSER="root" |
#!/usr/local/bin/bash | |
# version 1.0 | |
# usage: ./backup.sh domain.com | |
#Config | |
BACKUPCONFIG="backup-config.txt"; #domain sourcepath dbhost dbname dbuser dbpass | |
BACKUPPATH="/home/infact-m6/backup"; | |
BACKUPSERVER="infact-m3.sakura.ne.jp"; | |
BACKUPSERVER_USERNAME="infact-m3"; |
Minimum eight characters, at least one letter and one number: | |
"^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$" | |
Minimum eight characters, at least one letter, one number and one special character: | |
"^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*#?&])[A-Za-z\d@$!%*#?&]{8,}$" | |
Minimum eight characters, at least one uppercase letter, one lowercase letter and one number: | |
"^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{8,}$" |
<?php | |
//$attribute = 'a:2:{s:8:"pa_color";a:6:{s:4:"name";s:8:"pa_color";s:5:"value";s:0:"";s:8:"position";s:1:"2";s:10:"is_visible";s:1:"1";s:12:"is_variation";s:1:"1";s:11:"is_taxonomy";s:1:"1";}s:7:"pa_size";a:6:{s:4:"name";s:7:"pa_size";s:5:"value";s:0:"";s:8:"position";s:1:"3";s:10:"is_visible";s:1:"1";s:12:"is_variation";s:1:"1";s:11:"is_taxonomy";s:1:"1";}}'; | |
//echo '<pre>'; | |
//var_dump(unserialize ($attribute)); | |
//echo '</pre>'; | |
define('IMPORT_BASE_URL', 'http://www.ndkstore.com/?post_type=product&p='); |