Example #1
0
<?php

require_once "classes/DBUtils.class.php";
// Set the OS type, only Linux and Windows known to work for sure
$os_name = getOsName();
if ($os_name == "unix") {
    //matches most unixes
    $pathSeparator = "/";
    $baseDir = ".\\/";
    // were we start searching for strings
} else {
    if ($os_name == "windows") {
        $pathSeparator = "\\";
        $baseDir = ".";
        // were we start searching for strings
    }
}
echo "<html><body>\n";
if (!isset($_REQUEST['total_keys'])) {
    ?>

<form action="index.php?m=admin&a=translation" method="POST">
<input type="hidden" name="mode" value="select">
<?php 
    $user_lang = isset($_POST['user_lang']) ? $_POST['user_lang'] : $g_rb_language;
    $lang = $g_browser_lang;
    // get the browser language if set
    if ($user_lang != "") {
        $lang = $user_lang;
    }
    //read from the form
Example #2
0
    exit;
}
include '../conf/db_info.php';
include '../conf/db/' . $DB[kind] . '.php';
include '../admin/module/WebLog/engine.php';
$DB_CONNECT = isConnectDb($DB[host], $DB[user], $DB[pass]);
$DB_USEMYDB = isSelecteDb($DB[name], $DB_CONNECT);
$OsSet1 = array("Windows", "Linux", "Mac", "Irix", "Sunos", "Phone");
$BrSet1 = array("MSIE", "NETSCAPE", "OPERA", "GEC", "FIREFOX");
$today_date = date("Ymd");
$RFIP = $REMOTE_ADDR;
$RFID = '';
$RFREFERER = $referer;
$RFSEARCH = getDomain($referer);
$RFKEYWORD = getKeyword($referer, $RFSEARCH);
$RFOS = getOsName();
$RFLANG = getLanguage($HTTP_ACCEPT_LANGUAGE);
$RFAGENT = getBrowserName();
$RFDATE = $today_date . date("His");
$CT_WEEK = date("w");
$CountSql = "INSERT INTO kimsmall7_referer ";
$CountSql .= "(RF_IP,RF_ID,RF_REFERER,RF_SEARCH,RF_KEYWORD,RF_OS,RF_LANG,RF_AGENT,RF_DATE) VALUES ";
$CountSql .= "('{$RFIP}','{$RFID}','{$RFREFERER}','{$RFSEARCH}','{$RFKEYWORD}','{$RFOS}','{$RFLANG}','{$RFAGENT}','{$RFDATE}')";
db_query($CountSql, $DB_CONNECT);
$CT_EXIS = db_fetch_array(db_query("SELECT count(*) FROM kimsmall7_count WHERE CT_DATE='" . $today_date . "'", $DB_CONNECT));
if ($CT_EXIS[0]) {
    db_query("UPDATE kimsmall7_count SET CT_HIT=CT_HIT+1 WHERE CT_DATE='" . $today_date . "'", $DB_CONNECT);
} else {
    db_query("INSERT INTO kimsmall7_count (CT_HIT,CT_DATE,CT_WEEKDAY) VALUES ('1','" . $today_date . "','" . $CT_WEEK . "')", $DB_CONNECT);
}
$OutHour = 2;