Subversion Repositories SmartDukaan

Rev

Rev 13178 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13178 Rev 13253
Line 28... Line 28...
28
 
28
 
29
  public function gosf() {
29
  public function gosf() {
30
    $this->lessphp->object()->ccompile('assets/css/gosf.less','assets/css/gosf.css');
30
    $this->lessphp->object()->ccompile('assets/css/gosf.less','assets/css/gosf.css');
31
    $data['stylesheet'] = 'gosf.css';
31
    $data['stylesheet'] = 'gosf.css';
32
    $data['title'] = 'GOSF 2014';
32
    $data['title'] = 'GOSF 2014';
33
    $this->layout->view('statics/gosf',$data);    
33
    $this->layout->view('statics/gosf',$data);
-
 
34
    if(isset($_POST) && !empty($_POST))  {
-
 
35
      $server = "192.168.190.114";
-
 
36
      $database = "helper";
-
 
37
      $db_user = "root";
-
 
38
      $db_pass = "shop2020";
-
 
39
      if(!isset($dbh)){
-
 
40
        try{
-
 
41
          $dbh = new PDO("mysql:host=$server;dbname=$database",$db_user,$db_pass,array(PDO::ATTR_PERSISTENT => true));
-
 
42
          $sql = "INSERT INTO campaigns VALUES('".$_POST['userEmail']."',1)";
-
 
43
          $dbh->exec($sql);
-
 
44
        }catch(Exception $ex){
-
 
45
            // echo "Internal Error, please try again later!";
-
 
46
        }
-
 
47
      }      
-
 
48
    }
34
  }
49
  }
35
}
50
}
36
 
51
 
37
/* End of file statics.php */
52
/* End of file statics.php */
38
/* Location: ./application/widgets/controllers/statics.php */
53
/* Location: ./application/widgets/controllers/statics.php */