LavaSCRIPT L9 Tamagochi, smile generator
Collapse
X
-
Ok. Kaboom, i found that, sorry! Hehehe, thanx dudes, im trying to make wap community. .
Leave a comment:
-
@ wapmaster to solve that error create a flag in flag folder unknown.png or unknown.gif o kaya Find ip_files script here.
Leave a comment:
-
Sory subzero. I forgot to upload ip_files/ i will upload later or search here. All code of lucky9 is in chat.php simple read the script given sql already posted.
Leave a comment:
-
All of the stuffs were given...its time for you to do your job.,....solve it on your own
Leave a comment:
-
Warning: include(ip_files/117.php) [function.include]: failed to open stream: No such file or directory in /home/........../public_html/web/core.php on line 319
Warning: include() [function.include]: Failed opening 'ip_files/117.php' for inclusion (include_path='.:/usr/lib/php') in /home/........./public_html/web/core.php on line 319
Warning: Invalid argument supplied for foreach() in /home/........./public_html/web/core.php on line 321
plzzz help somthing missing like ip_files ?????Last edited by wapmaster2; 27.11.09, 12:35.
Leave a comment:
-
[QUOTE=arg0s12;43160]***use english on forums***
Code:CREATE TABLE IF NOT EXISTS `ibwf_settings` ( `id` int(10) NOT NULL auto_increment, `name` varchar(30) NOT NULL default '', `value` text NOT NULL, `value2` varchar(50) NOT NULL, `value3` varchar(50) NOT NULL, `title` varchar(250) NOT NULL, `sino` int(100) NOT NULL default '0', PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=17 ; -- -- Dumping data for table `ibwf_settings` -- INSERT INTO `ibwf_settings` (`id`, `name`, `value`, `value2`, `value3`, `title`, `sino`) VALUES (1, 'sesexp', '20', '', '', '', 0), (2, 'Sat 12 Sep 2009 - 22:02', '38', '', '', '', 0), (3, '4ummsg', 'welcome', '', '', '', 0), (16, 'texttwist', '', '', '', '', 166), (4, 'Counter', '174840', '', '', '', 0), (5, 'pmaf', '30', '', '', '', 0), (6, 'reg', '0', '', '', '', 0), (7, 'fview', '0', '', '', '', 0), (8, 'lastbpm', '2009-10-14', '', '', '', 0), (9, 'sitename', 'WapAdik.NeT', '', '', '', 0), (10, 'vldtn', '0', '', '', '', 0), (11, 'online', '0', '', '', '', 0), (12, 'qmsg', '', '', '', '', 152), (13, 'chaf', '20', '', '', '', 0), (14, 'resetsht', '1251276469', '', '', '', 0), (15, 'votefor', 'Fun Sign', '0', 'hehehehe', '', 0);
Last edited by metulj; 28.11.09, 05:01.
Leave a comment:
-
THANKS kabooms !
what am searching these day it is......
Thanks a lot buddy am trying.......................
Leave a comment:
-
-
where is countries.php ?????Originally posted by kabooms View PostCountry Flags
[/code]
Usage poh ito
Code:Adding Country Name and Flags in User profile under action="viewuser" $uipadd = mysql_fetch_array(mysql_query("SELECT ipadd FROM ibwf_users WHERE id='".$who."'")); echo "Ip: $uipadd[0]<br/>"; $uipadd = mysql_fetch_array(mysql_query("SELECT ipadd FROM ibwf_users WHERE id='".$who."'")); $IPaddress=$uipadd[0]; $two_letter_country_code=iptocountry($IPaddress); echo "Country: <img src=\"flags/$two_letter_country_code.png\" alt=\"*\" /> "; include("countries.php"); $country_name=$countries[$two_letter_country_code][1]; echo "$country_name <br/>"; Detect Visitor Country name and Flags $hulikanyahaha=$_SERVER['HTTP_USER_AGENT']; $two_letter_country_code=iptocountry($hulikanyahaha); echo "<img src=\"flags/$two_letter_country_code.png\" alt=\"*\" />"; include("countries.php"); $country_name=$countries[$two_letter_country_code][1]; echo "$country_name ";
Leave a comment:
-
-
Image Resize
first Create Folder, name it "cute" with out qoutes okey!!
timthumb.php usage example random photo in lavalair
usage
w= Width
h= Hight
zc= zoom crop
Code:$randomm = mysql_fetch_array(mysql_query("SELECT itemurl, sex FROM ph_bazzztord_gallery WHERE id ORDER BY RAND() LIMIT 1")); echo "<p align=\"center\">"; echo "Random Photo<br/>"; echo "<img src=\"timthumb.php?src=$randomm[0]&w=45&h=45&zc=1\" alt=\"$randomm[1]\"/>"; echo "</p>";
next is img.php usage example random photo in lavalair
r = Width and Hight
Code:$randomm = mysql_fetch_array(mysql_query("SELECT itemurl, sex FROM ph_bazzztord_gallery WHERE id ORDER BY RAND() LIMIT 1")); echo "<p align=\"center\">"; echo "Random Photo<br/>"; echo "<img src=\"img.php?src=$randomm[0]&r=50\" alt=\"$randomm[1]\"/>"; echo "</p>";Attached FilesLast edited by kabooms; 27.11.09, 09:14.
Leave a comment:
-
Country Flags
adding flags at online list
my online list
Code:else if($action=="online") { $uid =getuid_sid($sid); if($uid>0) { addonline(getuid_sid($sid),"Online List","index.php?action=$action"); $onli = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ph_bazzztord_online")); } echo "<card id=\"chat\" title=\"Online list $onli[0]\" ontimer=\"index.php?action=online&time="; echo date('dmHis'); echo "&sid=$sid&page=$page"; echo "\">"; echo "<timer value=\"200\"/>"; //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $num_items = getnumonline(); //changable $items_per_page= 15; $num_pages = ceil($num_items/$items_per_page); if($page>$num_pages)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; /////////changable sql $sql = "SELECT a.name, a.perm, b.userid FROM ph_bazzztord_users a INNER JOIN ph_bazzztord_online b ON a.id = b.userid ORDER BY a.perm DESC, a.plusses DESC, a.name LIMIT $limit_start, $items_per_page "; echo "<p align=\"center\">"; $items = mysql_query($sql); echo mysql_error(); while ($item = mysql_fetch_array($items)) { $lnk = "<a href=\"index.php?action=viewuser&who=$item[2]&sid=$sid&browse?\">$item[0]</a>"; if($item[1]==1) { $item[1] = "<b><a href=\"index.php?action=viewuser&who=$item[2]&sid=$sid&browse?\">• $item[0] • </a></b>"; }else if($item[1]==2) { $item[1] = "<b><a href=\"index.php?action=viewuser&who=$item[2]&sid=$sid&browse?\">* $item[0] *</a></b>"; }else if($item[1]==3) { $item[1] = "<b><a href=\"index.php?action=viewuser&who=$item[2]&sid=$sid&browse?\">» $item[0] «</a></b>"; }else if($item[1]==4) { $item[1] = "<b><a href=\"index.php?action=viewuser&who=$item[2]&sid=$sid&browse?\">» $item[0] «</a></b>"; }else if($item[1]==0) { $item[1] = "$lnk"; } $uipadd = mysql_fetch_array(mysql_query("SELECT ipadd FROM ph_bazzztord_users WHERE id='".$item[2]."'")); $IPaddress=$uipadd[0]; $two_letter_country_code=iptocountry($IPaddress); echo "<img src=\"../flags/$two_letter_country_code.png\" alt=\"*\"/>"; echo "$item[1] <br/>"; } echo "</p>"; echo "<p align=\"center\">"; if($page>1) { $ppage = $page-1; echo "<a href=\"index.php?action=online&page=$ppage&sid=$sid&browse?\">prev</a> "; } if($page<$num_pages) { $npage = $page+1; echo "<a href=\"index.php?action=online&page=$npage&sid=$sid&browse?\">next</a>"; } echo "<br/>$page/$num_pages<br/>"; if($num_pages>2) { echo getjumper($action, $sid,"index"); } echo "</p>"; ////// UNTILL HERE >> echo "<p align=\"center\">"; $uid =getuid_sid($sid); if($uid>0) { echo "<a href=\"index.php?action=main&sid=$sid\">main menu</a>"; }else{ echo "<a href=\"index.php\">main menu</a>"; } echo "</p>"; echo "</card>"; }
in core.php add this code
Code://////////////////////Country function iptocountry($ip) { $numbers = preg_split( "/\./", $ip); include("ip_files/".$numbers[0].".php"); $code=($numbers[0] * 16777216) + ($numbers[1] * 65536) + ($numbers[2] * 256) + ($numbers[3]); foreach($ranges as $key => $value){ if($key<=$code){ if($ranges[$key][0]>=$code){$two_letter_country_code=$ranges[$key][1];break;} } } if ($two_letter_country_code==""){$two_letter_country_code="unkown";} return $two_letter_country_code; } function country_name($two_letter_country_code) { include("ip_files/countries.php"); $country_name=$countries[$two_letter_country_code][0]; return $country_name; } function show_flag($two_letter_country_code) { $file_to_check='./flags/'.strtolower($two_letter_country_code).'.png'; if (file_exists($file_to_check)){ $FLAG= '<img src="'.$file_to_check.'" alt="'.$two_letter_country_code.'"/>'; }else{ $FLAG= '<img src="./flags/noflag.png" alt="'.$two_letter_country_code.'"/>'; } return $FLAG; }
Usage poh ito
Code:Adding Country Name and Flags in User profile under action="viewuser" $uipadd = mysql_fetch_array(mysql_query("SELECT ipadd FROM ibwf_users WHERE id='".$who."'")); echo "Ip: $uipadd[0]<br/>"; $uipadd = mysql_fetch_array(mysql_query("SELECT ipadd FROM ibwf_users WHERE id='".$who."'")); $IPaddress=$uipadd[0]; $two_letter_country_code=iptocountry($IPaddress); echo "Country: <img src=\"flags/$two_letter_country_code.png\" alt=\"*\" /> "; include("countries.php"); $country_name=$countries[$two_letter_country_code][1]; echo "$country_name <br/>"; Detect Visitor Country name and Flags $hulikanyahaha=$_SERVER['HTTP_USER_AGENT']; $two_letter_country_code=iptocountry($hulikanyahaha); echo "<img src=\"flags/$two_letter_country_code.png\" alt=\"*\" />"; include("countries.php"); $country_name=$countries[$two_letter_country_code][1]; echo "$country_name ";Attached FilesLast edited by kabooms; 27.11.09, 09:17.
Leave a comment:
here it is sorry i forgot
Leave a comment: