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
if($_SERVER['REMOTE_ADDR'] == '86.120.211.231'){ | |
ini_set("display_errors", 'On'); | |
error_reporting(E_ALL ^ E_NOTICE); | |
}else{ | |
ini_set("display_errors", 'Off'); | |
} |
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
SELECT test_col, SUBSTRING_INDEX(test_col, '', 1) as test_col_str, | |
SUBSTRING_INDEX(test_col, ' ', -1) + 0 as test_col_num FROM test ORDER | |
BY test_col_str, test_col_num; |
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
<div id="dnnUserFileManager" class="dnnFileManager dnnClear"> | |
<div class="fm-explorer-wrap dnnLeft"> | |
<div class="fm-breadcrumb"> | |
<p> | |
<span data-bind="foreach: currentBreadcrumbs"> | |
<!-- ko if: id === $root.chosenFolderId() --> | |
<span data-bind="text: name"></span> | |
<!-- /ko --> | |
<!-- ko if: id !== $root.chosenFolderId() --> | |
<a href="#" data-bind="text: name, click: $root.goToFolder"></a> / |
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 | |
function unzip($location,$newLocation){ | |
if(exec("unzip $location",$arr)){ | |
mkdir($newLocation); | |
for($i = 1;$i< count($arr);$i++){ | |
$file = trim(preg_replace("~inflating: ~","",$arr[$i])); | |
copy($location.'/'.$file,$newLocation.'/'.$file); | |
unlink($location.'/'.$file); | |
} | |
return TRUE; |
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
GRANT ALL PRIVILEGES ON db_base.* TO db_user @'%' IDENTIFIED BY 'db_passwd'; |
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
sprintf("%04s",$value) leading 0's 4--numar de cifre |
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
usort($result, function($a, $b){ | |
if($a['sortkey'] == $b['sortkey']){ | |
return 0; | |
}else{ | |
return ($a['sortkey'] > $b['sortkey']) ? 1: -1; | |
} | |
}); |
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
alter table csshop_products_prospect convert to character set utf8 collate utf8_general_ci |
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
--exclude 'cs-photos/products' | |
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
GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' WITH GRANT OPTION; |
OlderNewer