login
sidder og roder med php og sessions og det burde spille i en login men d gør det ikke nogen der kan lure hvorfor?Dette er pop up boksen
<?php
//Settings
include("../settings.php");
//Password protection
if ( (!isset($PHP_AUTH_USER)) || ! (($PHP_AUTH_USER == $LOGIN) && ( $PHP_AUTH_PW == "$PASSWORD" )) ) {
header('WWW-Authenticate: Basic realm="test"');
header('HTTP/1.0 401 Unauthorized');
echo 'Login, jerk.';
exit;
}
?>
her er min set up fil
<?
/* MySQL settings */
$db_host = "thomas-gmn7u0sa";
$db_user = "e_novative";
$db_pass = "e_novative";
$database_name = "journal";
$tablename = "journal"; //If you change the default table name you have to change the table name inside of the MySQL database. Meaning...open journal.sql and replace "CREATE TABLE journal" with "CREATE TABLE your_table_name" THEN continue installation by using the sql file to create the table.
/* Administration authorization variables. */
$LOGIN = "1";
$PASSWORD = "1";
/* Site Title --Goes in all title bars, and above the journal entries on the index.php page. */
$title = "Infonova";
// Time display format : Set to "we_are_superior" if you wish for the times to be displayed like (March 03, 2003 @ 12:50 pm.) in index.php. Otherwise set to "fuckin_americans" to get universal time format (2003-03-03 12:50). Times on the ADD and EDIT pages will ALWAYS be universal. This just defines index.php.
$UStime = "we_are_superior";
?>
