View file user/bal_n.php
<?php if ($user_b == '') $user_b = $_SESSION['user_login']; $balans = trim(file_get_contents($cms.'user/'.$user_b.'/balans.txt')); $balans = $balans+$bal; $fp_bal = fopen ($cms.'user/'.$user_b.'/balans.txt', "w+"); fwrite ($fp_bal, $balans); fclose ($fp_bal); ?>