Jump to content
MakeWebGames

mdshare

Members
  • Posts

    2,018
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by mdshare

  1. This is really the most simple javascript there is yet asked by a lot how to Example   [url="javascript:window.external.AddFavorite('http://www.criminalexistence.com/','CE Forums')"]Add this site to your favorites[/url]
  2. Re: online/offline/total users see never good when just awake if($users == 1) { echo("1 User online"); } else { echo("$users online"); } $users has to be $count
  3. Re: [REVIEW] Free Mafia game - Browser Game   [url="http://ce-ezine.com/2008/04/19/free-mafia-game/"][img=http://i152.photobucket.com/albums/s184/simma20/STAMP.png][/url]
  4. Re: [REVIEW] Prison Struggle   [url="http://ce-ezine.com/2008/04/20/prison-struggle/"][img=http://i152.photobucket.com/albums/s184/simma20/STAMP.png][/url]
  5. Re: [REVIEW] Pirate Quests   [url="http://ce-ezine.com/2008/04/20/pirate-quests/"][img=http://i152.photobucket.com/albums/s184/simma20/STAMP.png][/url]
  6. Re: stop same ip transfers ehhh ????? you forget something....... AOL DNS pool, dynamic IPs, and more stuff you can't just check on IP alone, ASN is fun edit: seems nyna mentioned the same earlier, gah I should read from 1st post instead of last
  7. Re: online/offline/total users Guess I gonna reply with a small Users Online script that doesn't need MySQL. Not Tested It's a rude not accurate script, it fetches the IPs and if the same IP isn't listed within 10 minutes it ads it to the txt file. Now this is a basic example, including the echo, best would be to put the fetch IP into the header and the echo at your login page. It should work allthough I'm still half asleep users.php   <?php $SecondsCounter = 600; $IPadres = $_SERVER["REMOTE_ADDR"];; $visitorsdb = "visitors.dat"; $time = time(); $count = 1; $file = file($visitorsdb); $OpenFile = fopen($visitorsdb,"w"); fputs($OpenFile,"<?php exit; ?>"); while(list($nr,$line) = each($file)) { list($time,$ipadres) = explode("|",$line); if($time > $time-$SecondsCounter && $ipadres != $IPadres) { fputs($OpenFile,"\n$time|$ipadres|"); $count++; } } fputs($OpenFile,"\n$time|$IPadres|"); fclose($OpenFile); if($users == 1) { echo("1 User online"); } else { echo("$users online"); } ?>   visitors.dat save a blank file with read/write access called visitors.dat
  8. Re: [REVIEW] Genleo   [url="http://ce-ezine.com/2008/04/19/genleo/"][img=http://i152.photobucket.com/albums/s184/simma20/STAMP.png][/url]
  9. Re: [REVIEW] Genleo Genleo Review by Vorlen When you first see the genleo site, it looks really cool with it's layout and graphical design. Of course, like many games on the net, you get inside and it's not the same. From those cool graphics, to a fairly basic looking inner workings. Red menu's on the left, blue on the right. The header (Banner) could use some updating, but of course the general appearance isn't all too bad overall. As soon as you click the city link, which is called "Visit Carvahall", you suddenly get the feeling that you're playing an mc code game, and in the end, I'm not totally sure, but it appears to be an MC Code game, just really modified. After some clicking around, and viewing the easy to find 'Help Files" (Red link in the left-hand menu) which are actually forum posts in the help files section. The game looks fairly easy to comprehend at first glance, and once you actually get into it, it is just that, easy to comprehend. I went to the city area, and decided to check out the "Quest" link, which is more or less 'search the streets' but, with a map, so presumably using co-ordinates, and some really cool actions. I went fishing, haha... that was actually pretty nifty to do. Using a co-ordinate system that's simple to understand, you have to have a boat, fishing rod, and fuel. When you go to the fishing hole of your choice (Within limitations of level), you can pick your area to fish. I noticed that fishing in deeper spots (Larger the number, deeper it is) you have a chance of catching uncommon fish, but you catch a lot less fish. You can fish fairly mid-way or shallow and you'll catch a lot more fish, just all of which are common or 'Very Common'.   Of course, I explored aroung the site some more, found little things here and there interesting. But: All In all - This game is one of those games that you'll think is fairly boring appearing, but you will probably wind up addicted to it like any of the original mc code games. More or less, player beware - this game will get you hooked if you're a real text based junkie! - Vorlen [DreamBurst Owner]
  10. Re: [REVIEW] Pimpin Down Under - Browser Game   [url="http://ce-ezine.com/2008/04/19/pimpin-down-under/"][img=http://i152.photobucket.com/albums/s184/simma20/STAMP.png][/url]
  11. Re: [REVIEW] Amazon Survival   [url="http://ce-ezine.com/2008/04/19/amazon-survival/"][img=http://i152.photobucket.com/albums/s184/simma20/STAMP.png][/url]
  12. Re: [REVIEW] The Wrestling Game.   [url="http://ce-ezine.com/2008/04/19/the-wrestling-game/"][img=http://i152.photobucket.com/albums/s184/simma20/STAMP.png][/url]
  13. This is a simple CSS menu which could change the look of your website a lot As you see when hoovering over it changes the bg area of the link this is really basic but should be enough to play with   <style type="text/css"> body {font-family:Arial, Helvetica, sans-serif, Tahoma; font-size:12px;} #vertmenu { font-family: Arial, Helvetica, sans-serif, Tahoma; font-size: 100%; width: 160px; padding: 0px; margin: 0px; } #vertmenu h1 { display: block; background-color:#FF9900; font-size: 100%; padding: 3px 0 5px 3px; border: 1px solid #000000; color: #333333; margin: 0px; width:159px; } #vertmenu ul { list-style: none; margin: 0px; padding: 0px; border: none; } #vertmenu ul li { margin: 0px; padding: 0px; } #vertmenu ul li a { font-size: 100%; display: block; border-bottom: 1px dashed #C39C4E; padding: 5px 0px 2px 4px; text-decoration: none; color: #666666; width:160px; } #vertmenu ul li a:hover, #vertmenu ul li a:focus { color: #000000; background-color: #eeeeee; } </style> </head> <body> <div id="vertmenu"> <h1>Menu items</h1> <ul> [*][url="#"]Item 1[/url] [*][url="#"]Item 2[/url] [*][url="#"]Item 3[/url] [*][url="#"]Item 4[/url] [*][url="#"]Item 5[/url] [*][url="#"]Item 6[/url] [/list] </div>   Menu Demo Code   <style type="text/css"> body {font-family:Arial, Helvetica, sans-serif, Tahoma; font-size:12px;} #vertmenu { font-family: Arial, Helvetica, sans-serif, Tahoma; font-size: 100%; width: 160px; padding: 0px; margin: 0px; } #vertmenu h1 { display: block; background-color:#FF9900; font-size: 100%; padding: 3px 0 5px 3px; border: 1px solid #000000; color: #333333; margin: 0px; width:159px; } #vertmenu ul { list-style: none; margin: 0px; padding: 0px; border: none; } #vertmenu ul li { margin: 0px; padding: 0px; } #vertmenu ul li a { font-size: 100%; display: block; border-bottom: 1px dashed #C39C4E; padding: 5px 0px 2px 4px; text-decoration: none; color: #666666; width:160px; } #vertmenu ul li a:hover, #vertmenu ul li a:focus { color: #000000; background-color: #eeeeee; } </style> </head> <body> <div id="vertmenu"> <h1>Menu items</h1> <ul> [*][url="#"]Item 1[/url] [*][url="#"]Item 2[/url] [*][url="#"]Item 3[/url] [*][url="#"]Item 4[/url] [*][url="#"]Item 5[/url] [*][url="#"]Item 6[/url] [/list] </div>
  14. Re: [mccode] How to Setup PayPal Instant Payment Notification - Free! Use the sandbox mode as described at your paypal account.
  15. Re: Is Your Advertisement Working? ref id for each ad campaign eg ?ref=adtoll ?ref=reachads etc... all you have to do is put your raw access logs through an <censored>yzer and you know what is what no need to insert code or whatever or to be dependend on a 3rd party
  16. mdshare

    Favorite TV shows

    Re: Favorite TV shows   Torchwood Battlestar Galactica NCIS Bones Las Vegas
  17. Speed There is a difference between the two, but speed-wise it should be irrelevant which one you use. echo is marginally faster since it doesn't set a return value if you really want to get down to the nitty gritty. Expression print() behaves like a function in that you can do: $ret = print "Hello World"; And $ret will be 1. That means that print can be used as part of a more complex expression where echo cannot. An example from the PHP Manual: $b ? print "true" : print "false"; print is also part of the precedence table which it needs to be if it is to be used within a complex expression. It is just about at the bottom of the precedence list though. Only "," AND, OR and XOR are lower. Parameter(s) The grammar is: echo expression [, expression[, expression] ... ] But echo ( expression, expression ) is not valid. This would be valid: echo ("howdy"),("partner"); the same as: echo "howdy","partner"; (Putting the brackets in that simple example serves no purpose since there is no operator precedence issue with a single term like that.) So, echo without parentheses can take multiple parameters, which get concatenated: echo "and a ", 1, 2, 3; // comma-separated without parentheses echo ("and a 123"); // just one parameter with parentheses print() can only take one parameter: print ("and a 123"); print "and a 123";
  18. Re: Which File Extension are You?
  19. Show off your graphic design skills Firstly a designer creates an image (wallpaper, signature, avatar, edited photo etc) and posts it in a new topic. In the new topic the designer can say a little about the image such as how he made it, what he likes about it etc. Please post your comments about the image such as what you like about the image, ways you think it could be improved, better editing programs/tools to use etc.
  20. mdshare

    Sql Injections?

    Re: Sql Injections? Do a forum search and you would be amazed how many times it has been posted already.
  21. Re: [REVIEW] Amazon Battle - Please Review ! Review by Klikoka Amazon Battle I went to the login page so i looked around the page and at the bottom it had a "Bookmark this site" which i thought was quite good. Now the register is a pretty basic one with the color changed and a box added to the bottom with the T&C inside. So i got registered and went inside first thing that i saw was good, when you first go inside you can choose what background you would like to play with there was a choice of 7 diffrent ones. The layout inside makes it look like a V1 game when its a V2. It has 4 (four) mods that i could see. The staff are very active each being on within 2 days of there last visit. Its user base is good at 382 signed up in the time its been open. The cash circulation is not to good at $2,187,043 for the time its been open and the crystals are no better at 13,844. The forums ar in-game and i do not know if they are protected from SQL injections or not. The menu is ok but evryone can see the donator options. VERDICT : Looking through i could not see any errors exept for the one on the menu stated above. Visual Rating : 3/5 (Needs to have a choice of background same as login.) Game Play Rating : 3/5 (Needs more content for players to be occupied and the money lowered.) ||Always Happy To Help||
  22. Digg submission code Digg does not allow complete automated submission, requiring some human interaction. There are two versions of the code: PHP and Javascript. PHP Digg code Using PHP, you can create the 'Digg this' link on the server before sending the page to the browser. The code is (all one line):   [url="http://digg.com/submit?phase=2&url=<?php echo urlencode("]">Digg this[/url]   This produces this link: Digg this. Of course, don't forget to change the http://criminalexistence.com to your domain name!. Javascript Digg code The Javascript Digg code was first released by Weston Campbell. You can use it as a bookmarklet: just drag the link to your bookmark toolbar. A simplified version of the code is:   [url="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(document.location.href)+' '"]Digg this[/url]   del.icio.us submission code del.icio.us is a very popular social bookmarking service. Its link submission system is similar to Digg's. Again, we have PHP and Javscript codes. del.icio.us PHP submission code The PHP code to submit to del.icio.us is:   [url="http://del.icio.us/post?v=2&url=<?php echo urlencode("]&title=<?php echo urlencode($PAGE_TITLE);?>" title="Post to del.icio.us">Post page to del.icio.us[/url]   Note the $PAGE_TITLE variable. This needs to be changed to the page's actual title. If you are using blog software or a content management system (CMS), you might find that this variable is already present, but called something else. If not, you can submit the page without a title, but this forces the user to type it in. In this case, the code will be:   [url="http://del.icio.us/post?v=2&url=<?php echo urlencode("]" title="Post to del.icio.us">Post page to del.icio.us[/url]   Which produces this link: Post page to del.icio.us. Notice the difference? Again, change criminalexistence.com to your domain name! del.icio.us Javascript submission code The Javascript code is more straightforward:   [url="javascript:location.href='http://del.icio.us/post?v=2&url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title)+' '"]Post to del.icio.us[/url]   Furl posting code The Furl submission code is similar to the del.icio.us code above. Furl PHP code   [url="http://www.furl.net/storeIt.jsp?t=<?php echo urlencode($PAGE_TITLE);?>&u=<?php echo urlencode("]">Post page to Furl[/url]   Again, notice the $PAGE_TITLE variable. Unlike using the del.icio.us, if you do not provide a link title, Furl automatically sets it to 'untitled'. You may want to avoid that Furl Javascript code   [url="javascript:location.href='http://www.furl.net/storeIt.jsp?u='+encodeURIComponent(document.location.href)+'&t='+encodeURIComponent(document.title)+' '"]Post to Furl[/url]   Netscape.com Recently (in 2006), Netscape.com introduced a Digg-like interface for its homepage, along with submission URLs. Netscape.com PHP code   [url="http://www.netscape.com/submit/?T=<?php echo urlencode($PAGE_TITLE);?>&U=<?php echo urlencode("]">Add this page to Netscape.com[/url]   Netscape.com Javascript code   [url="javascript:location.href='http://www.netscape.com/submit/?U='+encodeURIComponent(document.location.href)+'&T='+encodeURIComponent(document.title)+' '"]Post to Netscape.com[/url]
  23. Re: Introductions Welcome livdolu
  24. Re: [FAQ] Email Validation in PHP Thanks Killah, I was still half asleep when posting my function and didn't step back later to check.
  25. Re: [FAQ] Email Validation in PHP I might have missed it as I'm still asleep...... I check on the MX record for e-mail validation here is my function   function myCheckDNSRR($hostName, $recType = '') { if(!empty($hostName)) { if( $recType == '' ) $recType = "MX"; exec("nslookup -type=$recType $hostName", $result); foreach ($result as $line) { if(eregi("^$hostName",$line)) { return true; } } return false; } return false;   Now what does it do if you get eg [email protected] it will check if there is a mail server on yourdomain.tld it's simple and effective but might not be failsafe
×
×
  • Create New...