1<?php 2/* 3 ********************************************************************* 4 * LogAnalyzer - http://loganalyzer.adiscon.com 5 * ----------------------------------------------------------------- * 6 * Some constants * 7 * * 8 * -> Stuff which has to be static and predefined * 9 * * 10 * All directives are explained within this file * 11 * 12 * Copyright (C) 2008-2010 Adiscon GmbH. 13 * 14 * This file is part of LogAnalyzer. 15 * 16 * LogAnalyzer is free software: you can redistribute it and/or modify 17 * it under the terms of the GNU General Public License as published by 18 * the Free Software Foundation, either version 3 of the License, or 19 * (at your option) any later version. 20 * 21 * LogAnalyzer is distributed in the hope that it will be useful, 22 * but WITHOUT ANY WARRANTY; without even the implied warranty of 23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24 * GNU General Public License for more details. 25 * 26 * You should have received a copy of the GNU General Public License 27 * along with LogAnalyzer. If not, see <http://www.gnu.org/licenses/>. 28 * 29 * A copy of the GPL can be found in the file "COPYING" in this 30 * distribution. 31 * 32 * Adiscon LogAnalyzer is also available under a commercial license. 33 * For details, contact info@adiscon.com or visit 34 * http://loganalyzer.adiscon.com/commercial 35 ********************************************************************* 36*/ 37 38// --- Avoid directly accessing this file! 39if ( !defined('IN_PHPLOGCON') ) 40{ 41 die('Hacking attempt'); 42 exit; 43} 44// --- 45 46define('SUCCESS', 0); 47define('ERROR', 1); // This is a simple helper constant! which we can use to check if there even was an error! Any result code above 0 is an error! 48define('ERROR_FILE_NOT_FOUND', 2); 49define('ERROR_FILE_CANT_CLOSE', 3); 50define('ERROR_FILE_EOF', 4); 51define('ERROR_FILE_BOF', 5); 52define('ERROR_FILE_NOT_READABLE', 15); 53define('ERROR_FILE_NOMORETIME', 22); 54define('ERROR_UNDEFINED', 6); 55define('ERROR_EOS', 7); 56define('ERROR_NOMORERECORDS', 8); 57define('ERROR_FILTER_NOT_MATCH', 9); 58define('ERROR_SOURCENOTFOUND', 24); 59 60define('ERROR_DB_CONNECTFAILED', 10); 61define('ERROR_DB_CANNOTSELECTDB', 11); 62define('ERROR_DB_QUERYFAILED', 12); 63define('ERROR_DB_NOPROPERTIES', 13); 64define('ERROR_DB_INVALIDDBMAPPING', 14); 65define('ERROR_DB_INVALIDDBDRIVER', 16); 66define('ERROR_DB_TABLENOTFOUND', 17); 67define('ERROR_DB_DBFIELDNOTFOUND', 19); 68 69define('ERROR_MSG_NOMATCH', 18); 70define('ERROR_CHARTS_NOTCONFIGURED', 20); 71define('ERROR_MSG_SKIPMESSAGE', 21); 72define('ERROR_MSG_SCANABORTED', 23); 73define('ERROR_REPORT_NODATA', 25); 74define('ERROR_DB_INDEXESMISSING', 26); 75define('ERROR_DB_TRIGGERMISSING', 27); 76define('ERROR_DB_INDEXFAILED', 28); 77define('ERROR_DB_TRIGGERFAILED', 29); 78define('ERROR_DB_CHECKSUMERROR', 30); 79define('ERROR_DB_CHECKSUMCHANGEFAILED', 31); 80define('ERROR_DB_ADDDBFIELDFAILED', 32); 81define('ERROR_DB_TIMEOUTFAILED', 34); 82define('ERROR_PATH_NOT_ALLOWED', 33); 83 84?>