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 | |
/** | |
* Determine if the model or given attribute(s) have been modified. | |
* | |
* @param Model $m | |
* @param array|string|null $attributes | |
* @return bool | |
*/ | |
function _is_dirty(Model $m, $attributes = null){ |
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 class="sa-icon sa-success" style="display: block;"> | |
<span class="sa-line sa-tip"></span> | |
<span class="sa-line sa-long"></span> | |
<div class="sa-placeholder"></div> | |
<div class="sa-fix"></div> | |
</div> --> | |
<!-- <div class="sa-icon sa-success animate" style="display: block;"> | |
<span class="sa-line sa-tip animateSuccessTip"></span> |
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
/** | |
* IE 5.5+, Firefox, Opera, Chrome, Safari XHR object | |
* | |
* @param string url | |
* @param object callback | |
* @param mixed data | |
* @param null x | |
*/ | |
function ajax(url, callback, data, x) { | |
try { |
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 | |
//php streaming proxy | |
header('Access-Control: allow <*>'); //xdomain ajax ftw | |
set_time_limit(24*3600); | |
$fp = fsockopen("192.168.1.149", 80, $errno, $errstr, 30); | |
if (!$fp) { | |
echo "$errstr ($errno)<br />\n"; | |
} else { |