What's new
  • logo_cipsoft
    Latest servers:
    New servers will open on: 19th Feb 2025:
    Noctalia (Open PvP) Ignitera (Open PvP) us_logo Xybra (Open PvP)

Kod z Obrazka (Acc Gesior)

Status
Not open for further replies.

Tropico

New User
Joined
Nov 23, 2010
Messages
6
Reaction score
0
Witam,
Mam problem z kodem z obrazka na mojej stronie.

To obrazek:
gggwy.jpg


Za pomoc oczywiscie Reput i piwko ;)

Pozdrawiam,
Tropico
 

Miauuuu

Advanced User
Joined
Jan 21, 2010
Messages
206
Reaction score
23
Odp: Kod z Obrazka (Acc Gesior)

Acc/imgverification/imagebuilder.php:
Code:
<?     
   session_start(); 
   $pool = '123456789'; 
   $img_width = 80; 
   $img_height = 30; 
   $str = ''; 
   for ($i = 0; $i < 4; $i++){ 
       $str .= substr($pool, mt_rand(0, strlen($pool) -1), 1); 
   } 
   $string = $str;
   $im = imagecreate($img_width, $img_height); 
   $bg_color     = imagecolorallocate($im,103,103,103); 
   $font_color   = imagecolorallocate($im,252,252,252); 
   $grid_color   = imagecolorallocate($im,31,0,0); 
   $border_color = imagecolorallocate ($im, 174, 174, 174); 
   imagefill($im,1,1,$bg_color); 
   for($i=0; $i<500; $i++){ 

       $rand1 = rand(0,$img_width); 
       $rand2 = rand(0,$img_height); 
       imageline($im, $rand1, $rand2, $rand1, $rand2, $grid_color); 

   }
   $x = rand(5, $img_width/(7/2)); 
   imagerectangle($im, 0, 0, $img_width-1, $img_height-1, $border_color); 
   for($a=0; $a < 4; $a++){ 

       imagestring($im, 5, $x, rand(6 , $img_height/5), substr($string, $a, 1), $font_color); 
       $x += (5*2); #odst?p 
   }
   $_SESSION['string'] = $string; 
   header("Content-type: image/gif"); 
   imagegif($im); 
   imagedestroy($im); 

?>

Pozdrawiam,

Miauuuu
 

Tropico

New User
Joined
Nov 23, 2010
Messages
6
Reaction score
0
Odp: Kod z Obrazka (Acc Gesior)

Acc/imgverification/imagebuilder.php:
Code:
<?     
   session_start(); 
   $pool = '123456789'; 
   $img_width = 80; 
   $img_height = 30; 
   $str = ''; 
   for ($i = 0; $i < 4; $i++){ 
       $str .= substr($pool, mt_rand(0, strlen($pool) -1), 1); 
   } 
   $string = $str;
   $im = imagecreate($img_width, $img_height); 
   $bg_color     = imagecolorallocate($im,103,103,103); 
   $font_color   = imagecolorallocate($im,252,252,252); 
   $grid_color   = imagecolorallocate($im,31,0,0); 
   $border_color = imagecolorallocate ($im, 174, 174, 174); 
   imagefill($im,1,1,$bg_color); 
   for($i=0; $i<500; $i++){ 
       $rand1 = rand(0,$img_width); 
       $rand2 = rand(0,$img_height); 
       imageline($im, $rand1, $rand2, $rand1, $rand2, $grid_color); 
   }
   $x = rand(5, $img_width/(7/2)); 
   imagerectangle($im, 0, 0, $img_width-1, $img_height-1, $border_color); 
   for($a=0; $a < 4; $a++){ 
       imagestring($im, 5, $x, rand(6 , $img_height/5), substr($string, $a, 1), $font_color); 
       $x += (5*2); #odst?p 
   }
   $_SESSION['string'] = $string; 
   header("Content-type: image/gif"); 
   imagegif($im); 
   imagedestroy($im); 
?>
Pozdrawiam,
Miauuuu

Nie pomoglo ;( , Czekam dalej!!

Pozdro,
Tropico
 

Misio021

Advanced User
Joined
Jul 11, 2010
Messages
230
Reaction score
1
Odp: Kod z Obrazka (Acc Gesior)

Kolego poka?e ci jak wy??czyc kody zeby wcale nie wpisywa?

wejdz w m?j komputer i w ten dysk co masz zainstalowanego Xamppa umnie wygl?da to tak

C:\Xampp\xampp\htdocs\Znajdz folder config jak wejdziesz do niego wejdz w config PHP

jak ju? wejdziesz w ten plik znajdz linijke

$config['site']['verify_code'] = 0; // show verify code to block stupid scripts, set 0 if you have problems with image


Kolorem Niebieskim oznaczy?em co trzeba zmieni? ty pewnie masz ustawione 1 to musisz zmienic na 0

my?le,?e pomog?em
 
Last edited:

Eturl

We shall know no fear!
Joined
May 21, 2008
Messages
2,280
Reaction score
438
Age
33
Odp: Kod z Obrazka (Acc Gesior)

po co wy??cza?? co najlepiej na ?atwizn??

Wejd? w imgverification/imagebuilder.php
i tam na samym pocz?tku zmie? to

PHP:
<?

na to

PHP:
<?PHP

Notka moderatorska:
+1pkt OT Expert
 
Last edited by a moderator:

Tropico

New User
Joined
Nov 23, 2010
Messages
6
Reaction score
0
Odp: Kod z Obrazka (Acc Gesior)

#Misio021 = Dzieki , ale wole sposoub Eturl Sous.
#Eturl Sous= Reput dla Cb z gory dzieki :)


Zeby nie tworzyc nowego tematu.
Jak usunac zakladki forum itp ..
Bo mi to nie potrzebne.

Pozdrawiam,
Tropico

@edit : A jak dodac wlasna kategorie naprzydlak Premium i tam mam co tzreb azrobi citp cos jak pobieralnia ze linki sie podaje ;)
 
Last edited:

Eturl

We shall know no fear!
Joined
May 21, 2008
Messages
2,280
Reaction score
438
Age
33
Odp: Kod z Obrazka (Acc Gesior)

w index.php skasuj

PHP:
  case "forum":
        $topic = "Forum";
        $subtopic = "forum";
        include("forum/forum.php");
      break;
      
      case "board";
        $subtopic = "board";
        $topic = "Forums Board";
        include("forum/board.php");
      break;

      case "thread";
        $subtopic = "thread";
        $topic = "Forums Board";
        include("forum/thread.php");
      break;


oraz w layout.php

PHP:
<?PHP
echo "<div id='forum' class='menuitem'>
          <span onClick=\"MenuItemAction('forum')\">
           <div class='MenuButton' style='background-image:url(".$layout_name."/images/menu/button-background.gif);'>
             <div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'>
               <div class='Button' style='background-image:url(".$layout_name."/images/menu/button-background-over.gif);'></div>
               <span id='forum_Lights' class='Lights'>
                <div class='light_lu' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>
                <div class='light_ld' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>
                <div class='light_ru' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>
               </span>
               <div id='forum_Icon' class='Icon' style='background-image:url(".$layout_name."/images/menu/icon-forum.gif);'></div>
               <div id='forum_Label' class='Label' style='background-image:url(".$layout_name."/images/menu/label-forum.gif);'></div>
               <div id='forum_Extend' class='Extend' style='background-image:url(".$layout_name."/images/general/plus.gif);'></div>
             </div>
           </div>
          </span>
        <div id='forum_Submenu' class='Submenu'>
          <a href=''>
           <div id='submenu_forum' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
             <div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
             <div id='ActiveSubmenuItemIcon_forum' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>
             <div class='SubmenuitemLabel'>Server Forum</div>
             <div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
           </div>
          </a>
        </div>
		</div>";
?>


@edit je?li chcesz co? doda? to robisz odwrotn? sytuacj? ;p

Przyk?ad:

w index.php dodajesz

PHP:
	case "downloads";
		$subtopic = "downloads";
		$topic = "Downloads";
		include("downloads.php");
	break;

oraz w layout.php dodajesz w pod zak?adk? kt?ra ju? jest to

PHP:
if($config['site']['download_page'] == 1)
echo "<a href='?subtopic=downloads'>
  <div id='submenu_downloads' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
    <div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
    <div id='ActiveSubmenuItemIcon_downloads' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>
    <div class='SubmenuitemLabel'>Pobieralnia</div>
    <div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
  </div>
</a>";








tworzysz teraz plik downloads.php i do niego wklejasz

PHP:
<?PHP
$content = file_get_contents("downloads.htm");
if($content != FALSE)
	$main_content .= $content;
else
	$main_content .= 'Can not load file <b>downloads.htm</b> or file is empty.';
?>
 
Last edited:
Status
Not open for further replies.
Top