本文整理汇总了PHP中fud_egw函数的典型用法代码示例。如果您正苦于以下问题:PHP fud_egw函数的具体用法?PHP fud_egw怎么用?PHP fud_egw使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了fud_egw函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: fud_egw
<?php
/***************************************************************************
* copyright : (C) 2001-2003 Advanced Internet Designs Inc.
* email : forum@prohost.org
* $Id: rdf.php.t,v 1.5 2004/05/24 17:23:55 iliaa Exp $
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
***************************************************************************/
require './GLOBALS.php';
fud_egw('', 1);
fud_use('err.inc');
/* before we go on, we need to do some very basic activation checks */
if (!($FUD_OPT_1 & 1)) {
fud_use('errmsg.inc');
exit($DISABLED_REASON . __fud_ecore_adm_login_msg);
}
if (!$FORUM_TITLE && @file_exists($WWW_ROOT_DISK . 'install.php')) {
fud_use('errmsg.inc');
exit(__fud_e_install_script_present_error);
}
$mode = isset($_GET['mode']) && in_array($_GET['mode'], array('m', 't', 'u')) ? $_GET['mode'] : 'm';
$basic = isset($_GET['basic']);
function fud_sql_error_handler($query, $error_string, $error_number, $server_version)
{
if (db_locked()) {
if (__dbtype__ == 'mysql' && $query != 'UNLOCK TABLES' || __dbtype__ == 'pgsql' && $query != 'COMMIT WORK') {
db_unlock();
示例2: format_regex
* Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
***************************************************************************/
function format_regex(&$regex)
{
if (empty($regex)) {
return;
}
$s = strpos($regex, '/') + 1;
$e = strrpos($regex, '/');
$ret = substr($regex, $e + 1);
$regex = substr($regex, $s, $e - $s);
return $ret;
}
require './GLOBALS.php';
fud_egw();
fud_use('adm.inc', true);
fud_use('widgets.inc', true);
fud_use('mlist.inc', true);
$tbl = $GLOBALS['DBHOST_TBL_PREFIX'];
$edit = isset($_GET['edit']) ? (int) $_GET['edit'] : (isset($_POST['edit']) ? (int) $_POST['edit'] : '');
if (isset($_POST['ml_forum_id'])) {
$mlist = new fud_mlist();
if ($edit) {
$mlist->sync($edit);
$edit = '';
} else {
$mlist->add();
}
} else {
if (isset($_GET['del'])) {
示例3: ob_start
if (isset($_GET['t'])) {
$t = $_GET['t'];
} else {
if (isset($_POST['t'])) {
$t = $_POST['t'];
} else {
$t = 'index';
}
}
if (preg_match('/[^A-Za-z0-9_]/', $t)) {
$t = 'index';
}
if ($FUD_OPT_2 & 16384 && $t != 'getfile') {
ob_start(array('ob_gzhandler', (int) $PHP_COMPRESSION_LEVEL));
}
fud_egw($t, 0);
function fud_sql_error_handler($query, $error_string, $error_number, $server_version)
{
if (db_locked()) {
if (__dbtype__ == 'mysql' && $query != 'UNLOCK TABLES' || __dbtype__ == 'pgsql' && $query != 'COMMIT WORK') {
db_unlock();
}
}
if (function_exists("debug_backtrace")) {
$tmp = debug_backtrace();
$_SERVER['PATH_TRANSLATED'] = '';
foreach ($tmp as $v) {
$_SERVER['PATH_TRANSLATED'] .= "{$v['file']}:{$v['line']}<br />\n";
}
} else {
if (!isset($_SERVER['PATH_TRANSLATED'])) {