示例#1
0
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with Camila PHP Framework; if not, write to the Free Software
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
require 'camila.php';
function camila_ob_file_callback($buffer)
{
    global $_CAMILA;
    if (!$_CAMILA['page']->camila_export_file_exists || $_REQUEST['camila_export_overwrite'] == 'y') {
        fwrite($_CAMILA['ob_file'], $buffer);
        fclose($_CAMILA['ob_file']);
    }
}
$camila_time_start = camila_microtime_float();
$camila_auth_fail = false;
if (get_magic_quotes_gpc()) {
    camila_stripslashes_array($_GET);
    camila_stripslashes_array($_POST);
    camila_stripslashes_array($_REQUEST);
    camila_stripslashes_array($_COOKIE);
}
if (!camila_isUTF8($_GET)) {
    camila_utf8_encode_array($_GET);
}
if (!camila_isUTF8($_POST)) {
    camila_utf8_encode_array($_POST);
}
if (!camila_isUTF8($_REQUEST)) {
    camila_utf8_encode_array($_REQUEST);
示例#2
0
    $text = new CHAW_text(">" . displayCounter($counternum) . "<");
    $_CAMILA['page']->add_text($text);
}
//echo $_CAMILA["session_countdown"];
$_CAMILA['page']->create_page();
/***********/
/* logging */
/***********/
if (CAMILA_LOG_LEVEL > 0) {
    require CAMILA_LIB_DIR . 'oolog/class_oolog.inc.php';
    if (isset($_CAMILA['user_surname'])) {
        $l =& new oolog(CAMILA_LOG_DIR . '/' . $_CAMILA['user_surname'] . '-' . $_CAMILA['user_name'] . ".log", FILE);
    } else {
        $l =& new oolog(CAMILA_LOG_DIR . '/anon.log', FILE);
    }
    $camila_time_end = camila_microtime_float();
    $time = $camila_time_end - $camila_time_start;
    $millis = sprintf("%01.3f", $time);
    $l->log($_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'] . '|' . $millis, FILE);
    $l->closelog();
}
if (isset($_REQUEST['camila_txt'])) {
    $buffer = ob_get_contents();
    ob_end_clean();
    include 'include/html2text/html2text.php';
    echo html2text($buffer);
}
//  if (isset($_REQUEST['camila_save']) && $_REQUEST['camila_export_filename']!='') {
//      ob_end_flush();
//      require_once('camila/fm/elements.php');
//      global $_CAMILA;