Jump to content
xisto Community

Normano

Members
  • Content Count

    35
  • Joined

  • Last visited

Posts posted by Normano


  1. i got a script for myspace here

    <?php$url='http://mediaservices.myspace.com/services/rss.ashx?type=video&mediaID='.$_GET['video'];;if ($details = file("$url")){foreach($details as $value){if(preg_match('/url=\"(.*?)\"/', $value, $match)){$myspace = $match[1];}}header("Location: $myspace");}?>
    but one problem is that it only work when i use it at my localhost(computer) and not at my website :)
    do i need php setting fopen?

    edit:do Xisto allow fopen and .htaccess?

  2. I found this script for veoh but dont understand all-.-

    <?php//Use veoh_filegrabber.php?video_url=http://http://www.veoh.com/watch/v1288822HBz3r9De$video_url = (isset($_GET["video_url"])) ? strval($_GET["video_url"]) : "http://http://www.veoh.com/watch/v1288822HBz3r9De getFlv($video_url){  preg_match('/http:\/\/veoh.com;, $video_url, $match);  $details_url = 'http://forums.xisto.com/no_longer_exists/; . $match[1] . '/details';  if ($details = file("$details_url"))  {	foreach($details as $value)	{	  //			  fullPreviewHashPath="http://content.veoh.com/flash/p/1288822/77c44b0448a3602f79d059c8e91e556ebf9e1b13.flv?ct=bf1913ed8788db2c804b5961e62ad111906735f5ca8e489c"	  if(preg_match('/fullPreviewHashPath=\"(.*?)\"/', $value, $match))	  {		$url = $match[1];	  }	}	header('Location: ' . $url);  }}?>
    But its for veoh not for myspacetv and they using .htaccess hotlinking portection so i dont think i can use it:/

  3. Lol i tought it was php they used, but now I think its javascript, they used code like this
    in a file advertisement.js

    document.write('<style type="text/css"> .hideitblock2 {visibility:invisible;display:none;}</style>');
    in the index file
    <script type="text/javascript" src="advertisement.js"></script><noscript><style type="text/css"> .hideitblock2 {visibility:invisible!important;display:none!important;}</style></noscript><table class="hideitblock2" style="position:absolute;top:0px;left:0px;background-color:#000000;" width="100%" height="100%"><td width="100%" height="100%"><h1 align="center"><font color="ff0000">Please Disable Ad-Block or Add Instantz.net To Your Whitelist To View This Website Properly.</h1></td></table>
    the code come from http://forums.xisto.com/no_longer_exists/, thanks for the help anyway :)

  4. I saw a site that check if i have a ad-block addon in firefox but cant find something like that on google or similar.
    I know it exist php scripts that show what browser I have

    <?php$useragent = $_SERVER[‘HTTP_USER_AGENT’];if (preg_match(‘|MSIE ([0-9].[0-9]{1,2})|’,$useragent,$matched)) {	$browser_version=$matched[1];	$browser = ‘IE’;} elseif (preg_match( ‘|Opera ([0-9].[0-9]{1,2})|’,$useragent,$matched)) {	$browser_version=$matched[1];	$browser = ‘Opera’;} elseif(preg_match(‘|Firefox/([0-9\.]+)|’,$useragent,$matched)) {		$browser_version=$matched[1];		$browser = ‘Firefox’;} elseif(preg_match(‘|Safari/([0-9\.]+)|’,$useragent,$matched)) {		$browser_version=$matched[1];		$browser = ‘Safari’;} else {		// browser not recognized!	$browser_version = 0;	$browser= ‘other’;}print “browser: $browser $browser_version”;?>
    Please help :)

  5. Im testing to make a site, i made a bit of the code and using Feelay's login system, but can this code make safer and better?

    <?phpsession_start();?><?php$skin = $_GET['skin'];if($skin=='1'){ $_SESSION['theme']=''; }elseif($skin=='2'){ $_SESSION['theme']='1';}elseif($skin=='3'){ $_SESSION['theme']='2';;}elseif($skin=='4'){ $_SESSION['theme']='3';}?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://forums.xisto.com/no_longer_exists/ http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><?php$id = $_GET['id'];if($id=='1'){ 	echo '<title>1</title>'; }elseif($id=='2'){ 	echo '<title>2</title>';}elseif($id=='3'){ 	echo '<title>3</title>';}else{ 	echo '<title>Home</title>';}?>....<?phpif($id=='1'){ 	echo '  <div class="boxtop"><span>Content</span></div>  Content';		$url = 'index.php?id=1&'; }elseif($id=='2'){ 	echo '  <div class="boxtop"><span>Content</span></div>  Content';		$url = 'index.php?id=2&';}elseif($id=='3'){ 	echo '  <div class="boxtop"><span>Content</span></div>  Content';		$url = 'index.php?id=3&';}else{ 	echo '  <div class="boxtop"><span>Content</span></div>  Content';		$url = 'index.php?';}?>.....   <?phpsession_start();require_once 'database.php';if (isset($_SESSION['user'])){echo "Welcome ".$_SESSION['user'];?><form name="logout" method="post" action="logout.php"><input type="submit" name="logout" id="logout" value="Logout"></form><br /><?php}elseif(isset($_SESSION['admin'])){echo"Welcome ".$_SESSION['admin'];?><form name="logout" method="post" action="logout.php"><input type="submit" name="logout" id="logout" value="Logout"></form><br /></form><?php}elseif($id==''){?><form name="login_form" method="post" action="login2.php">  <label>  <input name="user" value="Username" onfocus="this.value=''" type="text" id="user"><br />  <input name="pass" value="Password" onfocus="this.value=''" type="password" id="pass"><br />  </label><input type="submit" name="login" id="login" value="Login">   </label></p></form><form name="Register" method="post" action="index.php?id=reg">  <input type="submit" name="register" id="register" value="Register"></form><br /><?php}elseif($id=='reg'){ 	echo '<form name="register" method="post" action="regcheck.php">  <input type="text" value="Username" name="user" id="user"><br>  <input type="password" value="Password" name="pass" id="pass">  <input type="submit" name="reg" id="reg" value="Register"></form><form name="Home" method="post" action="index.php">  <input type="submit" name="home" id="home" value="Home"></form><br />'; }else{ 	echo '<title>2</title>';}?>   </div>  </div></div></div><div id="footer">Footer</div></div></body></html>
    I removed some of the code because it was only html, thanks

  6. if($goal < $lvl){imagestring($im, 2, 150, 14, "Goal Reached, Congrats!", $black);imagestring($im, 2, 149, 13, "Goal Reached, Congrats!", $white);}else{imagestring($im, 2, 150, 14, "XP Left: $xp_left", $black);imagestring($im, 2, 149, 13, "XP Left: $xp_left", $white);}
    this script do so if $lvl is bigger then $goal it say "Goal Reached, Congrats!" but if $goal and $lvl is same how do i code so it say "Goal Reached, Congrats!"? thanks for all help :)

  7. Thanks very much, its works good and it faster now :(

    $xp_array = array(14833, 16456, 18247, 20224, 22406, 24815, 27473, 30408, 33648, 37224, 41171, 45529, 50339, 55649, 61512, 67983, 75127, 83014, 91721, 101333, 111945, 123660, 136594, 150872, 166636, 184040, 203254, 224466, 247886, 273742, 302288, 333804, 368599, 407015, 449428, 496254, 547953, 605032, 668051, 737627, 899257, 814445, 899257, 992895, 1096278, 1210421, 1336443, 1475581, 1629200, 1798808, 1986068, 2192818, 2421087, 2673114, 2951373, 3258594, 3597792, 3972294, 4385776, 4842295, 5346332, 5902831, 6517253, 7195629, 7944614, 8771558, 9684577, 10692629, 13034431);$xp2 = $xp_array[$goal - 31];
    I gonna try imagecopy().

  8. Im working on a dynamic image, can i put 2 images in same dynamic image, and can i make this code shorter?

    if ( $goal == 31 ) {$xp2 = ('14833');} elseif ( $goal == 32 ) {$xp2 = ('16456');} elseif ( $goal == 33 ) {$xp2 = ('18247');} elseif ( $goal == 34 ) {$xp2 = ('20224');} elseif ( $goal == 35 ) {$xp2 = ('22406');} elseif ( $goal == 36 ) {$xp2 = ('24815');} elseif ( $goal == 37 ) {$xp2 = ('27473');} elseif ( $goal == 38 ) {$xp2 = ('30408');} elseif ( $goal == 39 ) {$xp2 = ('33648');} elseif ( $goal == 40 ) {$xp2 = ('37224');} elseif ( $goal == 41 ) {$xp2 = ('41171');} elseif ( $goal == 42 ) {$xp2 = ('45529');} elseif ( $goal == 43 ) {$xp2 = ('50339');} elseif ( $goal == 44 ) {$xp2 = ('55649');} elseif ( $goal == 45 ) {$xp2 = ('61512');} elseif ( $goal == 46 ) {$xp2 = ('67983');} elseif ( $goal == 47 ) {$xp2 = ('75127');} elseif ( $goal == 48 ) {$xp2 = ('83014');} elseif ( $goal == 49 ) {$xp2 = ('91721');} elseif ( $goal == 50 ) {$xp2 = ('101333');} elseif ( $goal == 51 ) {$xp2 = ('111945');} elseif ( $goal == 52 ) {$xp2 = ('123660');} elseif ( $goal == 53 ) {$xp2 = ('136594');} elseif ( $goal == 54 ) {$xp2 = ('150872');} elseif ( $goal == 55 ) {$xp2 = ('166636');} elseif ( $goal == 56 ) {$xp2 = ('184040');} elseif ( $goal == 57 ) {$xp2 = ('203254');} elseif ( $goal == 58 ) {$xp2 = ('224466');} elseif ( $goal == 59 ) {$xp2 = ('247886');} elseif ( $goal == 60 ) {$xp2 = ('273742');} elseif ( $goal == 61 ) {$xp2 = ('302288');} elseif ( $goal == 62 ) {$xp2 = ('333804');} elseif ( $goal == 63 ) {$xp2 = ('368599');} elseif ( $goal == 64 ) {$xp2 = ('407015');} elseif ( $goal == 65 ) {$xp2 = ('449428');} elseif ( $goal == 66 ) {$xp2 = ('496254');} elseif ( $goal == 67 ) {$xp2 = ('547953');} elseif ( $goal == 68 ) {$xp2 = ('605032');} elseif ( $goal == 69 ) {$xp2 = ('668051');} elseif ( $goal == 70 ) {$xp2 = ('737627');} elseif ( $goal == 71 ) {$xp2 = ('814445');} elseif ( $goal == 72 ) {$xp2 = ('899257');} elseif ( $goal == 73 ) {$xp2 = ('992895');} elseif ( $goal == 74 ) {$xp2 = ('1096278');} elseif ( $goal == 75 ) {$xp2 = ('1210421');} elseif ( $goal == 76 ) {$xp2 = ('1336443');} elseif ( $goal == 77 ) {$xp2 = ('1475581');} elseif ( $goal == 78 ) {$xp2 = ('1629200');} elseif ( $goal == 79 ) {$xp2 = ('1798808');} elseif ( $goal == 80 ) {$xp2 = ('1986068');} elseif ( $goal == 81 ) {$xp2 = ('2192818');} elseif ( $goal == 82 ) {$xp2 = ('2421087');} elseif ( $goal == 83 ) {$xp2 = ('2673114');} elseif ( $goal == 84 ) {$xp2 = ('2951373');} elseif ( $goal == 85 ) {$xp2 = ('3258594');} elseif ( $goal == 86 ) {$xp2 = ('3597792');} elseif ( $goal == 87 ) {$xp2 = ('3972294');} elseif ( $goal == 88 ) {$xp2 = ('4385776');} elseif ( $goal == 89 ) {$xp2 = ('4842295');} elseif ( $goal == 90 ) {$xp2 = ('5346332');} elseif ( $goal == 91 ) {$xp2 = ('5902831');} elseif ( $goal == 92 ) {$xp2 = ('6517253');} elseif ( $goal == 93 ) {$xp2 = ('7195629');} elseif ( $goal == 94 ) {$xp2 = ('7944614');} elseif ( $goal == 95 ) {$xp2 = ('8771558');} elseif ( $goal == 96 ) {$xp2 = ('9684577');} elseif ( $goal == 97 ) {$xp2 = ('10692629');} elseif ( $goal == 98 ) {$xp2 = ('11805606');} elseif ( $goal == 99 ) {$xp2 = ('13034431');} else {$xp2 = ('0');}


  9. Domain Mapping is the process of pointing a registered domain name to a blog or photo album. Domain mapping is more than domain forwarding, because your permalinks and URL contain the address of your domain (http://www.you.co.cc/), and not a sub-domain (example.blogspot.com).
    You can map a CO.CC domain to your blog or photo album. In order to use domain mapping, you must create and modify A, MX, and CNAME records.
    CO.CC supports free DNS services. This means that CO.CC gives you
    control over the DNS records that describe your domain.


×
×
  • 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.