~studentersamfundet-web/studentersamfundet-web/web

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php

/*
 * When you first install the fantastic DNS CMS, you'll need to
 * edit this file and save it as settings.php.
 */

function register_database() {
    global $hostname_dns, $database_dns, $username_dns, $password_dns, $dns;

    // # FileName="Connection_php_mysql.htm"
    // # Type="MYSQL"
    // # HTTP="true"
    $hostname_dns = "YOUR HOSTNAME HERE"; // Often "localhost"
    $database_dns = "DATABASE NAME HERE"; // Database
    $username_dns = "USERNAME HERE";      // Database username
    $password_dns = "PASSWORD HERE";      // Database password
    $dns = mysql_pconnect($hostname_dns, $username_dns, $password_dns) or trigger_error(mysql_error(),E_USER_ERROR); 
    mysql_select_db($database_dns, $dns);

    error_reporting("E_ALL");

    $locale = Array('no_NO', 'nor_nor');
    setlocale(LC_TIME, $locale);
}


/**
 * Mimic WordPress.
 *
 * Sometimes the world seems like a rugged place, and you just wish you were
 * working with WordPress. Fear not, 'cause this file fools you into believing
 * that's exactly what you're doing. In some cases, anyway.
 */
if ( !function_exists('get_bloginfo') ) :
    function get_bloginfo( $show ) {
        switch($show) {
        case "url":
            return 'http://studentersamfundet.no'; // Full URL to the root of your install. No trailing slashes!
        case 'name':
            return 'Det Norske Studentersamfund'; // Title of your install
        case 'image-root':
            return 'http://studentersamfundet.no'; // Where to look for files that aren't under revision control (typically images). No trailing slashes!
        default:
            return 'Unknown parameter';
        }
    }
endif;
?>