コード例 #1
0
ファイル: browser.php プロジェクト: BackupTheBerlios/berlios
function browser_is_communicator()
{
    if (browser_get_agent() == 'MOZILLA' && ereg("4.", browser_get_version())) {
        return true;
    } else {
        return false;
    }
}
コード例 #2
0
ファイル: bslogot.php プロジェクト: BackupTheBerlios/berlios
//
// SourceForge: Breaking Down the Barriers to Open Source Development
// Copyright 1999-2000 (c) The SourceForge Crew
// http://sourceforge.net
//
// $Id: bslogot.php,v 1.1 2003/11/13 11:29:20 helix Exp $
require_once 'squal_pre.php';
/*
	Determine group
*/
if ($group_id) {
    $log_group = $group_id;
} else {
    $log_group = 0;
}
$res_logger = db_query("INSERT INTO activity_log (day,hour,group_id,browser,ver,platform,time,page,type) " . "VALUES (" . date('Ymd', mktime()) . ",'" . date('H', mktime()) . "','{$log_group}','" . browser_get_agent() . "','" . browser_get_version() . "','" . browser_get_platform() . "','" . time() . "','{$PHP_SELF}','1');");
if (!$res_logger) {
    echo "An error occured in the logger.\n";
    echo db_error();
    exit;
}
// output image
header("Content-Type: image/png");
header("Cache-Control: no-cache, must-revalidate");
//header("Pragma: no-cache");
//if (!$group_id) {
//	echo 'xxxxx NO GROUP ID xxxxxxx';
//	exit;
//}
//if ($type == 1) {
echo readfile($sys_urlroot . 'images/berliOS_small_logo_trans.png');
コード例 #3
0
ファイル: login.php プロジェクト: nterray/tuleap
print $GLOBALS['Language']->getText('account_login', 'password');
?>
:
<br>
<input type="password" name="form_pw" value="">
</p>

<?php 
// Only show the stay in SSL mode if the server is SSL enabled
// and it is not forced to operate in SSL mode
if ($_useHttps && $GLOBALS['sys_force_ssl'] == 0) {
    $checked = '';
    $ieMsg = '';
    if (session_issecure()) {
        $checked = ' checked="checked"';
        if (browser_is_ie() && browser_get_version() < '5.1') {
            $checked = '';
            $ieMsg = $GLOBALS['Language']->getText('account_login', 'msie_pb');
        }
    }
    echo '<p>';
    echo '<input type="checkbox" name="stay_in_ssl" value="1"' . $checked . '>';
    echo $GLOBALS['Language']->getText('account_login', 'stay_ssl');
    echo '</p>';
    if ($ieMsg) {
        echo '<p>' . $ieMsg . '</p>';
    }
}
?>

<p>
コード例 #4
0
ファイル: logger.php プロジェクト: nterray/tuleap
//
// SourceForge: Breaking Down the Barriers to Open Source Development
// Copyright 1999-2000 (c) The SourceForge Crew
// http://sourceforge.net
//
//
/*
	Determine group
*/
if (isset($group_id) && $group_id) {
    $log_group = $group_id;
} else {
    if (isset($form_grp) && $form_grp) {
        $log_group = $form_grp;
    } else {
        $log_group = 0;
    }
}
$request =& HTTPRequest::instance();
$log_time = time();
$sql = 'INSERT INTO activity_log' . '(day,hour,group_id,browser,ver,platform,time,page,type)' . ' VALUES (' . date('Ymd', $log_time) . ',' . date('H', $log_time) . ',' . db_ei($log_group) . ',' . '"' . db_escape_string(browser_get_agent()) . '",' . floatval(browser_get_version()) . ',' . '"' . db_escape_string(browser_get_platform()) . '",' . $log_time . ',' . '"' . db_escape_string($request->getFromServer('PHP_SELF')) . '",' . '0' . ')';
$res_logger = db_query($sql);
if (!$res_logger) {
    echo $GLOBALS['Language']->getText('include_logger', 'log_err');
    echo db_error();
    exit;
}
$em =& EventManager::instance();
$em->processEvent('logger_after_log_hook', array('isScript' => IS_SCRIPT, 'groupId' => $log_group, 'time' => $log_time));
unset($log_time);
unset($log_group);
コード例 #5
0
ファイル: logger.php プロジェクト: neymanna/fusionforge
                $group_id = db_result($res_grp, 0, 'group_id');
                //set up a foundry object for reference all over the place
                if ($group_id) {
                    $grp =& group_get_object($group_id, $res_grp);
                    if ($grp) {
                        //this is a project - so set up the project var properly
                        $project =& $grp;
                        //echo "IS PROJECT: ".$group_id;
                        $log_group = $group_id;
                    } else {
                        $log_group = 0;
                    }
                } else {
                    $log_group = 0;
                }
            }
            $log_group = 0;
        }
    }
}
$sql = "INSERT INTO activity_log " . "(day,hour,group_id,browser,ver,platform,time,page,type) " . "VALUES (" . date('Ymd', mktime()) . ",'" . date('H', mktime()) . "','{$log_group}','" . browser_get_agent() . "','" . browser_get_version() . "','" . browser_get_platform() . "','" . time() . "','" . getStringFromServer('PHP_SELF') . "','0');";
$res_logger = db_query($sql);
//
//	temp hack
//
$sys_db_is_dirty = false;
if (!$res_logger) {
    echo "An error occured in the logger.\n";
    echo htmlspecialchars(db_error());
    exit;
}
コード例 #6
0
ファイル: redir.php プロジェクト: BackupTheBerlios/myphpcms
<?php

// Page Logging System - Exit logging script
// Get database connection
include "../admin/config.php";
include "{$site_root}/libs/lib_db.php";
include "{$site_root}/libs/lib_browser.php";
$site_id = $s;
// rename the $s variable to $site_id
$user_id = $u;
// rename the $u variable to $user_id
$exit_page = $e;
// rename the $e variable to $exit_page;
$page = $p;
// rename the $p variable to $page;
// Create the SQL query string
$sql = "INSERT DELAYED INTO logging_log " . "(day,hour,session_id,site_id,user_id,browser,ver,platform,time,page,ip_address,remote_host,referrer,exit_page) " . "VALUES (" . date('Ymd', mktime()) . ",'" . date('H', mktime()) . "','" . $PHPSESSID . "','" . $site_id . "','" . $user_id . "','" . browser_get_agent() . "','" . browser_get_version() . "','" . browser_get_platform() . "','" . time() . "','" . $page . "','" . $REMOTE_ADDR . "','" . $REMOTE_HOST . "','" . $HTTP_REFERER . "','" . $exit_page . "'" . ");";
// Insert into database
$link_id = db_connect();
$res_logger = mysql_query($sql, $link_id);
if (!$res_logger) {
    echo mail("*****@*****.**", "Logging error", "Can't connect");
}
// Then send the user on their way
Header("Location: {$exit_page}");
exit;
コード例 #7
0
ファイル: login.php プロジェクト: BackupTheBerlios/berlios
<INPUT TYPE="HIDDEN" NAME="return_to" VALUE="<?php 
echo $return_to;
?>
">
<p>
Login Name:
<br><input type="text" name="form_loginname" VALUE="<?php 
echo $form_loginname;
?>
">
<p>
Password:
<br><input type="password" name="form_pw">
<P>
<INPUT TYPE="CHECKBOX" NAME="stay_in_ssl" VALUE="1" <?php 
echo browser_is_ie() && browser_get_version() < '5.5' ? '' : 'CHECKED';
?>
> Stay in SSL mode after login
<p>
<B><FONT COLOR="RED">You will be connected with an SSL server when you submit this form and your password will not be visible to other users.
</FONT></B> 
<!--
<small style="font-size: x-small">
(If you wonder why very this page is not loaded via SSL, please read
next paragraph. Thank you.)
</small>
-->

<!--
<P>
<B>Internet Explorer</B> users will have intermittent SSL problems, so they should leave SSL