// +---------------------------------------------------------------------------+ // include '../../lib-common.php'; include '../library.php'; $mytimer = new timerobject(); $mytimer->startTimer(); $charset = COM_getCharset(); // Code added to handle the issue with the default $_COOKIE array being sent by the Flash Image uploader // We can sent the cookies in the post form data and then extract and filter the data to rebuild the COOKIE array // Also now need this to support Geeklog 1.6.1 that enables HTTP only cookie support. // Javascript no longer has access to the gl_session id in the cookie - issue only apparent in the YUI upload form if (!isset($_USER['uid']) and isset($_POST['cookie_session'])) { $_COOKIE[$_CONF['cookie_session']] = COM_applyFilter($_POST['cookie_session']); // Have a valid session id now from the COOKIE - ReInitialize the session data if (isset($_COOKIE[$_CONF['cookie_session']])) { $_USER = SESS_sessionCheck(); if ($_USER['uid'] > 0) { $_GROUPS = SEC_getUserGroups($_USER['uid']); // Global array of current user permissions [read,edit] $_RIGHTS = explode(',', SEC_getUserPermissions()); } } } //set up the user if ($_USER['uid'] < 2) { $uid = 0; } else { $uid = $_USER['uid']; } $error = 'NULL'; $filter = new sanitizer();
/** * This is the custom library. * * It is the sandbox for every Geeklog Admin to play in. * The lib-custom.php as shipped will never contain required code, * so it's safe to always use your own copy. * This should hold all custom hacks to make upgrading easier. * */ require_once $_CONF['path_system'] . 'lib-custom.php'; /** * Session management library * */ require_once $_CONF['path_system'] . 'lib-sessions.php'; SESS_sessionCheck(); // Load user data TimeZoneConfig::setUserTimeZone(); if (COM_isAnonUser()) { $_USER['advanced_editor'] = $_CONF['advanced_editor']; } /** * Retrieve new topic if found * */ if (isset($_GET['topic'])) { $topic = COM_applyFilter($_GET['topic']); } elseif (isset($_POST['topic'])) { $topic = COM_applyFilter($_POST['topic']); } else { $topic = '';