Beispiel #1
0
 public function __construct($ajax = false)
 {
     $this->initConfig();
     $this->makeSession();
     if (!$ajax) {
         $this->makeSmarty();
     }
     $this->includeOssLib('adodb/adodb-exceptions.inc.php');
     $this->includeOssLib('adodb/adodb.inc.php');
     self::$db = ADONewConnection($this->config['dbdriver'] . "://dbo292215131:.nnNYYvP@db188.1and1.es/db292215131");
     self::$db->debug = false;
     self::$db->SetFetchMode(ADODB_FETCH_ASSOC);
     //$this->loadInterfaces(array('Module'));
     $this->includeOssLib('htmlpurifier/library/HTMLPurifier.auto.php');
     if (!$ajax) {
         $this->readParameters();
     } else {
         $this->readAjaxParameters();
     }
 }
Beispiel #2
0
<?php

require 'Presa.class.php';
$presa = new Presa();
$presa->display();
//phpinfo();