Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
<?php
$hostname = "localhost";
$dbusername = "db_user";
$dbpassword = "password";
$dbname = "db_name";
$site_title = "blablabla";
$site_name = "blablabla";
$email_from = "info@rufije.com";
$sitehome = "http://www.rufije.com";
///////////////////////////////////////////////////
///////////////////////////////////////////////////
mysql_connect($hostname,$dbusername,$dbpassword)
or die("Could not connect to DataBase");
mysql_select_db($dbname) or die("Could not find DB");
?>
vervang de eerste 2 regels van de login.php:
include "session.php";
include_once "..siteadmin/config.php";
eens met deze 3 regels:
include "session.php";
include "config.php";
include_once "..siteadmin/config.php";
include "session.php";
include_once "..siteadmin/config.php";
if(!isset($_REQUEST['UserName']) || ($_REQUEST['UserName']=="") || !isset($_REQUEST['Password']) || ($_REQUEST['Password']=="") )
{
header("Location: ". "signinform.php?msg=".urlencode("Please enter login information!"));
die();
}
$sql = "SELECT * FROM sbwmd_admin WHERE admin_name = '" . $_REQUEST['UserName'] .
"' AND pwd = '" . $_REQUEST['Password'] . "'" ;
$rs_query=mysql_query($sql) or die(mysql_error());// als er een fout is met je query dan laat hij dit op het scherm zien
if ( $rs=mysql_fetch_array($rs_query) )
{
if($rs["pwd"]==$_REQUEST['Password'])
{
$_SESSION["name"]=$rs["admin_name"] ;
$_SESSION["adminid"]=$rs["id"] ;
header("Location: ". "adminhome.php?pg=1&msg=welcome ".$_SESSION["name"]);
die();
}
}
header("Location: ". "signinform.php?msg=". urlencode("Please enter correct login information!") );
die();
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.