-
Posts
1,731 -
Joined
-
Last visited
-
Days Won
5
Content Type
Profiles
Forums
Events
Everything posted by Spudinski
-
Re: Obligatory Introduction Good to have you here. :)
-
Re: Cron Help : no such file or directory :S What is the complete command you use for your crontab? It seems you are using the sh shell(default linux shell), and trying to run the file via that, it would not work because you have to use an absolute path, and you have a GET method string attached to your path(used by web servers, not shells). You could essentially modify the script that sh would recognize the file as being a PHP executable file, but it would be to much of a waste. Either try running the crontab via the URL(using curl), or use PHP to run it(php path/to/script.php). Or just post the complete command you are supplying for the crontab.
-
Re: Guitars... I almost thought everyone was geeks here... :-P Nah, just kidding, though it is nice to know there are peopole with the same interests. :-) I can play most beginner songs, 'caus it is easy to learn, like some songs of Blink 182, Nirvana, Metallica, Greenday and my personal favorite Evanesence. Fade to Black by Metallica is an awesome song, it's "like" the best song ever - and one of the hardest, but the intro is quite easy once you get the rhythm of it. @Tezza`, if you want to switch from acoustic to electric at some stage, it would be harder to do so that the other way around, trust me - personal experience & opinion
-
Guitars are pretty cool don't you think? Since this is my home and I don't like drifting far from it, I thought there should be a thread of something that actually requires a ... physical ... activity. So this thread is dedicated to guitars, might it be bass, electric or acoustic. Let us/me know you play, post your lyrics, tabs, or a picture or two. Anything related to such, speak out! (all spelling mistakes were made intentionally?)
-
Re: MD + CE = Free Template I also prefer the old template, but content and useability whise this one is better.
-
Re: please can someone change from html to php Heredoc can also be used... Floyd wrote a FAQ about it if I'm not mistaken.
-
Re: One Big Code! /** Look... A candle! ----------------------- --- ----------O------- ---- -- -------------OO------- ------ -----------OOOO------ ---- ----------OOOOO------ --- ----------OOOOO------ --- ----------OOOOO------ --- -----------OOOO------ ---- ------------OOO------ ----- -------------OO------ ------ ---------OOOOOO----- -- ---------OOOOOO----- -- ---------OOOOOO----- -- ---------OOOOOO----- -- ---------OOOOOO----- -- ---------OOOOOO----- -- ---------OOOOOO----- -- ---------OOOOOO----- -- ---------OOOOOO----- -- ---------OOOOOO----- -- ---------OOOOOO----- -- ---------OOOOOO----- -- ---------OOOOOO----- -- ---------OOOOOO----- -- **/
-
Re: Guess the next poster I love crashing peoples hopes (: Tezza` next
-
Re: Counting (nr game) 2111
-
Re: Counting (nr game) 2108
-
Re: need help wtih this function Missing a ; function edit_entry_form() { $cph=mysql_query("SELECT * FROM phonebook WHERE id={$_POST['id']}"); $ph=(mysql_fetch_row($cph)); print "[b]Editing Record[/b] <form action='newentry.php?action=editentrysub' method='post'> <input type='hidden' name='userid' value='{$_POST['id']}' /> Category: <input type='text' name='category' value='{$ph['category']}' /> Business Name: <input type='text' name='business_name' value='{$ph['business_name']}' /> Address: <input type='text' name='address' value='{$itemi['ph']}' /> Phone: <input type='text' name='phone' value='{$itemi['ph']}' /> Fax: <input type='text' name='fax' value='{$itemi['ph']}' /> Mobile: <input type='text' name='mobile' value='{$ph['mobile']}' /> E-Mail: <input type='text' name='email' value='{$ph['email']}' /> Website: <input type='text' name='website' value='{$ph['website']}' /> Logo: <input type='text' name='logo' value='{$ph['logo']}' /> Description: <input type='text' name='description' value='{$ph['description']}' /> </form>"; }
-
Re: One Big Code! /* Spudinski wonders off into wonder land */
-
Re: Help Fix brothel To tired to explain... <?php include("globals.php"); echo '<h1>Brothel</h1>'; #### Prices ##############Bellow is females ok ############Bellow is the males ### $prices = array("##FEMALES##",'50000','70000','90000','40000',"##MALES##",'50000','60000','80000','70000'); if($_GET['act'] && $ir['money'] < intval($_POST['price'])) { echo ('You have insufficient funds.'); $h->endpage(); exit; } elseif ($_GET['act']) { $will = rand(1,5); $cost = abs(@intval($_POST['price'])); mysql_query("UPDATE users SET will=will+".$will.",money=money-".$cost." WHERE userid=".$ir['userid'] . " AND money >= " . $cost) or die(mysql_error()); mysql_query("UPDATE users SET will=maxwill WHERE will>maxwill") or die(mysql_error()); echo 'You payed '.$_POST['who'].' '.money_formatter($cost).' to sleep with them, you gain '.$will.'% will.'; $h->endpage(); exit; } else { echo '<h3>Woman:</h3> <table border="1" cellspacing="0" class="table" width="50%"> <tr> <th>Name</th> <th>Price</th> <th>Rent</th> </tr> <tr> <td>Roxy</td> <td>'.money_formatter($prices[1]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="roxy"><input type="hidden" name="price" value="'.$prices[1].'"><input type="submit" value="Rent"></form></td> </tr> <tr> <td>Kelly</td> <td>'.money_formatter($prices[2]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Kelly"><input type="hidden" name="price" value="'.$prices[2].'"><input type="submit" value="Rent"></form></td> </tr> <tr> <td>Shanique</td> <td>'.money_formatter($prices[3]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Shanique"><input type="hidden" name="price" value="'.$prices[3].'"><input type="submit" value="Rent"></form></td> </tr> <tr> <td>Rhonda</td> <td>'.money_formatter($prices[4]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Rhonda"><input type="hidden" name="price" value="'.$prices[4].'"><input type="submit" value="Rent"></form></td> </tr> </table> <h3>Men:</h3> <table border="1" cellspacing="0" class="table" width="50%"> <tr> <th>Name</th> <th>Price</th> <th>Rent</th> </tr> <tr> <td>Bill</td> <td>'.money_formatter($prices[6]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Bill"><input type="hidden" name="price" value="'.$prices[6].'"><input type="submit" value="Rent"></form></td> </tr> <tr> <td>Marcus</td> <td>'.money_formatter($prices[7]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Marcus"><input type="hidden" name="price" value="'.$prices[7].'"><input type="submit" value="Rent"></form></td> </tr> <tr> <td>Greg</td> <td>'.money_formatter($prices[8]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Greg"><input type="hidden" name="price" value="'.$prices[8].'"><input type="submit" value="Rent"></form></td> </tr> <tr> <td>Sam</td> <td>'.money_formatter($prices[9]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Sam"><input type="hidden" name="price" value="'.$prices[9].'"><input type="submit" value="Rent"></form></td> </tr> </table>'; } $h->endpage(); ?>
-
Re: Jail-time There is no need to create two topics surrounding the same end result. Your crons are not being run at the times it should, so the Jail and Hospital(and all the others) aren't being updated(changed). If you do not understand what a cron is, read the following web page about it: http://en.wikipedia.org/wiki/Cron, in addition you can also Google it for further knowledge and understanding. Original Thread: http://criminalexistence.com/ceforums/h ... 35#p117135
-
Re: [Request]Stop Same Ip Transfer Please use the search feature, a thread with the exact same title has already been created. http://criminalexistence.com/ceforums/i ... ic=17800.0
-
Re: Crons issue Excessive mails being sent will get you kicked by your hosting provider if you are on a shared hosting package. You need to configure it in your cPanel(guessing you are on a shared server), under crontabs or jsut crons; you will see a box with your email inside, remove your email adress from that box and save the configuration. As for the crons not running when it is supposed to, a normal crontab entry should look like this in your cPanel: */5 * * * * curl http://path/cron_fivemins.php?code=<code> * * * * * curl http://<path>/cron_minute.php?code=<code> 0 * * * * curl http://<path>/cron_hour.php?code=<code> 0 0 * * * curl http://<path>/cron_day.php?code=<code> This is mentioned after a successful installation of MCCodes 2
-
Re: Need Help ASAP It could be a configuration error on the server, you should consult with your hosting provider for a solution.
-
Re: moving "boxes"? You should try to actually learn, if you want to arrive anywhere in the web programming world. W3Schools has a very good tutorial/guide on HTML as well as PHP.
-
Re: Google Chrome Google has allot of issues and complains about privacy, you simply just shouldn't expect it from a search engine like Google. Google has some pretty nifty developers on their side, most of them with a phd, so their program would be to some of the best standards. Google will have a way of collecting the sites you visited, and then indexing it, if you like it or not.
-
[PHP SNIPPET] Allow's you to download a file from your server.
Spudinski replied to Haunted Dawg's topic in Tutorials
Re: Allow's you to download a file from your server. The human race destroys the world, the developer destroys the machine... It's the same principle, *if* this script is found by an attacker, the attacker could have all the required password and configuration files in a matter of seconds, without any restrictions. Unless [i]openbasedir[/i] is set, this script could potentially export the contents of any script on the machine and/or neighboring machines. A deffo no-no on a site operating on DBS sources... -
Re: FaceBook You have to be 13 years or older to Be able to join facebook. the website was meant to be for everyone, but as obvious as it may be, having a bunch of eight year olds will destroy its reputation.
-
Re: What is the best Operating System Made by Microsoft XP home, it's got it's glitches but it is a pretty solid platform to work on since service pack 2. 2k was also a pretty solid platform, but it lacked some pretty obvious stuff.
-
Re: MD5 Generator mcrypt required to do that, not compiled into PHP5 by default. But when you want to go far ahead, It would be better just to encrypt the string.
-
Re: cron Simple math. <?php if (($last + $interval) >= time()) { // execute some script(s) } ?>/code]
-
Secure all pages using globals or header
Spudinski replied to CHAMAVELI's topic in General Discussion
Re: Secure all pages using globals or header * Topic Moved * What type of "codes" are you talking about. Please explain in a bit more detail.