yea I reread the post and realized I didn’t pay attention to where the value needed to be able to be changed
Since this is not a high security thing there wasn’t much need for database and mysql and md5 and all that yada yada yada
so I wrote a simple one here:
[php]<?php
$file=“value.txt”;
$handle = fopen($file, “r”);
$contents = fread($handle, filesize($file));
fclose($handle);
$static_number=$contents;
$password=“noneedforadmin”;
$string="{$_POST[‘one’]}";
if(strstr($string,$password)){
$pattern = ‘$password’;
$replacement = ‘’;
$newval= str_replace($pattern, $replacement, $string);
$fp = fopen($file, ‘w’);
fwrite($fp, $newval);
fclose($fp);
echo"Updated successfully!";
}
if(!empty($_POST[‘one’])){
$a=$_POST[‘one’]*$static_number;
echo"$a";
}
?>
[/php]
so it works real simple it has a password to change the value, first create a txt file called value.txt adn put that in the same directory as this script, if you open value.txt just put 235 on the top line and close it, now it will automatically times everything by 235, if you want to change the value 235 to something else just enter the number that you want into the calculator followed by "noneedforadmin" which is the password then hit enter and the the value changed!
example if I enter "100noneedforadmin" the calculator will now times everything by 100!
hope that works for you!
you can change the password to whatever you want, all you need is the two files, this one and value.txt