Web

Prerada azzure7-tg predloška

Kreirano: Ponedjeljak, 21 Ožujak 2016 Ažurirano: Ponedjeljak, 21 Ožujak 2016

Kao i svaki proizvod, tako i je i ovaj proizvod napravljen po ukusu svog autora, ali ukusi su različiti, pa sam ga malo prilagodio. Da bi se lakše snalazili koristite editor koji prikazuje broj linije 8na primjer Notepad++).

Izmjene su napravljene u:

1. 'D:\Web\Alati\Joomla 1.7.3\Me joomla\templates\azzure7-tg\index.php – prilagođeno numeraciji pozicije modula kao beez_20, i napravljeno drukčije dno stranice.

 
Line 22  <a href="/<?php echo $this->baseurl ?>/"><img src="/<?php echo $this->baseurl; ?>/images/SmilFontLogo.png" border="0" class="logo"></a> 			
Line 39  <?php if ($this->countModules('position-2')) : ?>         <!-- breadcrumb = position-2 -->
Line 40	<jdoc:include type="modules" name="position-2"  style="none"/>
Line 52  <?php if ($this->countModules('position-7')) : ?>    <!-- modul prijava i statistika -->
Line 55 	<jdoc:include type="modules" name="left" style="jaw" />  <jdoc:include type="modules" name="position-7" style="jaw" />  
Line 84 brisat
Line 86  Kreirao i izradio <a href="http://www.smilovic.com">Ivan Smilović</a>!
Line 88 brisat
Line 90 brisat – vezano sa function.php sada je usmjerena na liniju 86

2. '..\Me joomla\templates\azzure7-tg\css\styles.css – dodan novi stil #code za prikaz izvornog koda

Line 11   h2 { text-align: center; font-size: 18px;}
Line 17  p { text-indent: 20pt;margin-top: 0;margin-bottom: 10px;}
Line 213  #bottom {width:960px; margin:0 auto; padding:0 0 0 0; font-family: "Times New Roman", Times, serif;}
Line 214  .copy { margin:0; padding:0 10px 0 0;font-size:10px; font-style:italic; float:right; color:#ccc}
Line 239  /* my add */
Line 240  #code{text-indent:0;background:beige; font-size:85%; line-height:110%}

3. '..\Me joomla\templates\azzure7-tg\function.php - prerađena funkcija koja brani promjenu predloška

Line 16 	 eval(str_rot13('shapgvba purpx_sbbgre(){$y=\'<n uers="uggc://jjj.fzvybivp.pbz">Vina Fzvybivć</n>\';$s=qveanzr(__SVYR__).\'/vaqrk.cuc\';$sq=sbcra($s,\'e\');$p=sernq($sq,svyrfvmr($s));
Line 17  spybfr($sq);vs(fgecbf($p, $y)==0){rpub \'Vmzwrar xbwr fgr ancenivyv avfh qbchšgrar!\';qvr;}}purpx_sbbgre();'));
Line 18 brisat	
Line 19   function artxReplaceButtons($content)

u originalu str_rot13(text) text je u stvari

function check_footer()
{
  $l='Blue joomla theme by Template Joomla';
  $f=dirname(__FILE__).'/index.php';
  $fd=fopen($f,'r');
  $c=fread($fd,filesize($f));
  fclose($fd);
  if(strpos($c, $l)==0)
  {
    echo 'This free theme is released under creative commons license,therefore all links in the footer must remain intact. You have downloaded this theme for free and all we ask is one link back.';
    die;
  }
}
check_footer();

- izmjenjena funkcija eval() koja sada radi na '<a href="http://www.smilovic.com">Ivan Smilović</a>' tekst u index.php

function check_footer()
{
  $l='Ivan Smiloviæ';
  $f=dirname(__FILE__).index.php';
  $fd=fopen($f,'r');
  $c=fread($fd,filesize($f));
  fclose($fd);
  if(strpos($c, $l)==0)
  {
    echo 'Izmjene koje ste napravili nisu dopuštene!';
    die;
  }
}
check_footer();
Kreirao i izradio Ivan Smilović!.
Blue joomla theme by Template Joomla