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 | |
defined("DS") || define("DS", DIRECTORY_SEPARATOR); | |
defined ("ROOT-PATH") || define ("ROOT_PATH", realpath(dirname(__FILE__) . DS . ".." . DS)); | |
/* ..... */ | |
/* ... from Multipage online for Sebastian Sulinski */ | |
set_invlude_path( | |
implode(PATH_SEPARATOR, array ( |
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 | |
if(isset($_GET)) { | |
foreach ($_GET as $key => $value) { | |
if(!empty($value)) { | |
${$key} = trim($value); | |
} | |
} | |
} |
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 | |
return !empty($out) ? $out : null; |
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 | |
function getAge($label, $limit=150) { | |
$out = "<select name=\"{$label}\" id=\"{$label}\" class=\"sel\">"; | |
for($i=0; $i <= $limit; $i++) { | |
$out .= "<option value=\"{$i}\""; | |
$out .= stickyDropdown($label, $i); | |
$out .= ">{$i}</option>"; | |
} | |
$out .= "</select>"; |
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
// from SO advertising | |
if(dev.isBored() || job.sucks()) { | |
searchJobs({flexibleHours: true, companyCulture: 100}); | |
} |
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 | |
//error_reporting(E_ALL); | |
//ini_set('display_errors', 1); |
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 | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); | |
class Canonical | |
{ | |
public $modx = null; | |
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 | |
return; | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); | |
class Canonical | |
{ | |
public $modx = null; | |
public $corePath; |
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 | |
return; | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); | |
class Canonical | |
{ | |
public $modx = null; | |
public $resourseId; |