+ Reply to Thread
Results 1 to 9 of 9

Thread: bryon help please

  1. #1
    Derek is offline Community Support Force Derek is a splendid one to beholdDerek is a splendid one to behold
    Join Date
    May 2005
    Location
    cossacks
    Posts
    6,354

    bryon help please

    i did the PHP sig but it doesnt work i get an erro can u help me!

    http://www.collide.elementfx.com/sig.php


    thats the link

  2. #2
    Derek is offline Community Support Force Derek is a splendid one to beholdDerek is a splendid one to behold
    Join Date
    May 2005
    Location
    cossacks
    Posts
    6,354

    Re: bryon help please

    heres my sig.php code



    PHP Code:
    <?php 
    include('functionsVariables.inc.php'); 
     
    ############################################ 
    ## Set variables for the Winamp song file ## 
    ############################################ 
    $song $_GET['song']; 
    $filename 'winamp.txt'
    $maxchar 50
    $mtime filemtime($filename); 
    $timestamp time(); 
    $timeout $timestamp 480
    ################################################### 
    ## Check if a song hasn't been played in a while ## 
    ################################################### 
    if ($mtime $timeout) { 
    if (@
    implode('',@file($filename)) != "Winamp is currently turned off.") { 
    $handle fopen($filename'w'); 
    fwrite($handle"Winamp is currently off."); 
    fclose($handle); 


    ############################################################################ 
    ## The Winamp info sender sends the song to: ## 
    ## nedren.com/signature/?hiddensongnameinurl=[b]Song Name Here[/b] ## 
    ## This script then records it in a file if that GET['value'] is present. ## 
    ############################################################################ 
    if(isset($_GET['hiddensongnameinurl'])) { 
    $playsHandle fopen('songPlays.txt'"r"); 
    $songPlays fread($playsHandlefilesize('songPlays.txt')); 
    fclose($playsHandle); 
    $songPlays++; 
    $playsHandle fopen('songPlays.txt'"w"); 
    fwrite($playsHandle$songPlays); 
    @
    fclose($playsHande); 
    if(
    is_writable($filename)) { 
    if(!
    $handle fopen($filename'w')) { 
    echo 
    '<b>Error:</b> Cannot write to file Winamp text file.'
    die(); 

    if(!
    fwrite($handlestripslashes($song))) { 
    echo 
    '<b>Error:</b> Cannot write to file Winamp text file.'
    die(); 

    fclose($handle); 

    ############################################# 
    ## Else if song is not being sent/recorded ## 
    ############################################# 
    } else { 
    ######################################## 
    ## Get the number of total song plays ## 
    ######################################## 
    $playsHandle fopen('songPlays.txt'"r"); 
    $songPlays fread($playsHandlefilesize('songPlays.txt')); 
    fclose($playsHandle); 
    ############################################## 
    ## Load the server's uptime and load values ## 
    ############################################## 
    $loadHandle fopen('load.txt'"r"); 
    $serverLoad fread($loadHandlefilesize('load.txt')); 
    if (!
    $serverLoad) { 
    $serverLoad '[Down]'
    } else { 
    fclose($loadHandle); 

     
    $uptimeHandle fopen('uptime.txt'"r"); 
    $serverUptime fread($uptimeHandlefilesize('uptime.txt')); 
    if (!
    $serverUptime) { 
    $serverUptime '[Down]'
    } else { 
    fclose($uptimeHandle); 

    // Clean up the server's uptime. It's returned in a weird format, so yea.. :-/ 
    $serverUptime str_replace(',''-'$serverUptime); 
    $serverUptime str_replace(' '' '$serverUptime); 
    $serverUptime str_replace('-'' -'$serverUptime); 
    // $serverUptime = str_replace('- ', '-', $serverUptime); 
    ########################### 
    ## Get whatpulse shiet. ## 
    ########################### 
    $mystats UserStats(172562); // Whatpulse function 
    ######################## 
    ## Make actual image ## 
    ######################## 
    header("Content-type: image/gif"); 
    $image imagecreatetruecolor(425150); 
    $image2 imagecreatefromgif('http://img.photobucket.com/albums/v429/omei333/fdgs.gif'); 
    imagecopy($image$image20000450150); 
    ############################ 
    ## Make colors for image ## 
    ############################ 
    $red imagecolorallocate($image231180180); 
    $green imagecolorallocate($image180220180); 
    $white imagecolorallocate($image255255255); 
    ############# 
    ## Borders ## 
    ############# 
    imageline($image114231$white); 
    imageline($image1148423148$white); 
    imageline($image111149$white); 
    imageline($image4231423148$white); 
    ############################################## 
    ## Create somestrings to be placed on image ## 
    ############################################## 
     
    $font arial.tff
    $font2 
    arial.tff
    $font3 
    arial.tff
    $mouse 
    number_format($mystats['TotalMouseClicks']); 
    $keys number_format($mystats['TotalKeyCount']); 
    $curSong = @implode('',@file($filename)); 
    ############################# 
    ## x10Hosting related text ## 
    ############################# 
    imagettftext($image706846$white$font"Server Load:"); 
    imagettftext($image7012646$white$font2$serverLoad); 
    imagettftext($image7016546$white$font"Uptime:"); 
    imagettftext($image7020446$white$font2$serverUptime); 
    $status serviceStatus(80); 
    if (
    $status == 'Online') { $color $green; } else { $color $red; } 
    imagettftext($image701063$white$font"HTTP Server:"); 
    imagettftext($image707163$color$font2$status); 
    $status serviceStatus(3306); 
    if (
    $status == 'Online') { $color $green; } else { $color $red; } 
    imagettftext($image701078$white$font"MySQL Server:"); 
    imagettftext($image707578$color$font2$status); 
    $status serviceStatus(53); 
    if (
    $status == 'Online') { $color $green; } else { $color $red; } 
    imagettftext($image7011063$white$font"DNS Server:"); 
    imagettftext($image7016463$color$font2$status); 
    $status serviceStatus(110); 
    if (
    $status == 'Online') { $color $green; } else { $color $red; } 
    imagettftext($image7011078$white$font"POP3 Server:"); 
    imagettftext($image7016978$color$font2$status); 
    $status serviceStatus(22); 
    if (
    $status == 'Online') { $color $green; } else { $color $red; } 
    imagettftext($image7020463$white$font"SSH Server:"); 
    imagettftext($image7025763$color$font2$status); 
    $status serviceStatus(21); 
    if (
    $status == 'Online') { $color $green; } else { $color $red; } 
    imagettftext($image7020478$white$font"FTP Server:"); 
    imagettftext($image7025778$color$font2$status); 
    imagettftext($image7030043$white$font3"<= 70.86.136.178"); 
     
    ########################### 
    ## Personal related text ## 
    ########################### 
    imagettftext($image7055103$white$font"Username:"); 
    imagettftext($image70108103$white$font2"Derek"); 
    imagettftext($image70155103$white$font"Country:"); 
    imagettftext($image70197103$white$font2"United States"); 
     
    imagettftext($image7010120$white$font"Key Strokes:"); 
    imagettftext($image7068120$white$font2$keys); 
    imagettftext($image70129120$white$font"Mouse Clicks:"); 
    imagettftext($image70195120$white$font2$mouse); 
    imagettftext($image7010136$white$font"Listening To:"); 
    imagettftext($image7071136$white$font2$curSong); 
    // Random string array comes from included file. 
    $randSayingKey array_rand($randSayings); 
    $arrow '<='
    $saying $randSayings[$randSayingKey]; 
    imagettftext($image74529785$white$font3$arrow); 
    if (
    $randSayingKey == '0') { 
    imagettftext($image7030464$white$font3$saying); 
    } else { 
    imagettftext($image7030479$white$font3$saying); 

    imagettftext($image690420,145,
    $white,$font3"http://collide.elementfx.com"); 
    ############## 
    ## PHP text ## 
    ############## 
    // PHP random array comes from included file. 
    $randKey array_rand($randFunctions); 
    $phpFunction $randFunctions[$randKey]['Name']; 
    $phpDescription $randFunctions[$randKey]['Description']; 
    imagettftext($image60302114$white$font$phpFunction); 
    imagettftext($image50304122$white$font2$phpDescription); 
    $php '<= I <3 PHP'
    imagettftext($image79040585$white$font3$php); 
    ############################# 
    ## Output image to browser ## 
    ############################# 
    imagegif($image); 
    ######################################################################################## 
    ## Destroy image from memory. I don't want to fill up the server's ram, now do I? ;-) ## 
    ######################################################################################## 
    imagedestroy($image); 
    imagedestroy($image2); 

    ?>


    PHP Code:
    <?php 
    function serviceStatus($port) { 
    $handle = @fsockopen('70.86.136.178'$port$errno$errstr30); 
    if (!
    $handle) { 
    $string 'Down'
    } else { 
    $string 'Online'
    @
    fclose($handle); 

    return 
    $string

     
    function 
    UserStats($userid) { 
    $WhatPulseStats = array(); 
    $stat_types = array("UserID""AccountName""Country"
    "DateJoined""Homepage""LastPulse"
    "Pulses""TotalKeyCount""TotalMouseClicks"
    "AvKeysPerPulse""AvClicksPerPulse"
    "AvKPS""AvCPS""Rank""TeamID"
    "TeamName""TeamMembers""TeamKeys"
    "TeamClicks""TeamDescription"
    "TeamDateFormed""RankInTeam""GeneratedTime"); 
    $data = @implode(""file("http://whatpulse.org/api/users/".$userid.".xml")); 
    $parser xml_parser_create(); 
    xml_parser_set_option($parserXML_OPTION_CASE_FOLDING0); 
    xml_parser_set_option($parserXML_OPTION_SKIP_WHITE1); 
    xml_parse_into_struct($parser$data$values$tags); 
    xml_parser_free($parser); 
     
    foreach (
    $tags as $key => $val

    if (
    $key == "UserStats"

    $ranges $val
    for (
    $i 0$i count($ranges); $i += 2

    $offset $ranges[$i] + 1
    $len $ranges[$i 1] - $offset
    $statsarray array_slice($values$offset$len); 
    foreach(
    $statsarray as $key => $value

    for(
    $i 0$i count($stat_types); $i++) 

    if(
    $value['tag'] == $stat_types[$i]) 

    $type $stat_types[$i]; 
    $WhatPulseStats[$type] = $value['value']; 




    } else { 
    continue; 


     
    return 
    $WhatPulseStats

     
    // I edited out the random function array and the random string arrays. 
    $randFunctions = array('Moo'); 
    $randSayings = array('Moo'); 
    ?>

  3. #3
    Bryon is offline Administrator Bryon has disabled reputation
    Join Date
    Apr 2005
    Location
    Northfield, NH
    Posts
    7,608

    Re: bryon help please

    Look at lines 108-110:
    PHP Code:
    $font arial.tff
    $font2 
    arial.tff
    $font3 
    arial.tff 
    You need quotes around these values being put into the variables.

    Example:
    PHP Code:
    $font 'arial.tff';
    $font2 'arial.tff';
    $font3 'arial.tff'

  4. #4
    Derek is offline Community Support Force Derek is a splendid one to beholdDerek is a splendid one to behold
    Join Date
    May 2005
    Location
    cossacks
    Posts
    6,354

    Re: bryon help please

    thats what i had at frist but i got another error let me fix it

  5. #5
    Derek is offline Community Support Force Derek is a splendid one to beholdDerek is a splendid one to behold
    Join Date
    May 2005
    Location
    cossacks
    Posts
    6,354

    Re: bryon help please

    Biump Please Help!!

  6. #6
    Bryon is offline Administrator Bryon has disabled reputation
    Join Date
    Apr 2005
    Location
    Northfield, NH
    Posts
    7,608

    Re: bryon help please

    What is the other error.. ?

  7. #7
    Derek is offline Community Support Force Derek is a splendid one to beholdDerek is a splendid one to behold
    Join Date
    May 2005
    Location
    cossacks
    Posts
    6,354

    Re: bryon help please

    did u go to the link it doesnt work for some reason

  8. #8
    Bryon is offline Administrator Bryon has disabled reputation
    Join Date
    Apr 2005
    Location
    Northfield, NH
    Posts
    7,608

    Re: bryon help please

    "<b>Warning</b>: imagettftext(): Could not find/open font in <b>/home/collide/public_html/sig.php</b> on line <b>147</b><br />
    <br />"

    Umm.. Make sure your fonts exist.

  9. #9
    Derek is offline Community Support Force Derek is a splendid one to beholdDerek is a splendid one to behold
    Join Date
    May 2005
    Location
    cossacks
    Posts
    6,354

    Re: bryon help please

    well i upload the font arial.tff

+ Reply to Thread

Similar Threads

  1. Bid For Multiple Background Dynamic SIG
    By iubtalks in forum The Marketplace
    Replies: 32
    Last Post: 08-05-2006, 01:28 PM
  2. Get To Know You: Bryon
    By Chris S in forum Off Topic
    Replies: 4
    Last Post: 03-26-2006, 03:58 PM
  3. Got the nerve to post a pic of yourself?
    By Cynical in forum Off Topic
    Replies: 41
    Last Post: 01-07-2006, 02:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers