NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming > CODE
Reload this Page Image Hosting Script

CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here.

Advanced Search
7 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 04-28-2006, 11:08 AM THREAD STARTER               #1 (permalink)
onArcade.com
 
hanz's Avatar
Join Date: Jul 2004
Location: Estonia
Posts: 1,224
hanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of light
 


Animal Rescue Animal Rescue Animal Rescue Animal Cruelty

Lightbulb Image Hosting Script


Some time ago I bought image hosting script from http://www.scriptsnmore.com/ that came with reseller rights, now I think it is time to resell it to all of my NamePros friends for free . Sorry I don't have any demo set up, but I can assure you that this is one very nice script

Features:
+ Support paypal upgrades - Based on credits = uploads
+ Syndication Script - Allows others to add upload script on their website to redirect to your site after upload is completed
+ Unlimited "secondary" servers - Store images in many locations to keep load down on main server
+ Thumbnail creation for gif, jpg, jpeg using GD2
+ Thumbnail creation for bmp using imagemagick
+ Dimensions and size shown on all thumbnails created
+ Bandwidth tracking
+ IP banning
+ User registration
+ Applet uploading for registered members (Allows multiple uploads at one time)
+ Upload images in zip, then script unzips the zip file (For registered members only)
+ Deletes images not clicked x amount of times using cron job
+ Advertisement abilities when linking to image
+ Supports swf uploading
+ E-mail links to requested e-mail address
+ Tracks uploads based on IP address
+ Supports English and Chinese languages
+ Fully customizable with css, header and footer files
+ Newsletter abilities to registered members

Have fun!
Attached Files
File Type: zip ImageHostingScript.zip (471.1 KB, 241 views)
Last edited by SecondVersion; 06-13-2008 at 05:23 AM. Reason: Uploaded New Zip for everyone, appears attachment was corrupt.
hanz is offline  
Old 04-28-2006, 11:20 AM   #2 (permalink)
Account Suspended
Join Date: Mar 2005
Location: East Coast USA
Posts: 840
Richieboy67 is a glorious beacon of lightRichieboy67 is a glorious beacon of lightRichieboy67 is a glorious beacon of lightRichieboy67 is a glorious beacon of lightRichieboy67 is a glorious beacon of light
 



Sell it for free!!!! lol I like that price...............alot!!!!

Thanks, I just downloaded it!
Richieboy67 is offline  
Old 04-28-2006, 02:58 PM   #3 (permalink)
Senior Member
Join Date: Nov 2005
Posts: 1,675
GFX^^ is a splendid one to beholdGFX^^ is a splendid one to beholdGFX^^ is a splendid one to beholdGFX^^ is a splendid one to beholdGFX^^ is a splendid one to beholdGFX^^ is a splendid one to beholdGFX^^ is a splendid one to beholdGFX^^ is a splendid one to behold
 



which version it is?
GFX^^ is offline  
Old 04-28-2006, 05:07 PM   #4 (permalink)
NamePros Member
Join Date: Apr 2006
Location: NY
Posts: 48
sleepingawake is an unknown quantity at this point
 



Originally Posted by GFX^^
which version it is?
i second that
sleepingawake is offline  
Old 04-28-2006, 10:29 PM THREAD STARTER               #5 (permalink)
onArcade.com
 
hanz's Avatar
Join Date: Jul 2004
Location: Estonia
Posts: 1,224
hanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of light
 


Animal Rescue Animal Rescue Animal Rescue Animal Cruelty
Originally Posted by GFX^^
which version it is?
I guess the latest as this script hasn't been developed any further
hanz is offline  
Old 04-29-2006, 08:19 AM   #6 (permalink)
NamePros Expert
 
Tippy's Avatar
Join Date: May 2003
Location: Montreal
Posts: 7,098
Tippy has a reputation beyond reputeTippy has a reputation beyond reputeTippy has a reputation beyond reputeTippy has a reputation beyond reputeTippy has a reputation beyond reputeTippy has a reputation beyond reputeTippy has a reputation beyond reputeTippy has a reputation beyond reputeTippy has a reputation beyond reputeTippy has a reputation beyond reputeTippy has a reputation beyond repute
 



Thanks for the script, I'm having a small problem uploading the image sql file... Error Unknown Character Set " anyone have an idea of how to fix this or what it should be?

Thanks,

Mike
Tippy is offline  
Old 04-29-2006, 12:28 PM   #7 (permalink)
Account Suspended
Join Date: Oct 2005
Location: United Kingdom
Posts: 1,554
NetworkTown.Net is just really niceNetworkTown.Net is just really niceNetworkTown.Net is just really niceNetworkTown.Net is just really nice
 



I keep getting FATAL ERROR: Connection to database server failed. what do i do?
Last edited by gameztown; 04-29-2006 at 12:39 PM.
NetworkTown.Net is offline  
Old 04-29-2006, 01:23 PM   #8 (permalink)
Account Suspended
Join Date: Jan 2006
Posts: 459
wvccboy is a jewel in the roughwvccboy is a jewel in the roughwvccboy is a jewel in the rough
 



Did you read the README file?
wvccboy is offline  
Old 04-30-2006, 05:22 AM   #9 (permalink)
Account Suspended
Join Date: Oct 2005
Location: United Kingdom
Posts: 1,554
NetworkTown.Net is just really niceNetworkTown.Net is just really niceNetworkTown.Net is just really niceNetworkTown.Net is just really nice
 



Originally Posted by wvccboy
Did you read the README file?
Yes, i am running on a reseller account.
NetworkTown.Net is offline  
Old 04-30-2006, 06:07 AM THREAD STARTER               #10 (permalink)
onArcade.com
 
hanz's Avatar
Join Date: Jul 2004
Location: Estonia
Posts: 1,224
hanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of light
 


Animal Rescue Animal Rescue Animal Rescue Animal Cruelty
Originally Posted by Tippy
Thanks for the script, I'm having a small problem uploading the image sql file... Error Unknown Character Set " anyone have an idea of how to fix this or what it should be?
????: NamePros.com http://www.namepros.com/code/191933-image-hosting-script.html

Thanks,

Mike
hmm... yeah, I have attached new image.txt file, this should work

Originally Posted by gameztown
Yes, i am running on a reseller account.
did you edit config.php file?
Attached Files
File Type: txt image.txt (6.8 KB, 180 views)
hanz is offline  
Old 04-30-2006, 10:47 AM   #11 (permalink)
Account Suspended
Join Date: Oct 2005
Location: United Kingdom
Posts: 1,554
NetworkTown.Net is just really niceNetworkTown.Net is just really niceNetworkTown.Net is just really niceNetworkTown.Net is just really nice
 



Originally Posted by hanz
hmm... yeah, I have attached new image.txt file, this should work


did you edit config.php file?
Yep i edited config.php and i ran the sql file too.
NetworkTown.Net is offline  
Old 04-30-2006, 11:06 AM   #12 (permalink)
Senior Member
 
RickM's Avatar
Join Date: Sep 2005
Location: Herts, UK
Posts: 3,806
RickM has a brilliant futureRickM has a brilliant futureRickM has a brilliant futureRickM has a brilliant futureRickM has a brilliant futureRickM has a brilliant futureRickM has a brilliant futureRickM has a brilliant futureRickM has a brilliant futureRickM has a brilliant futureRickM has a brilliant future
 


Cancer Survivorship Save The Children Save The Children Cancer Animal Cruelty Child Abuse Cancer Survivorship 9/11/01 :: Never Forget Animal Cruelty Child Abuse Animal Rescue Animal Cruelty Protect Our Planet Protect Our Planet Protect Our Planet Animal Cruelty Save a Life
The script was developed furthur by yabsoft...the origional creator.

I also bought it from scriptsandmore ages ago, however its extreamly buggy.
__________________
Disney World Fans - Mobile Apps for your WDW Vacation!
WSDReg - Affordable Domain Registration. Serving NP members since 2006!

Hotel Site Script - 15% Discount for NP members with code 'NPROS'
RickM is offline  
Old 04-30-2006, 11:34 PM THREAD STARTER               #13 (permalink)
onArcade.com
 
hanz's Avatar
Join Date: Jul 2004
Location: Estonia
Posts: 1,224
hanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of light
 


Animal Rescue Animal Rescue Animal Rescue Animal Cruelty
Originally Posted by gameztown
Yep i edited config.php and i ran the sql file too.
Sorry! Then I don't know what could be wrong.


Originally Posted by rmwebs
The script was developed furthur by yabsoft...the origional creator.
????: NamePros.com http://www.namepros.com/showthread.php?t=191933

I also bought it from scriptsandmore ages ago, however its extreamly buggy.
Actually this script was stole by yabsoft (the orginal coder)
hanz is offline  
Old 05-05-2006, 03:32 AM   #14 (permalink)
NamePros Member
Join Date: Sep 2004
Posts: 38
yabsoft is an unknown quantity at this point
 



The more fact about this issue:
Quote:
Recently,i check the visiters logs and found lots of people are from scriptsnmore.com.Just as you have read on his site,he say lots of bad words to me, which stayed there for 2 months.
At the beginning,i simplily ignore this,but gradutliy,i realeased the reputation on the net is important for me and my site. The key is that lots of people may mistake me by his partial word and fact,althrougth i believe anyone has own idea,not simplily followed someone. So this is the reason why i make such page for you

Topic By me at WHT: (This is a long details,recommend you read this carefully) View [http://www.webhostingtalk.com/showth...readid=429436]
Topic By me at digitalpoint.com: (Legal Issues ) Viewhttp://forums.digitalpoint.com/showthread.php?t=23395
????: NamePros.com http://www.namepros.com/showthread.php?t=191933
Topic By me at sitepoint.com: (Legal Issues ) View http://www.sitepoint.com/forums/showthread.php?t=286763
Topic By eMax at scritplance.com: View[http://forum.scriptlance.com/showthread.php?t=356
http://www.yabsoft.com/scriptsnmore.php

At fact the owner of scriptsnmore.com want to sell his site earliy:
http://webhostingtalk.com/showthread...t=scriptsnmore
yabsoft is offline  
Old 05-05-2006, 05:51 AM THREAD STARTER               #15 (permalink)
onArcade.com
 
hanz's Avatar
Join Date: Jul 2004
Location: Estonia
Posts: 1,224
hanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of lighthanz is a glorious beacon of light
 


Animal Rescue Animal Rescue Animal Rescue Animal Cruelty
Originally Posted by yabsoft
The more fact about this issue:


http://www.yabsoft.com/scriptsnmore.php

At fact the owner of scriptsnmore.com want to sell his site earliy:
http://webhostingtalk.com/showthread...t=scriptsnmore
There is no need for any more facts - you were hired to make a custom image hosting script and when you saw that the person who hired you was making money you went greedy and decided to scam him.
hanz is offline  
Old 05-07-2006, 10:10 PM   #16 (permalink)
NamePros Member
Join Date: Sep 2004
Posts: 38
yabsoft is an unknown quantity at this point
 



Haha

But anyway I must point a secure hole in this old script,And I don't recommend you use it to build a serious image hosting site.Because it has lots of bugs not fixed.

I don't want you to wonder I am trying to stop others to download script and use it,so I post the secure hole here:
After installation,you can use
Code:
' or 1 or pass='
as username to login in admin apnel,althrough your username is not the one!
????: NamePros.com http://www.namepros.com/showthread.php?t=191933

Solution:
Modify the login.php,line 13:
Code:
$db->setQuery("select * from setting where admin='$input[user]' and pass='$input[pass]'");
Change to:
Code:
$db->setQuery("select * from setting where admin='".mysql_escape_string($input[user])."' and pass='".mysql_escape_string($input[pass])."'");
If you want to use it,I recomend you apply the changes first!
yabsoft is offline  
Old 05-08-2006, 01:23 AM   #17 (permalink)
Tech Support
Join Date: Mar 2005
Posts: 4,944
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
mysql_escape_string is deprecated, I'd rather use something like:
PHP Code:
<?php
????: NamePros.com http://www.namepros.com/showthread.php?t=191933

function make_safe($value)
{
  
$value stripslashes($value);
  
$value = (function_exists('mysql_real_escape_string')) ? mysql_real_escape_string($value) : addslashes($value);

  return 
$value;
}

?>
.
PHP Code:
$db->setQuery("select * from setting where admin='".make_safe($input['user'])."' and pass='".make_safe($input['pass'])."'"); 
Eric is offline  
Old 05-09-2006, 04:29 AM   #18 (permalink)
NamePros Member
Join Date: Sep 2004
Posts: 38
yabsoft is an unknown quantity at this point
 



Yea,'mysql_real_escape_string' is better then 'mysql_escape_string'.

Thanks for your advance!

Originally Posted by SecondVersion
mysql_escape_string is deprecated, I'd rather use something like:
PHP Code:
<?php

function make_safe($value)
????: NamePros.com http://www.namepros.com/showthread.php?t=191933
{
  
$value stripslashes($value);
  
$value = (function_exists('mysql_real_escape_string')) ? mysql_real_escape_string($value) : addslashes($value);

  return 
$value;
}

?>
.
PHP Code:
$db->setQuery("select * from setting where admin='".make_safe($input['user'])."' and pass='".make_safe($input['pass'])."'"); 
????: NamePros.com http://www.namepros.com/showthread.php?t=191933
yabsoft is offline  
Old 05-09-2006, 10:24 AM   #19 (permalink)
NamePros Member
Join Date: Feb 2005
Location: UK, London
Posts: 32
Bazza The Greek is an unknown quantity at this point
 



I am also getting FATAL ERROR: Connection to database server failed.

Anyone know what to do?
Bazza The Greek is offline  
Old 05-09-2006, 10:47 AM   #20 (permalink)
NamePros Member
 
Wybe's Avatar
Join Date: Nov 2005
Location: the Netherlands
Posts: 127
Wybe is on a distinguished road
 



Thanks for sharing!
__________________
accepts paypal and cookies
Wybe is offline  
Old 05-09-2006, 11:57 AM   #21 (permalink)
NamePros Regular
 
max99's Avatar
Join Date: Mar 2006
Location: Manchester
Posts: 423
max99 is an unknown quantity at this point
 


Cancer
How do you change the code for adsense, which file to edit, as want to add my adsense code.
max99 is offline  
Old 08-09-2006, 05:59 AM   #22 (permalink)
 
kleszcz's Avatar
Join Date: Jul 2006
Posts: 4,609
kleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatness
 



Marrow Donor Program Multiple Sclerosis
Thanks giving away for free. I will try later.
kleszcz is offline  
Old 08-09-2006, 11:16 AM   #23 (permalink)
Senior Member
 
Camron's Avatar
Join Date: Jan 2006
Location: Portland, Oregon
Posts: 2,100
Camron has much to be proud ofCamron has much to be proud ofCamron has much to be proud ofCamron has much to be proud ofCamron has much to be proud ofCamron has much to be proud ofCamron has much to be proud ofCamron has much to be proud ofCamron has much to be proud of
 



VA Tech Memorial 9/11/01 :: Never Forget Cancer Survivorship Child Abuse
Can we resell it? I assume no
__________________
HostingFuze.com Premium Master Reseller Services | 99.9% Uptime Guaranteed SLA | Starting at $4.95/mo
Basic Reseller Hosting @ HostFz.com - Services starting as low as $1.95/mo!
Camron is offline  
Old 09-10-2006, 11:21 AM   #24 (permalink)
First Time Poster!
Join Date: Sep 2006
Posts: 1
gamer76 is an unknown quantity at this point
 



thanx for this...

Edit: This script isn't actually very easy to edit using *.css sheets. The style is actually located in another file... i have changed that, so now i have a ccs sheet... adding a logo is a nightmare... anther solution also came then... and finally i don't think the guy really cares what we do with the script so, hey.. i think we can do want we want to it!!! woo hoo!!!
Last edited by gamer76; 09-12-2006 at 10:12 AM.
gamer76 is offline  
Old 09-22-2006, 08:08 PM   #25 (permalink)
New Member
Join Date: May 2006
Posts: 7
chinamv is an unknown quantity at this point
 



why i can not login admin area use admin:123 ?

did your guys can login to admin area? i already import image.sql and website frontside working.

is that php or mysql verison problem? my php 5.1.2 and mysql 5 from dreamhost

i changed to php 4.1.2,i can login now,

but when uploaded a image,it displayed url like "http://www.cmusers.com/show.php/2_26107273aa2538070e0ec02.jpg"

the image can not be displayed. anyone help me plz?
chinamv is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 02:42 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger