Sir.. I know what i did . i just change my viewtopic files in the README..
i didn't edit anything else, so it's not my fault it's mods fault. and that needs to be looked over man
You are not logged in. Please login or register.
PunBB Forums → Posts by NiCk Newman
Sir.. I know what i did . i just change my viewtopic files in the README..
i didn't edit anything else, so it's not my fault it's mods fault. and that needs to be looked over man
why would u need my server logs when i just installed this mod and didn't do any changes? lol
Lol, were?
Hmm, If i get ftp working will u guys connect and try to help?
EDIT: Rofl better then me sittin here trying to know what to do @@
Ok I succesfully installed the cash mod.
And I got it show up in the header. But like whenever I got to 24-7GT.com/forums/bank.php or donate.php or lottery.php it shows a white page..
here's my codes:
Donate.php:
<?PHP
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/cash.php';
if ($pun_user['g_read_board'] == '0')
message($lang_common['No view']);
$page_title = pun_htmlspecialchars($pun_config['o_board_title'].' - '.$lang_common['Donate']);
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';
if (isset($_POST['submit'])) {
$amount = intval($_POST['amount']);
$query = $db->query('SELECT id, username FROM '.$db->prefix.'users WHERE username=\''.pun_htmlspecialchars($_POST['username']).'\' LIMIT 1');
if (!$db->num_rows($query))
message($lang_cash['User_not_exist']);
$user = $db->fetch_assoc($query);
if ($pun_user['cm_cash'] < $amount || $amount < 0)
message($lang_cash['Not_enough'].' '.$pun_config['cm_cur_name'].'.');
$db->query('UPDATE '.$db->prefix.'users SET cm_cash=cm_cash+'.$amount.' WHERE id='.$user['id'].' LIMIT 1');
$db->query('UPDATE '.$db->prefix.'users SET cm_cash=cm_cash-'.$amount.' WHERE id='.$pun_user['id'].' LIMIT 1');
echo ' <div id="bank" class="blockform">
<h2 class="block2"><span>'.$lang_common['Donate'].'</span></h2>
<div class="box">
<form id="bank" method="post" action="donate.php">
<div class="inform">
<fieldset>
<legend>'.$lang_cash['Donations'].'</legend>
<div class="infldset">
<div>'.$lang_cash['Donation_sent_to'].' '.$user['username'].' '.$lang_cash['with_amount_of'].' '.number_format($amount).' '.$pun_config['cm_cur_name'].'.</div>
<div><a href="bank.php">'.$lang_common['Go back'].'</a>.</div>
</div>
</fieldset>
</div>
</form>
</div>
</div>';
} else {
if (isset($_GET['userid'])) {
$userid = intval($_GET['userid']);
$query = $db->query('SELECT id, username FROM '.$db->prefix.'users WHERE id='.$userid.' LIMIT 1');
if (!$db->num_rows($query))
$userid = 0;
else
$user = $db->fetch_assoc($query);
} else
$userid = 0;
echo ' <div id="bank" class="blockform">
<h2 class="block2"><span>Donate</span></h2>
<div class="box">
<form id="bank" method="post" action="donate.php">
<div class="inform">
<fieldset>
<legend>'.$lang_cash['Select_user_amount'].'</legend>
<div class="infldset">';
if ($userid == 0) {
echo ' <div>'.$lang_common['Username'].': <input type="input" name="username" value="" tabindex="2" /></div>';
} else {
echo ' <div>'.$lang_common['Username'].': <input type="input" name="username" value="'.$user['username'].'" tabindex="2" /></div>';
}
echo ' <div>'.$lang_cash['Amount'].': <input type="input" name="amount" value="0" tabindex="2" /></div>
<div><br /><input type="submit" name="submit" value="'.$lang_common['Donate'].'" tabindex="2" /></div>
</div>
</fieldset>
</div>
</form>
</div>
</div>';
}
require PUN_ROOT.'footer.php';
Lottery.php:
<?PHP
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/cash.php';
if (!function_exists('generate_config_cache')) // If the file include/cache.php wasn't already included, include it now
require PUN_ROOT.'include/cache.php';
if ($pun_user['g_read_board'] == '0')
message($lang_common['No view']);
$page_title = pun_htmlspecialchars($pun_config['o_board_title'].' - '.$lang_common['Lottery']);
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';
if ($pun_config['cm_lottery'] == 0)
message($lang_cash['Bank_disabled']);
if (isset($_POST['submit'])) {
if ($pun_user['cm_cash'] < $pun_config['cm_lottery_cost'])
message($lang_cash['Not_enough'].' '.$pun_config['cm_cur_name'].' '.$lang_cash['To_buy_ticket'].'.');
if (rand(1, 100) < $pun_config['cm_lottery_chance']) {
// They win!
$db->query('UPDATE '.$db->prefix.'users SET cm_cash=cm_cash+('.$pun_config['cm_lottery_pot'].'-'.$pun_config['cm_lottery_cost'].') WHERE id='.$pun_user['id'].' LIMIT 1');
$db->query('UPDATE '.$db->prefix.'config SET conf_value='.$pun_config['cm_lottery_cost'].' WHERE conf_name=\'cm_lottery_pot\' LIMIT 1');
$db->query('UPDATE '.$db->prefix.'config SET conf_value=\''.$pun_user['username'].' '.$lang_cash['Last_winner_received'].' '.$pun_config['cm_lottery_pot'].' '.$pun_config['cm_cur_name'].'.\' WHERE conf_name=\'cm_lottery_pot\' LIMIT 1');
echo '
<div id="bank" class="blockform">
<h2 class="block2"><span>'.$lang_cash['Welcome_lottery'].'</span></h2>
<div class="box">
<form id="bank" method="post" action="lottery.php">
<div class="inform">
<fieldset>
<legend>'.$lang_cash['You_won'].'</legend>
<div class="infldset">
<div>'.$lang_cash['You_won_you_received'].' '.number_format($pun_config['cm_lottery_pot']).' '.$pun_config['cm_cur_name'].'.</div>
<div><br /><input type="submit" name="submit" value="'.$lang_cash['Try_again'].'" tabindex="2" /></div>
<div><br /><a href="lottery.php">'.$lang_common['Go back'].'</a>.</div>
</div>
</fieldset>
</div>
</form>
</div>
</div>
';
generate_config_cache();
} else {
// This things a scam...
$db->query('UPDATE '.$db->prefix.'users SET cm_cash=cm_cash-'.$pun_config['cm_lottery_cost'].' WHERE id='.$pun_user['id'].' LIMIT 1');
$db->query('UPDATE '.$db->prefix.'config SET conf_value=conf_value+'.$pun_config['cm_lottery_cost'].' WHERE conf_name=\'cm_lottery_pot\' LIMIT 1');
echo '
<div id="bank" class="blockform">
<h2 class="block2"><span>'.$lang_cash['Welcome_lottery'].'</span></h2>
<div class="box">
<form id="bank" method="post" action="lottery.php">
<div class="inform">
<fieldset>
<legend>'.$lang_cash['You_lost'].'</legend>
<div class="infldset">
<div>'.$lang_cash['You_lost_you_received'].'</div>';
if ($pun_config['cm_last_win'] == 1)
echo ' <div><br />'.$pun_config['cm_lottery_lastwon'].'</div>';
echo '
<div>Current Pot: '.number_format($pun_config['cm_lottery_pot']).'</div>
<div><br /><input type="submit" name="submit" value="'.$lang_cash['Try_again'].'" tabindex="2" /></div>
<div><br /><a href="lottery.php">'.$lang_common['Go back'].'</a>.</div>
</div>
</fieldset>
</div>
</form>
</div>
</div>
';
generate_config_cache();
}
} else {
echo '
<div id="bank" class="blockform">
<h2 class="block2"><span>'.$lang_cash['Welcome_lottery'].'</span></h2>
<div class="box">
<form id="bank" method="post" action="lottery.php">
<div class="inform">
<fieldset>
<legend>'.$lang_cash['Buy_ticket'].'</legend>
<div class="infldset">
<div>'.ucwords($pun_config['cm_cur_name']).': '.number_format($pun_user['cm_cash']).'</div>
<div>'.ucwords($pun_config['cm_cur_name']).' '.$lang_cash['Needed'].': '.$pun_config['cm_lottery_cost'].'</div>
<div><a href="bank.php">'.$lang_common['Bank'].'</a>: '.number_format($pun_user['cm_bank']).'</div>
<div>Current pot: '.number_format($pun_config['cm_lottery_pot']).'</div>
<div><br /><input type="submit" name="submit" value="'.$lang_cash['Buy'].'" tabindex="2" /></div>
</div>
</fieldset>
</div>
</form>
</div>
</div>
';
}
require PUN_ROOT.'footer.php';
Bank.php:
<?PHP
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/cash.php';
if ($pun_user['g_read_board'] == '0')
message($lang_common['No view']);
$page_title = pun_htmlspecialchars($pun_config['o_board_title'].' - '.$lang_common['Bank']);
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';
$now = time();
if ($pun_config['cm_bank'] == 0)
message($lang_cash['Bank_disabled']);
if (isset($_POST['withdraw'])) {
$amount = intval($_POST['amount']);
if ($amount <= 0)
message($lang_cash['Invalid_amount']);
if ($amount > $pun_user['cm_bank'])
message($lang_cash['Not_enough'].' '.$pun_config['cm_cur_name'].' '.$lang_cash['In_bank'].'.');
if ($pun_config['cm_intereste'] == 1)
$db->query('UPDATE '.$db->prefix.'users SET cm_bank=(cm_bank+cm_bank*((('.$now.'-cm_interest)/86400)*'.$pun_config['cm_interest'].'/100))-'.$amount.', cm_cash=cm_cash+'.$amount.', cm_interest='.$now.' WHERE id='.$pun_user['id'].' LIMIT 1');
else
$db->query('UPDATE '.$db->prefix.'users SET cm_bank=cm_bank-'.$amount.', cm_cash=cm_cash+'.$amount.' WHERE id='.$pun_user['id'].' LIMIT 1');
echo ' <div id="bank" class="blockform">
<h2 class="block2"><span>'.$lang_cash['Welcome_bank'].'</span></h2>
<div class="box">
<form id="bank" method="post" action="bank.php">
<div class="inform">
<fieldset>
<legend>'.$lang_cash['Withdrawing'].'</legend>
<div class="infldset">
<div>'.$lang_cash['Withdrew_success'].' '.$amount.' '.$pun_config['cm_cur_name'].'.</div>
<div><a href="bank.php">'.$lang_common['Go back'].'</a></div>
</div>
</fieldset>
</div>
</form>
</div>
</div>';
} elseif (isset($_POST['deposit'])) {
$amount = intval($_POST['amount']);
if ($amount <= 0)
message($lang_cash['Invalid_amount']);
if ($amount > $pun_user['cm_cash'])
message($lang_cash['Not_enough'].' '.$pun_config['cm_cur_name'].'.');
if ($pun_config['cm_intereste'] == 1)
$db->query('UPDATE '.$db->prefix.'users SET cm_bank=(cm_bank+cm_bank*((('.$now.'-cm_interest)/86400)*'.$pun_config['cm_interest'].'/100))+'.$amount.', cm_cash=cm_cash-'.$amount.', cm_interest='.$now.' WHERE id='.$pun_user['id'].' LIMIT 1');
else
$db->query('UPDATE '.$db->prefix.'users SET cm_bank=cm_bank+'.$amount.', cm_cash=cm_cash-'.$amount.' WHERE id='.$pun_user['id'].' LIMIT 1');
echo ' <div id="bank" class="blockform">
<h2 class="block2"><span>'.$lang_cash['Welcome_bank'].'</span></h2>
<div class="box">
<form id="bank" method="post" action="bank.php">
<div class="inform">
<fieldset>
<legend>'.$lang_cash['Depositing'].'</legend>
<div class="infldset">
<div>'.$lang_cash['Deposit_succes'].' '.$amount.' '.$pun_config['cm_cur_name'].'.</div>
<div><a href="bank.php">'.$lang_common['Go back'].'</a></div>
</div>
</fieldset>
</div>
</form>
</div>
</div>';
} else {
if ($pun_config['cm_intereste'] == 1)
$amount = $pun_user['cm_bank'] * ((($now - $pun_user['cm_interest']) / 86400) * $pun_config['cm_interest'] / 100);
echo ' <div id="bank" class="blockform">
<h2 class="block2"><span>'.$lang_cash['Welcome_bank'].'</span></h2>
<div class="box">
<form id="bank" method="post" action="bank.php">
<div class="inform">
<fieldset>
<legend>'.$lang_cash['Deposit_or_Withdraw'].'</legend>
<div class="infldset">
<div>'.ucwords($pun_config['cm_cur_name']).': '.number_format($pun_user['cm_cash']).'</div>';
if ($pun_config['cm_intereste'] == 1)
echo ' <div>'.$lang_common['Bank'].': '.number_format($pun_user['cm_bank'] + $amount).' </div>';
else
echo ' <div>'.$lang_common['Bank'].': '.number_format($pun_user['cm_bank']).'</div>';
echo ' <div>'.$lang_cash['Amount'].': <input type="text" name="amount" size="10" tabindex="1" /> <input type="submit" name="deposit" value="'.$lang_cash['Deposit'].'" tabindex="2" /> <input type="submit" name="withdraw" value="'.$lang_cash['Withdraw'].'" tabindex="2" /></div>
</div>
</fieldset>
</div>
</form>
</div>
</div>';
}
require PUN_ROOT.'footer.php';
Thanks!
There is a French mod that does it, the English lang file is included in the archive: http://www.punbb.fr/mods/mod.php?id=87
That's not what i want
i want it to be a link to the image i dont want anything to be uploaded on my server lol
YAY!! I GOT A RADAR GUN 4 MY BDAY! bcz i play baseball i needed 1 of those
*Opening presents*
Thank u i'll giv those a look, i gota go open my presents it's my bday!
AWESOME!! <3
Let's you upload a picture or like a Gallery mod but the only catch it's not hosted on your server.
So like people have to enter the URL of the image to make it show in the gallery instead of uploading it through my server.
Is there a mod like that?
I've looked through all the gallery mods i cant find 1
Maybe he has some type mod installed that does that,
what mods do u have installed could u list PLease?
awesome design
LOL @ He's Banned
Alot of people care if site is slow or fast imo
That's just me lol sorry if i am I'll try my best to help u guys!
what framekwork u using java? browser like runescape? giv us ur site
Ok I'll try to be a lil bit more understanding,
Isn't my bday on Easter? haha i just noticed that!
ya it does keep it up bro
I'm english. Lo.l.
Yes im turning 16!! finally!
Yay! and i finally switched to punbb and hope to learn php and help punbb and then right my own mods for punbb then eat cake n celebrate and release mods for punbb
LOL
No serious tho
<3 god bless u all!
Thanks 4 letting me use your Software!
LOL Yea axa MY bad on the title
hehe join my forums? i'll join urs?
EDIT: doesnt it seem like your forum is way faster then mine?
WTF, lol this was my first time last week to EVER buy hosting bcz i used to host of my windows xp computer @ home, lol but i finally bought hosting and now it's now as fast as urs hmm wtf
oh well xD i'll sign UP
ugh oh.. your registration asks me 4 a 5digit pin code? xD of your area? i dont know, lol
good but the main site doesnt have a link to the forum lol
ya giv me email i'lla d u
so i can customize my header a lil bit more
24-7Gt.com
xd
i thought he was just trying to show the register link on its own? not with the other menu items? though i dont see where he would get with doing this...lol
exactly what i need to do..
also how can i do that with other links as well?
PunBB Forums → Posts by NiCk Newman
Powered by PunBB, supported by Informer Technologies, Inc.