~hazon/hazon/hazon_newest

« back to all changes in this revision

Viewing changes to Administrators/firstrun.php

  • Committer: Liel Fridman
  • Date: 2010-01-13 15:01:18 UTC
  • Revision ID: liel@home-savta-20100113150118-4e9kiwl372dylhf2
Returning to MySQL

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
    return htmlspecialchars($in);
6
6
}
7
7
$link = pg_connect("host=$pgsql_host port=$pgsql_port dbname=$pgsql_database user=$pgsql_username password=$pgsql_password",PGSQL_CONNECT_FORCE_NEW) or die('שגיאת PostgreSQL: לא יכול להתחבר למסד הנתונים. האם אתה בטוח שהוא קיים?');
 
8
pg_set_client_encoding($link, "UNICODE");
8
9
pg_query($link,'CREATE TABLE hazon_admin_users (username CHAR(100), password CHAR(100), canremove CHAR(5));') or die('Error!');
9
10
pg_query($link,'INSERT INTO hazon_admin_users VALUES ("'.$username.'","'.md5($password).'","no");') or die ('Error!');
10
11
pg_query($link,'CREATE TABLE hazon_schools (code CHAR(100), name CHAR(100), city CHAR(100), type CHAR(100));') or die ('Error!');