Jump to content
xisto Community

Ash-Bash

Members
  • Content Count

    1,287
  • Joined

  • Last visited

Everything posted by Ash-Bash

  1. Hello yall,I have decided to start a Fail Blog obviously contains all content to do with Fails. Now I know for a fact these can easily get popular.Now I need a theme I will be using the best Blogging software out there 'Wordpress 3.0' could some members help me locate a suitable theme for this.
  2. Can you just insert it into the full code for me I am very ill right now and cant spend alot of time on the pc
  3. With the new code I get this error: Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/itneedn/public_html/tinylx.net/shorten.php on line 36http://tinylx.net/0 Here is the full code: <?php/* * First authored by Brian Cray * License: http://creativecommons.org/licenses/by/3.0/ * Contact the author at http://briancray.com/ */ $url_to_shorten=get_magic_quotes_gpc() ? stripslashes(trim($_REQUEST['longurl'])):trim($_REQUEST['longurl']); if(!empty($url_to_shorten)&&preg_match('|^https?://|',$url_to_shorten)){require('config.php');if($_SERVER['REMOTE_ADDR']!= LIMIT_TO_IP){die('You are not allowed to shorten URLs with this service.');} $already_shortened=mysql_result(mysql_query('SELECT id FROM '. DB_TABLE.' WHERE long_url="'.mysql_real_escape_string($url_to_shorten).'"'),0,0);if(!empty($already_shortened)){// URL has already been shortened$shortened_url=dechex($already_shortened);}else{// URL not in database, insertmysql_query('INSERT INTO '. DB_TABLE .' (long_url, created, creator) VALUES ("'.mysql_real_escape_string($url_to_shorten).'", "'.time().'", "'.mysql_real_escape_string($_SERVER['REMOTE_ADDR']).'")');$shortened_url=dechex(mysql_insert_id());}echo'http://'.$_SERVER['HTTP_HOST'].'/'.$shortened_url;}
  4. I get this error when replacing it with the new code you gave me: Here is the full code: <title>TinyLX.net Your URL shortening request completed!</title><a href="http://forums.xisto.com/no_longer_exists/ here to shorten another</a><br><a id="ck_email" class="stbar chicklet" href="javascript:void(0);"><img src="http://w.sharethis.com/chicklets/email.gif" /></a><a id="ck_facebook" class="stbar chicklet" href="javascript:void(0);"><img src="http://w.sharethis.com/chicklets/facebook.gif" /></a><a id="ck_twitter" class="stbar chicklet" href="javascript:void(0);"><img src="http://w.sharethis.com/chicklets/twitter.gif" /></a><a id="ck_sharethis" class="stbar chicklet" href="javascript:void(0);"><img src="http://w.sharethis.com/chicklets/sharethis.gif" />ShareThis</a><script type="text/javascript"> var shared_object = SHARETHIS.addEntry({ title: document.title, url: document.location.href});shared_object.attachButton(document.getElementById("ck_sharethis"));shared_object.attachChicklet("email", document.getElementById("ck_email"));shared_object.attachChicklet("facebook", document.getElementById("ck_facebook"));shared_object.attachChicklet("twitter", document.getElementById("ck_twitter"));</script><br>The URL =<?php/* * First authored by Brian Cray * License: http://creativecommons.org/licenses/by/3.0/ * Contact the author at http://briancray.com/ */$url_to_shorten = get_magic_quotes_gpc() ? stripslashes(trim($_REQUEST['longurl'])) : trim($_REQUEST['longurl']);if(!empty($url_to_shorten) && preg_match('|^https?://|', $url_to_shorten)){ require('config.php'); // check if the client IP is allowed to shorten if($_SERVER['REMOTE_ADDR'] != LIMIT_TO_IP) { die('You are not allowed to shorten URLs with this service.'); } // check if the URL is valid if(CHECK_URL) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url_to_shorten); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); $response = curl_exec($ch); curl_close($handle); if(curl_getinfo($ch, CURLINFO_HTTP_CODE) == '404') { die('Not a valid URL'); } } // check if the URL has already been shortened $already_shortened = mysql_num_rows(mysql_query('SELECT id FROM ' . DB_TABLE. ' WHERE long_url="' . mysql_real_escape_string($url_to_shorten) . '"'), 0, 0); if(!empty($already_shortened)) { // URL has already been shortened $shortened_url = getShortenedURLFromID($already_shortened); } else { // URL not in database, insert mysql_query('LOCK TABLES ' . DB_TABLE . ' WRITE;'); mysql_query('INSERT INTO ' . DB_TABLE . ' (long_url, created, creator) VALUES ("' . mysql_real_escape_string($url_to_shorten) . '", "' . time() . '", "' . mysql_real_escape_string($_SERVER['REMOTE_ADDR']) . '")'); $shortened_url = getShortenedURLFromID(mysql_insert_id()); mysql_query('UNLOCK TABLES'); } echo BASE_HREF . $shortened_url;}function getShortenedURLFromID ($integer, $base = ALLOWED_CHARS){ $length = strlen($base); while($integer > $length - 1) { $out = $base[fmod($integer, $length)] . $out; $integer = floor( $integer / $length ); } return $base[$integer] . $out;} And if anyone would like to design it better with the script working then please do. as it currently looks rather boring http://forums.xisto.com/no_longer_exists/shorten.php
  5. Hi there, I have a problem with my URL shortner site. Here is the error I get when shortening the URL: Here is the code on that line: Would anyone like to fix this for me and provide me with a fixed code. Thanks in advance.
  6. Well I do think ITneed is quite catchy and stand out to company's with the term 'host' in the name, Though I would love to hear other names that are catchy and sound good.
  7. I have found a cheaper host as some of you may know by the name 'Host gator' Everything unlimited for $7.00 and they do many discounts. I think Xisto need to be more competitive.
  8. Hello all,I am currently running Wordpress 3.0.I want to be able to change the page after the login.Basically I login and it takes me to the control panel, I want it to log me in then direct me to the main homepage.How can I do this? Is there any plugins?
  9. Here in the UK farmville used to be very popular and everyone was on it however it has died back down again here. Though I can see saint micheal plays it regularly as I always get wonderful gifts from him on Facebook .
  10. Yes this has been avalible on other phones before the iPhone and yes they are cheaper though with the iPhone being so popular I am sure video calling will come to life, though I think the price of this is 50Pence a minute in the UK instead of a 10pence charge for a normal call. However they have said it currently only available over WIFI though though by the words of the message by the end of 2010 it sounds like it should be available on 3G. Well I do think Apple do a very good job on there displays some I am sure it will be great.
  11. After watching the 2010 worldcup including watching England I am finding it very boring and there is to much space between games such as there is 3-5 days apart for England matches there is no intensity to the Worldcup anymore.
  12. That what I done last time 'Give up' I have done a search on Google of all the local business near me and sent them all emails if they would like me to host there sites for a very low price and if they would like to meet me in person or give me a ring for verification I think that always helps for people to buy your product(s).
  13. This is another very good tutorial Tramposh I found it very useful and done it on several of my photos which I uploaded to DeviantART. I hope to see some more tutorials from you soon Tramposh it seems you are a Photoshop GURU
  14. I used to be on the logic plan. I am sure any website can stay on that though it just needs a little increase of the bandwidth sometimes as this can easily go over as it did for me.
  15. Wow echo of thunder I can see you are very annoyed with everything and one to do with the oil spill. After seeing you topic in the vent and now here it seems you want to get your point across that BP acted way to slow and Obama is not doing much to give them a kick up the *bottom*.
  16. Databse will be increased another 20GB after I finish posting today.

    1. OpaQue
    2. Ash-Bash

      Ash-Bash

      :) Just got back from hospital.
    3. anwiii

      anwiii

      welcome back. glad you are still alive!

  17. Yeah most people now tag there videos with popular things so they can get more views. Which is fair enough I do sometimes.
  18. I really now hope this can be back online soon as I have a backup VPS hosted on here and money on my Paypal is on hold (I hate gaypal). Admins is there any update on when it will be back online?
  19. In hostpital on my iPhone :(

    1. rob86

      rob86

      Get well, Get well Soon, We Wish You To Get Well Ash-Bash!!

    2. Ash-Bash
    3. anwiii

      anwiii

      i hope you get a cute nurse! :)

  20. Hi guys,I finally got my web hosting company setup (Link in my sig) I was wondering how would you get such a business popular, advertised. I have tried doing special offers and its really cheap.Can anyone help.
  21. I do like that logo very much, all the previews of topic under the text make the forum standout of a discussion board compared to the rest with speech marks etc. Very creative there soviet.
  22. Can I just say why the topic title says 'Official Xisto Irc' and the topic start says 'The un-official Xisto IRC is now up!'???
  23. Well this can be done by a script to stop a right click though a simple 'Print screen' button will get round this then you simply 'crop'.What I do to stop others using images of my graphics cards and PC's is add a faint copy right diagonally across the image. There is no way they will be able to get rid of this even if they try the image will look different and horrible.
  24. Yes its finally here the new iPhone 4! The new features: Facetime People have been dreaming about video calling for decades. The new iPhone 4 makes it a reality. This is certainly a more fun way to interact with others such as your kids when you are away from home. 2 Cameras The new iPhone 4 has 2 Cameras! One on the front which focuses on you and used for Facetime/Video Calling and one on the back to capture that amazing shot. You are able to switch between both in a video call so others can see where you are, This can be done at a tap of a button. Retina display The new display on the iPhone 4 now makes your iPhone look alive with a sharper and crisp look to it! Others You are able to do 2 things at once without closing the application I.E You could be watching a movie receive a text, reply and carry on watching the movie. Shoot your own movies in high definition. Capture impressive video even in low-light settings, thanks to the advanced backside illumination sensor and built-in LED light. Then edit and create your own mini-masterpiece right on iPhone 4 using the new iMovie app ? with Apple-designed themes, titles and transitions. It's coming soon to the App Store. Camera Back The new iPhone 4 is the always-with-you HD video camera. iMovie lets you make polished movies right on iPhone 4. 5 Megapixel Camera with LED Flash Apps On the new iPhone OS software you are able to organise apps into folders for fast access to your favourites. iBooks You are also able to change the home screen wallpaper without voiding your warranty with a Jail break. Get one-tap access to everything on your iPhone and change the wallpaper to match your mood. Voice The new iPhone has a Built-in noise suppression makes phone calls easier to hear. Well I don't know about new guys but I am going to be pre ordering the new iPhone on the 15th June and get it on the 24th June! These features sound amazing!
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.