Go to the source code of this file.
Functions | |
getModule ($module_name, $type= 'view', $kind= '') | |
getController ($module_name) | |
getAdminController ($module_name) | |
getView ($module_name) | |
& | getMobile ($module_name) |
getAdminView ($module_name) | |
getModel ($module_name) | |
getAdminModel ($module_name) | |
getAPI ($module_name) | |
getWAP ($module_name) | |
getClass ($module_name) | |
executeQuery ($query_id, $args=NULL, $arg_columns=NULL) | |
executeQueryArray ($query_id, $args=NULL, $arg_columns=NULL) | |
getNextSequence () | |
setUserSequence ($seq) | |
checkUserSequence ($seq) | |
getUrl () | |
getNotEncodedUrl () | |
getAutoEncodedUrl () | |
getFullUrl () | |
getNotEncodedFullUrl () | |
getSiteUrl () | |
getNotEncodedSiteUrl () | |
getFullSiteUrl () | |
getCurrentPageUrl () | |
isSiteID ($domain) | |
cut_str ($string, $cut_size=0, $tail= '...') | |
zgap () | |
ztime ($str) | |
getTimeGap ($date, $format= 'Y.m.d') | |
getMonthName ($month, $short=TRUE) | |
zdate ($str, $format= 'Y-m-d H:i:s', $conversion=TRUE) | |
getEncodeEmailAddress ($email) | |
debugPrint ($debug_output=NULL, $display_option=TRUE, $file= '_debug_message.php') | |
writeSlowlog ($type, $elapsed_time, $obj) | |
flushSlowlog () | |
getMicroTime () | |
delObjectVars ($target_obj, $del_obj) | |
getDestroyXeVars (&$vars) | |
handleError ($errno, $errstr, $file, $line) | |
getNumberingPath ($no, $size=3) | |
url_decode ($str) | |
purifierHtml (&$content) | |
removeHackTag ($content) | |
blockWidgetCode ($content) | |
checkUploadedFile ($file) | |
checkXmpTag ($content) | |
removeSrcHack ($match) | |
if(!function_exists('hexrgb')) | mysql_pre4_hash_password ($password) |
getScriptPath () | |
getRequestUriByServerEnviroment () | |
utf8RawUrlDecode ($source) | |
_code2utf ($num) | |
detectUTF8 ($string, $return_convert=FALSE, $urldecode=TRUE) | |
json_encode2 ($data) | |
isCrawler ($agent=NULL) | |
stripEmbedTagForAdmin (&$content, $writer_member_srl) | |
requirePear () | |
checkCSRF () | |
recurciveExposureCheck (&$menu) | |
changeValueInUrl ($key, $requestKey, $dbKey, $urlName= 'success_return_url') | |
htmlHeader () | |
htmlFooter () | |
alertScript ($msg) | |
closePopupScript () | |
reload ($isOpener=FALSE) | |
isDefinedLangCode ($str) | |
escape ($str, $double_escape=true, $escape_defined_lang_code=false) | |
escape_css ($str) | |
escape_js ($str) | |
escape_sqstr ($str) | |
escape_dqstr ($str) | |
explode_with_escape ($delimiter, $str, $limit=0, $escape_char= '\\') | |
Variables | |
$time_zone | |
_code2utf | ( | $num | ) |
Returns utf-8 string of given code
int | $num |
Definition at line 1437 of file func.inc.php.
alertScript | ( | $msg | ) |
Print raw alert message script
string | $msg |
Definition at line 1738 of file func.inc.php.
blockWidgetCode | ( | $content | ) |
blocking widget code
string | $content | Taget content |
Definition at line 1152 of file func.inc.php.
changeValueInUrl | ( | $key, | |
$requestKey, | |||
$dbKey, | |||
$urlName = 'success_return_url' |
|||
) |
Definition at line 1688 of file func.inc.php.
checkCSRF | ( | ) |
Definition at line 1623 of file func.inc.php.
checkUploadedFile | ( | $file | ) |
check uploaded file which may be hacking attempts
string | $file | Taget file path |
Definition at line 1165 of file func.inc.php.
checkUserSequence | ( | $seq | ) |
Check Sequence number grant
int | $seq | sequence number |
Definition at line 270 of file func.inc.php.
checkXmpTag | ( | $content | ) |
Check xmp tag, close it.
string | $content | Target content |
Definition at line 1177 of file func.inc.php.
closePopupScript | ( | ) |
cut_str | ( | $string, | |
$cut_size = 0 , |
|||
$tail = '...' |
|||
) |
Put a given tail after trimming string to the specified size
string | $string | The original string to trim |
int | $cut_size | The size to be |
string | $tail | Tail to put in the end of the string after trimming |
Definition at line 508 of file func.inc.php.
debugPrint | ( | $debug_output = NULL , |
|
$display_option = TRUE , |
|||
$file = '_debug_message.php' |
|||
) |
Prints debug messages
Display $buff contents into the file ./files/_debug_message.php. You can see the file on your prompt by command: tail-f./files/_debug_message.php
mixed | $debug_output | Target object to be printed |
bool | $display_option | boolean Flag whether to print seperator (default:true) |
string | $file | Target file name |
Definition at line 805 of file func.inc.php.
delObjectVars | ( | $target_obj, | |
$del_obj | |||
) |
Delete the second object vars from the first argument
object | $target_obj | An original object |
object | $del_obj | BaseObject vars to delete from the original object |
Definition at line 999 of file func.inc.php.
detectUTF8 | ( | $string, | |
$return_convert = FALSE , |
|||
$urldecode = TRUE |
|||
) |
Get whether utf8 or not given string
string | $string | |
bool | $return_convert | If set, returns converted string |
bool | $urldecode |
Definition at line 1466 of file func.inc.php.
escape | ( | $str, | |
$double_escape = true , |
|||
$escape_defined_lang_code = false |
|||
) |
This function is a shortcut to htmlspecialchars().
Definition at line 1799 of file func.inc.php.
escape_css | ( | $str | ) |
This function escapes a string to be used in a CSS property.
Definition at line 1816 of file func.inc.php.
escape_dqstr | ( | $str | ) |
This function escapes a string to be used in a "double-quoted" PHP string literal. Null bytes are removed.
Definition at line 1862 of file func.inc.php.
escape_js | ( | $str | ) |
This function escapes a string to be used in a JavaScript string literal.
Definition at line 1830 of file func.inc.php.
escape_sqstr | ( | $str | ) |
This function escapes a string to be used in a 'single-quoted' PHP string literal. Null bytes are removed.
Definition at line 1847 of file func.inc.php.
executeQuery | ( | $query_id, | |
$args = NULL , |
|||
$arg_columns = NULL |
|||
) |
The alias of DB::executeQuery()
string | $query_id | (module name.query XML file) |
object | $args | values of args object |
string[] | $arg_columns Column list |
Definition at line 203 of file func.inc.php.
executeQueryArray | ( | $query_id, | |
$args = NULL , |
|||
$arg_columns = NULL |
|||
) |
Function to handle the result of DB::executeQuery() as an array
string | $query_id | (module name.query XML file) |
object | $args | values of args object |
string[] | $arg_columns Column list |
Definition at line 219 of file func.inc.php.
explode_with_escape | ( | $delimiter, | |
$str, | |||
$limit = 0 , |
|||
$escape_char = '\\' |
|||
) |
This function splits a string into an array, but allows the delimter to be escaped. For example, 'A|B|C|D' will be split into 'A', 'B|C', and 'D' because the bar between B and C is escaped.
Definition at line 1881 of file func.inc.php.
flushSlowlog | ( | ) |
void |
Definition at line 973 of file func.inc.php.
getAdminController | ( | $module_name | ) |
Create a admin controller instance of the module
string | $module_name | The module name to get a admin controller instance |
Definition at line 101 of file func.inc.php.
getAdminModel | ( | $module_name | ) |
Create an admin model instance of the module
string | $module_name | The module name to get a admin model instance |
Definition at line 156 of file func.inc.php.
getAdminView | ( | $module_name | ) |
Create a admin view instance of the module
string | $module_name | The module name to get a admin view instance |
Definition at line 134 of file func.inc.php.
getAPI | ( | $module_name | ) |
Create an api instance of the module
string | $module_name | The module name to get a api instance |
Definition at line 167 of file func.inc.php.
getAutoEncodedUrl | ( | ) |
Get a encoded url. If url is encoded, not encode. Otherwise html encode the url.
Definition at line 339 of file func.inc.php.
getClass | ( | $module_name | ) |
Create a class instance of the module
string | $module_name | The module name to get a class instance |
Definition at line 189 of file func.inc.php.
getController | ( | $module_name | ) |
Create a controller instance of the module
string | $module_name | The module name to get a controller instance |
Definition at line 90 of file func.inc.php.
getCurrentPageUrl | ( | ) |
getDestroyXeVars | ( | & | $vars | ) |
Definition at line 1035 of file func.inc.php.
getEncodeEmailAddress | ( | ) |
Returns encoded value of given email address for email scraping
string | The email |
Definition at line 784 of file func.inc.php.
getFullSiteUrl | ( | ) |
Return the value adding request uri to the getSiteUrl() To get the full url
Definition at line 454 of file func.inc.php.
getFullUrl | ( | ) |
Return the value adding request uri to getUrl() to get the full url
Definition at line 361 of file func.inc.php.
getMicroTime | ( | ) |
& getMobile | ( | $module_name | ) |
Create a mobile instance of the module
string | $module_name | The module name to get a mobile instance |
Definition at line 123 of file func.inc.php.
getModel | ( | $module_name | ) |
Create a model instance of the module
string | $module_name | The module name to get a model instance |
Definition at line 145 of file func.inc.php.
getModule | ( | $module_name, | |
$type = 'view' , |
|||
$kind = '' |
|||
) |
Define a function to use {
string | $module_name | The module name to get a instance |
string | $type | disp, proc, controller, class |
string | $kind | admin, null |
Definition at line 79 of file func.inc.php.
getMonthName | ( | $month, | |
$short = TRUE |
|||
) |
Name of the month return
int | $month | Month |
boot | $short | If set, returns short string |
Definition at line 677 of file func.inc.php.
getNextSequence | ( | ) |
Alias of DB::getNextSequence()
Definition at line 236 of file func.inc.php.
getNotEncodedFullUrl | ( | ) |
Return the value adding request uri to getUrl() to get the not encoded full url
Definition at line 385 of file func.inc.php.
getNotEncodedSiteUrl | ( | ) |
getSiteUrl() returns the not encoded URL by transforming the given argument value of domain The first argument should consist of domain("http://" not included) and path
Definition at line 433 of file func.inc.php.
getNotEncodedUrl | ( | ) |
Get a not encoded(html entity) url
Definition at line 316 of file func.inc.php.
getNumberingPath | ( | $no, | |
$size = 3 |
|||
) |
Trim a given number to a fiven size recursively
int | $no | A given number |
int | $size | A given digits |
Definition at line 1081 of file func.inc.php.
getRequestUriByServerEnviroment | ( | ) |
getScriptPath | ( | ) |
getSiteUrl | ( | ) |
getSiteUrl() returns the URL by transforming the given argument value of domain The first argument should consist of domain("http://" not included) and path
Definition at line 411 of file func.inc.php.
getTimeGap | ( | $date, | |
$format = 'Y.m.d' |
|||
) |
If the recent post within a day, output format of YmdHis is "min/hours ago from now". If not within a day, it return format string.
string | $date | Time value in format of YYYYMMDDHHIISS |
string | $format | If gap is within a day, returns this format. |
Definition at line 641 of file func.inc.php.
getUrl | ( | ) |
Get a encoded url. Define a function to use Context::getUrl()
getUrl() returns the URL transformed from given arguments of RequestURI
Definition at line 297 of file func.inc.php.
getView | ( | $module_name | ) |
Create a view instance of the module
string | $module_name | The module name to get a view instance |
Definition at line 112 of file func.inc.php.
getWAP | ( | $module_name | ) |
Create a wap instance of the module
string | $module_name | The module name to get a wap instance |
Definition at line 178 of file func.inc.php.
handleError | ( | $errno, | |
$errstr, | |||
$file, | |||
$line | |||
) |
Change error_handing to debugPrint on php5 higher
int | $errno | |
string | $errstr | |
string | $file | |
int | $line |
Definition at line 1057 of file func.inc.php.
htmlFooter | ( | ) |
htmlHeader | ( | ) |
isCrawler | ( | $agent = NULL | ) |
Get is current user crawler
string | $agent | if set, use this value instead HTTP_USER_AGENT |
Definition at line 1538 of file func.inc.php.
isDefinedLangCode | ( | $str | ) |
Definition at line 1784 of file func.inc.php.
isSiteID | ( | $domain | ) |
Return if domain of the virtual site is url type or id type
string | $domain |
Definition at line 495 of file func.inc.php.
json_encode2 | ( | $data | ) |
get json encoded string of data
mixed | $data |
Definition at line 1495 of file func.inc.php.
if (!function_exists('hexrgb')) mysql_pre4_hash_password | ( | $password | ) |
Php function for mysql old_password() provides backward compatibility for zero board4 which uses old_password() of mysql 4.1 earlier versions. the function implemented by referring to the source codes of password.c file in mysql
string | $password |
Definition at line 1325 of file func.inc.php.
purifierHtml | ( | & | $content | ) |
Definition at line 1103 of file func.inc.php.
recurciveExposureCheck | ( | & | $menu | ) |
menu exposure check by isShow column
array | $menu |
Definition at line 1670 of file func.inc.php.
reload | ( | $isOpener = FALSE | ) |
Print raw reload script
bool | $isOpener |
Definition at line 1772 of file func.inc.php.
removeHackTag | ( | $content | ) |
Pre-block the codes which may be hacking attempts
string | $content | Taget content |
Remove codes to abuse the admin session in src by tags of imaages and video postings
Definition at line 1123 of file func.inc.php.
removeSrcHack | ( | $match | ) |
Remove src hack(preg_replace_callback)
array | $match |
Convert hexa value to RGB
string | $hexstr |
Definition at line 1202 of file func.inc.php.
requirePear | ( | ) |
setUserSequence | ( | $seq | ) |
Set Sequence number to session
int | $seq | sequence number |
Definition at line 250 of file func.inc.php.
stripEmbedTagForAdmin | ( | & | $content, |
$writer_member_srl | |||
) |
Remove embed media for admin
string | $content | |
int | $writer_member_srl |
Definition at line 1568 of file func.inc.php.
url_decode | ( | $str | ) |
Decode the URL in Korean
string | $str | The url |
Definition at line 1098 of file func.inc.php.
utf8RawUrlDecode | ( | $source | ) |
PHP unescape function of javascript's escape Function converts an Javascript escaped string back into a string with specified charset (default is UTF-8). Modified function from http://pure-essence.net/stuff/code/utf8RawUrlDecode.phps
string | $source |
Definition at line 1393 of file func.inc.php.
writeSlowlog | ( | $type, | |
$elapsed_time, | |||
$obj | |||
) |
string | $type | query, trigger |
float | $elapsed_time | |
object | $obj |
Definition at line 909 of file func.inc.php.
zdate | ( | $str, | |
$format = 'Y-m-d H:i:s' , |
|||
$conversion = TRUE |
|||
) |
Change the time format YYYYMMDDHHIISS to the user defined format
string | int | $str | YYYYMMDDHHIISS format time values |
string | $format | Time format of php date() function |
bool | $conversion | Means whether to convert automatically according to the language |
Definition at line 692 of file func.inc.php.
zgap | ( | ) |
Get a time gap between server's timezone and XE's timezone
Definition at line 564 of file func.inc.php.
ztime | ( | $str | ) |
YYYYMMDDHHIISS format changed to unix time value
string | $str | Time value in format of YYYYMMDDHHIISS |
Definition at line 605 of file func.inc.php.
$time_zone |
Definition at line 29 of file func.inc.php.