Author

Topic: epay faucet (Read 411 times)

legendary
Activity: 1582
Merit: 1031
October 11, 2016, 06:21:58 AM
#4
i can help you to setup this epay faucet script

if you have a Hosting there should be no problem Wink


kind regards
hero member
Activity: 770
Merit: 500
October 11, 2016, 06:12:34 AM
#3
Thanks i will try my luck there
full member
Activity: 210
Merit: 100
★YoBit.Net★ 350+ Coins Exchange & Dice
October 11, 2016, 04:58:45 AM
#2
I think it will be better to move your thread to the service section https://bitcointalk.org/index.php?board=52.0 there are lots of people there that can assist you when you get there.
hero member
Activity: 770
Merit: 500
October 11, 2016, 03:27:37 AM
#1
Can anybody help me in creating a new epay faucet. i am not a programmer. i downloaded the script in the hosting website after creating mysql database. when i open the browser i am getting error. its showing Unable to connect to database. please somebody can help me?
This is the script . please ttell me if i have to do any other changes to this install.php file. thanks in advance

session_start();
ob_start();
?>



   
   
   
   
   Faucet Installer
   https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
   
   
   
   








 
Faucet Installer

 

   Hi

Thank you for using this installer to begin a your new faucet with http://epay.info" target="_blank">ePay.info

We aim to improve the quality of this script over time, so remember to check the repository https://github.com/epayinfo/simple_faucet" target="_blank">here on regular basis to get the last updates.

Begin installing by clicking on the next step.



if(isset($_POST['dbname'])){

class SystemComponent{
   private $settings;
   function getSetting(){
      $settings['dbhost']=$_POST['dbhost'];
      $settings['dbusername']=$_POST['uname'];
      $settings['dbpassword']=$_POST['pwd'];
      $settings['dbname']=$_POST['dbname'];
      return $settings;
   }
}
require_once "includes/dbconnector.class.php";

$db=new DbConnector;
if($db->check_connection()){
   $dbhost=$_POST['dbhost'];
   $dbusername=$_POST['uname'];
   $dbpassword=$_POST['pwd'];
   $dbname=$_POST['dbname'];
   function generateRandomString($length = 25) {
      $characters = 'abcdefghijklmnopqrstuvwxyz123456789';
      $charactersLength = strlen($characters);
      $randomString = '';
      for ($i = 0; $i < $length; $i++) {
         $randomString .= $characters[rand(0, $charactersLength - 1)];
      }
      return $randomString;
   }
   $_SESSION['info']['admin']=generateRandomString();
   $adminpass=hash('SHA256',$_SESSION['info']['admin']);   
$content = <<class SystemComponent{
   private \$settings;
   function getSetting(){
      \$settings['dbhost']='$dbhost';
      \$settings['dbusername']='$dbusername';
      \$settings['dbpassword']='$dbpassword';
      \$settings['dbname']='$dbname';
      \$settings['adminpass']='$adminpass';
      return \$settings;
   }
}
END;
   chmod( 'templates_c', 0777 );
   chmod( 'configs/dbinfo.php', 0666 );
   $fp = fopen('configs/dbinfo.php',"w");
   fwrite($fp,$content);
   fclose($fp);
   $sql=fopen('install.sql','r');
   $schema=fread($sql,filesize("install.sql"));
   $queries = explode( ';', $schema );
   $queries = array_filter( $queries );
   array_pop($queries);
   foreach($queries as $q)
      $db->query($q);
      
   fclose($sql);
   header('Location: install.php?step=3');
   die();
}else{
   $_SESSION['error']['db']=true;
   header('Location: install.php?step=2');
   die();
}
}else{
?>


   
Faucet Installer - Database

 
 
 

   
   Below you should enter your database connection details. If you’re not sure about these, contact your host.
   
   
   
   



Unable to connect to database.


   
   
   
   
   

       
       
       u996812304_qwert
   

   
   
   

       
       
       u996812304_asdfg
   

   
   
   
   

       
       
       1234567
   

   
   
   

       
       
       You should be able to get this info from your web host, if mysql.1freehosting.com does not work.
   

   
     
   
   






}
}elseif($_GET['step']==3){ 

@unlink('install.php');
@unlink('install.sql');

?>





 
Faucet Installer - Finish

 

   
   Your installation has just been completed.
   
   

   


  This is your administartion passphare:



 
 



 
 
 
 
 
 

   


   

 
Make sure install.php and install.sql are deleted from you host.

Admin passpharse will not be shown again even if you refresh this page. Save it somewhere safe. 
 
 
     











Jump to: