Skip to content
Snippets Groups Projects
Select Git revision
  • 1dd612b408b527748742c32498732ec534abe92c
  • master default
2 results

config.sample.php

Blame
  • user avatar
    Kyle Powers authored
    1dd612b4
    History
    config.sample.php 754 B
    <?php
    ini_set('display_errors',false);
    // Sample configuration file for the ucomm webforms project
    set_include_path(dirname(__FILE__).'/lib/php/'.PATH_SEPARATOR.get_include_path());
    
    $con = mysql_connect("localhost","test","test");
    if (!$con){
    	die('Could not connect: ' . mysql_error());
    }else{
    	mysql_select_db("physics_voting", $con);
    }
    
    function myautoload($class)
    {
        $file = str_replace('_', '/', $class).'.php';
        require_once $file;
    }
    
    $sendToEmail   = "";  //Will send form data to this email address.
    $sendFromEmail = "no-reply@unl.edu"; //Will send email from this address.
    $emailSubject  = "Ribbon Cutting Proposal"; //Subject for the email.
    
    spl_autoload_register('myautoload');
    require_once '../../../lib/php/UNL/WDN/Emailer/Main.php';