Assertion Failed: File '$file'; Line '$line'; Code '$code'"; } // Admin cookie name // Deprecated: define('PRIVATE_COOKIE', 'prv'); define('RSS_USER_COOKIE', 'gregariusUser'); define ('RSS_USER_LEVEL_NOLEVEL',0); define ('RSS_USER_LEVEL_BASIC',1); define ('RSS_USER_LEVEL_PRIVATE',80); define ('RSS_USER_LEVEL_ADMIN',90); // Max number of results we want from a query define ('RSS_DB_MAX_QUERY_RESULTS', 9999); // Set up the callback assert_options(ASSERT_CALLBACK, 'my_assert_handler'); define ('TITLE_SEP', '»'); define ('LOCATION_HOME',1); define ('LOCATION_UPDATE',2); define ('LOCATION_SEARCH',3); define ('LOCATION_ADMIN',4); define ('LOCATION_ABOUT',5); // Options passed to util::itemsList define ('IL_NONE', 0x00); define ('IL_DO_NAV', 0x01); define ('IL_NO_COLLAPSE', 0x02); define ('IL_DO_STATS',0x04); define ('IL_CHANNEL_VIEW',0x08); define ('IL_TITLE_NO_ESCAPE',0x10); define ('IL_FOLDER_VIEW',0x20); // Options for rss_header define ('HDR_NONE', 0x00); define ('HDR_NO_OUPUTBUFFERING', 0x01); define ('HDR_NO_CACHECONTROL', 0x02); // options for show unread-only/all define ('SHOW_UNREAD_ONLY',1); define ('SHOW_READ_AND_UNREAD',2); define ('SHOW_WHAT','show'); // feed "modes": (default is 00001: unread) // xxxx0 read / xxxx1: unread define ('RSS_MODE_UNREAD_STATE', 0x01); // xxx0x not sticky / xxx1x: sticky define ('RSS_MODE_STICKY_STATE', 0x02); // xx0xx public / xx1xx: private define ('RSS_MODE_PRIVATE_STATE', 0x04); // x0xxx available / x1xxx: deleted define ('RSS_MODE_DELETED_STATE', 0x08); // 0xxxx not flagged / 1xxxx: flagged define ('RSS_MODE_FLAG_STATE', 0x10); // these are just helpers for the above define ('SET_MODE_READ_STATE', RSS_MODE_STICKY_STATE | RSS_MODE_PRIVATE_STATE | RSS_MODE_DELETED_STATE | RSS_MODE_FLAG_STATE); define ('SET_MODE_PUBLIC_STATE', RSS_MODE_UNREAD_STATE | RSS_MODE_STICKY_STATE | RSS_MODE_DELETED_STATE | RSS_MODE_FLAG_STATE); define ('SET_MODE_AVAILABLE_STATE', RSS_MODE_UNREAD_STATE | RSS_MODE_STICKY_STATE | RSS_MODE_PRIVATE_STATE | RSS_MODE_FLAG_STATE); define ('SET_MODE_FLAG_STATE', RSS_MODE_STICKY_STATE | RSS_MODE_PRIVATE_STATE | RSS_MODE_DELETED_STATE); define ('SET_MODE_STICKY_STATE', RSS_MODE_PRIVATE_STATE | RSS_MODE_DELETED_STATE | RSS_MODE_FLAG_STATE); define ('RSS_STATE_STICKY', 'sticky'); define ('RSS_STATE_FLAG', 'flag'); // Where do themes and plugins reside? define ('RSS_THEME_DIR','themes'); define ('RSS_PLUGINS_DIR','plugins'); // Error levels define ('RSS_ERROR_ERROR',0); define ('RSS_ERROR_WARNING',1); define ('RSS_ERROR_NOTICE',2); define ('ITEM_SORT_HINT_UNREAD', 0x00); define ('ITEM_SORT_HINT_READ', 0x01); define ('ITEM_SORT_HINT_MIXED', 0x02); // an item should have this many tags, at most define('MAX_TAGS_PER_ITEM', 5); // This regexp is used both in php and javascript, basically // it is used to filter out everything but the allowed tag // characters, plus a whitespace define('ALLOWED_TAGS_REGEXP', '//'); // Sanitizer constants define ('RSS_SANITIZER_SIMPLE_SQL', 0x01); define ('RSS_SANITIZER_NO_SPACES', 0x02); define ('RSS_SANITIZER_NUMERIC', 0x04); define ('RSS_SANITIZER_CHARACTERS',0x08); define ('RSS_SANITIZER_CHARACTERS_EXT',0x10); define ('RSS_SANITIZER_WORDS',0x20); define ('RSS_SANITIZER_URL',0x40); // Profiling // - The profiling information is "html commented out" at the end of every html page //define('PROFILING', 1); //define('PROFILING_DB', 1); ?>