mate, one mistake, i agree to it. this one i have all rights. and if i wanted to, i could still have continue to sell the other, but i stopped and asked admin to remove it too.
this one i even gave the codes.
let me post the installation codes too.
this is 3/4 of the code
installation.
<?php
if (isset($_GET['checkCons'])) {
if (@!mysql_connect($_POST['db_host'],$_POST['db_user'],$_POST['db_pass']) || @!mysql_select_db($_POST['db_name'])) {
header('Location: ./?step=3&db');
exit();
}
include 'driver_test.php';
$test=new jsonRPCClient('http://'.$_POST['w_user'].':'.$_POST['w_pass'].'@'.$_POST['w_host'].':'.$_POST['w_port'].'/');
@$test_call=$test->getbalance();
$included_=true;
include 'db_data.php';
$db_file=fopen('../inc/db-conf.php','wb');
fwrite($db_file,"<?php \n");
fwrite($db_file,'mysql_connect(\''.$_POST['db_host'].'\',\''.$_POST['db_user'].'\',\''.$_POST['db_pass'].'\');'."\n");
fwrite($db_file,'mysql_select_db(\''.$_POST['db_name'].'\');'."\n");
fwrite($db_file,'mysql_query("SET NAMES utf8");'."\n");
fwrite($db_file,"?>"); ?><?php
fclose($db_file);
$w_file=fopen('../inc/driver-conf.php','wb');
fwrite($w_file,"<?php \n");
fwrite($w_file,'$driver_login=\'http://'.$_POST['w_user'].':'.$_POST['w_pass'].'@'.$_POST['w_host'].':'.$_POST['w_port'].'/\';'."\n");
fwrite($w_file,"?>"); ?><?php
fclose($w_file);
header('Location: ./?step=4');
exit();
}
if (isset($_GET['saveB'])) {
include '../inc/db-conf.php';
mysql_query("UPDATE `system` SET `title`='$_POST[s_title]',`url`='$_POST[s_url]',`currency`='$_POST[s_cur]',`currency_sign`='$_POST[s_cur_sign]',`description`='$_POST[s_desc]' WHERE `id`=1");
header('Location: ./?step=5');
exit();
}
if (empty($_GET['step']) || ($_GET['step']!=1 && $_GET['step']!=2 && $_GET['step']!=3 && $_GET['step']!=4 && $_GET['step']!=5 && $_GET['step']!=6)) {
header('Location: ./?step=1');
exit();
}
else $step=$_GET['step'];
if ($step==3 && (!is_writable('../inc/db-conf.php') || !is_writable('../inc/driver-conf.php'))) {
header('Location: ./?step=2');
exit();
}
?>
<!DOCTYPE html>
<html>
<head>
<title>CoinWheel 1.0 - Installation</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="./install_page.css">
</head>
<body>
<div class="allbody">
<div class="alls" style="text-align: center;">
<h1>CoinWheel 1.0 Installation</h1>
</div>
</div>
<?php
switch ($step) {
case 1:
?>
<script type="text/javascript">
function next() {
window.location.href='./?step=2';
}
</script>
<div class="allbody">
<div class="alls">
<h3>Welcome!</h3>
This is an automatic installation script. Please, follow the instructions on the following screens.
</div>
</div>
<?php
break;
case 2:
?>
<script type="text/javascript">
function next() {
window.location.href='./?step=3';
}
</script>
<div class="allbody">
<div class="alls">
<h3>File Permissions</h3>
Please make sure that following files are writable (chmod 777):
<br>
<table>
<tr>
<td><i>inc/db-conf.php</i></td>
<td> </td>
<td><?php if (is_writable('../inc/db-conf.php')) { echo '<span style="color: green;"><b>Yes</b></span>'; } else { echo '<span style="color: red;"><b>No</b></span>'; } ?></td>
</tr>
<tr>
<td><i>inc/driver-conf.php</i></td>
<td> </td>
<td><?php if (is_writable('../inc/driver-conf.php')) { echo '<span style="color: green;"><b>Yes</b></span>'; } else { echo '<span style="color: red;"><b>No</b></span>'; } ?></td>
</tr>
</table>
<br>
The above files should be writable, otherwise the installation will not continue!
</div>
</div>
<?php
break;
case 3:
?>
<script type="text/javascript">
function next() {
document.getElementById('mform').submit();
}
</script>
<div class="allbody">
<div class="alls">
<form id="mform" method="post" action="./?checkCons">
<h3>Database Info</h3>
<i>Please fill in correct database info:</i>
<br>
<table>
<tr>
<td>Host:</td>
<td><input type="text" name="db_host" value="localhost"></td>
</tr>
<tr>
<td>Username:</td>
<td><input type="text" name="db_user" placeholder="DB user"></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="text" name="db_pass" placeholder="DB pass"></td>
</tr>
<tr>
<td>Database:</td>
<td><input type="text" name="db_name" placeholder="DB name"></td>
</tr>
</table>
<h3>Wallet Info</h3>
<i>Please fill in correct wallet info:</i>
<br>
<table>
<tr>
<td>Host:</td>
<td><input type="text" name="w_host" value="localhost"></td>
</tr>
<tr>
<td>Login:</td>
<td><input type="text" name="w_user" placeholder="Wallet user"></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="text" name="w_pass" placeholder="Wallet password"></td>
</tr>
<tr>
<td>Port:</td>