All Data Structures Namespaces Files Functions Variables Pages
global.func.php File Reference

Go to the source code of this file.

## Functions

if(!defined('IN_GAME')) | gameerrorhandler ($code, $msg, $file, $line)
| gexit ($message= '', $file= '', $line=0)
| output ($content= '')
| gstrfilter ($str)
| language ($file, $templateid=0, $tpldir= '')
| template ($file, $templateid=0, $tpldir= '')
| content ($file= '')
| gsetcookie ($var, $value, $life=0, $prefix=1)
| clearcookies ()
| config ($file= '', $cfg=1)
| dir_clear ($dir)
| readover ($filename, $method="rb")
| writeover ($filename, $data, $method="rb+", $iflock=1, $check=1, $chmod=1)
| openfile ($filename)
| compatible_json_encode ($data)
| addnews ($t=0, $n= '', $a='', $b='', $c= '', $d= '', $e= '')
| logsave ($pid, $time, $log= '', $type= 's')
| load_gameinfo ()
| save_gameinfo ()
| save_combatinfo ()
| getchat ($last, $team='', $limit=0)
| storyputchat ($time, $type)
| systemputchat ($time, $type, $msg= '')
| getmicrotime ()
| putmicrotime ($t_s, $t_e, $file, $info)

## Function Documentation

addnews | ( |  | $t = `0`,
|  |  | $n = `''`,
|  |  | $a = `''`,
|  |  | $b = `''`,
|  |  | $c = `''`,
|  |  | $d = `''`,
|  |  | $e = `''`
| ) |  |

Definition at line 228 of file global.func.php.

clearcookies | ( |  | ) |

Definition at line 114 of file global.func.php.

compatible_json_encode | ( |  | $data | ) |

Definition at line 185 of file global.func.php.

config | ( |  | $file = `''`,
|  |  | $cfg = `1`
| ) |  |

Definition at line 122 of file global.func.php.

content | ( |  | $file = `''` | ) |

Definition at line 98 of file global.func.php.

dir_clear | ( |  | $dir | ) |

Definition at line 127 of file global.func.php.

if (!defined('IN_GAME')) gameerrorhandler | ( |  | $code,
|  |  | $msg,
|  |  | $file,
|  |  | $line
| ) |  |

Definition at line 11 of file global.func.php.

getchat | ( |  | $last,
|  |  | $team = `''`,
|  |  | $limit = `0`
| ) |  |

Definition at line 375 of file global.func.php.

getmicrotime | ( |  | ) |

Definition at line 484 of file global.func.php.

gexit | ( |  | $message = `''`,
|  |  | $file = `''`,
|  |  | $line = `0`
| ) |  |

Definition at line 30 of file global.func.php.

gsetcookie | ( |  | $var,
|  |  | $value,
|  |  | $life = `0`,
|  |  | $prefix = `1`
| ) |  |

Definition at line 107 of file global.func.php.

gstrfilter | ( |  | $str | ) |

Definition at line 48 of file global.func.php.

language | ( |  | $file,
|  |  | $templateid = `0`,
|  |  | $tpldir = `''`
| ) |  |

Definition at line 64 of file global.func.php.

load_gameinfo | ( |  | ) |

Definition at line 276 of file global.func.php.

logsave | ( |  | $pid,
|  |  | $time,
|  |  | $log = `''`,
|  |  | $type = `'s'`
| ) |  |

Definition at line 259 of file global.func.php.

openfile | ( |  | $filename | ) |

Definition at line 175 of file global.func.php.

output | ( |  | $content = `''` | ) |

Definition at line 36 of file global.func.php.

putmicrotime | ( |  | $t_s,
|  |  | $t_e,
|  |  | $file,
|  |  | $info
| ) |  |

Definition at line 489 of file global.func.php.

readover | ( |  | $filename,
|  |  | $method = `"rb"`
| ) |  |

Definition at line 139 of file global.func.php.

save_combatinfo | ( |  | ) |

Definition at line 352 of file global.func.php.

save_gameinfo | ( |  | ) |

Definition at line 304 of file global.func.php.

storyputchat | ( |  | $time,
|  |  | $type
| ) |  |

Definition at line 408 of file global.func.php.

systemputchat | ( |  | $time,
|  |  | $type,
|  |  | $msg = `''`
| ) |  |

Definition at line 454 of file global.func.php.

template | ( |  | $file,
|  |  | $templateid = `0`,
|  |  | $tpldir = `''`
| ) |  |

Definition at line 78 of file global.func.php.

writeover | ( |  | $filename,
|  |  | $data,
|  |  | $method = `"rb+"`,
|  |  | $iflock = `1`,
|  |  | $check = `1`,
|  |  | $chmod = `1`
| ) |  |

Definition at line 155 of file global.func.php.