Changeset 15
Author: Frans93136
(2008/02/08 21:34) Over 4 years ago
Added user_message, tested mysql some more (works nice now)
Author: Frans93136
(2008/02/08 21:34) Over 4 years ago
Added user_message, tested mysql some more (works nice now)
define ('USER_INFO', 1);define ('USER_WARNING', 2);define ('USER_NOTICE', 3);define ('USER_ERROR', 4);define('STYLES_PATH', ROOT_PATH . 'styles/default/');define('STYLES_PATH', ROOT_PATH . 'styles/default/');{{{{switch ($errno){{$error = true;user_message(USER_INFO, 'This is an informative user message.<br />You can use all sorts, USER_INFO (blue), USER_NOTICE(green), USER_WARNING(orange) and USER_ERROR(red).<br />Beware, these message have NO influence on the running of the (any) script, so it will continue. Use it for feedback, not error_handling!');$error = false;{{body {body {font-size: 1.0em;font-size: 0.8em;div.info {border: #004080 solid 2px ;padding: 3px;background: #9BCDFF;color: #000000;}div.notice {border: #008000 solid 2px ;padding: 3px;background: #99CC00;color: #000000;}div.warning {border: #DA6311 solid 2px ;padding: 3px;background: #FFCC66;color: #000000;}div.error {background: #FFCCFF;padding: 3px;border: #FF0000 solid 2px ;color: #000000;}<title>OSCP • Error</title><style type="text/css"></head>/*<![CDATA[*/body {background: #E1E1FF;}div.notice {border: #008000 solid 2px ;padding: 3px;background: #99CC00;color: #000000;}div.warning {border: #DA6311 solid 2px ;padding: 3px;background: #FFCC66;color: #000000;}div.error {background: #FFCCFF;padding: 3px;border: #FF0000 solid 2px ;color: #000000;}/*]]>*/</style></head><h1>{SHORT_DESC}</h1>{LONG_DESC}<h1>{SHORT_DESC}</h1>{LONG_DESC}{STATUS}<br />{STATUS}<br /><link rel="stylesheet" href="{STYLES_PATH}css/default.css" type="text/css"><link rel="stylesheet" href="{STYLES_PATH}css/default.css" type="text/css"><title>{TITLE} • CP Test</title><title>{TITLE} • CP Test</title>{USER_MESSAGE}