Pereiti prie turinio

mAnaXi

Patvirtinti nariai
  • Pranešimai

    386
  • Užsiregistravo

  • Lankėsi

  • Atsiliepimai

    100%

mAnaXi Pranešimai

  1. .htaccess

    # Naujienos
    RewriteRule ^([^/]+)-n([0-9]+).html$ news.php?readmore=$2 [N]
    RewriteRule ^([^/]+)-nk([0-9]+).html$ news_cats.php?news_cat=$2 [N]

     

    ir gaunasi

    http://webas.lt/naujiena-pagal-manta-n13.html

     

    maincore.php Kodas, čia iš savo seno visą ištraukiau su seo persidarysi.. :)

    // SEO functions
    // Function for SEO text
    function seotext($text) {
           // if UTF
           $text = decode($text);
    
           # LT Char Lists
           $lt2html = array(
                      "ą" => "ą",
                      "Ą" => "Ą",
                      "č" => "č",
                      "Č" => "Č",
                      "ę" => "ę",
                      "Ę" => "Ę",
                      "ė" => "ė",
                      "Ė" => "Ė",
                      "į" => "į",
                      "Į" => "Į",
                      "š" => "š",
                      "Š" => "Š",
                      "ų" => "ų",
                      "Ų" => "Ų",
                      "ū" => "ū",
                      "Ū" => "Ū",
                      "ž" => "ž",
                      "Ž" => "Ž"
           );
    
           $latin2html = array(
                      "a" => "ą",
                      "A" => "Ą",
                      "c" => "č",
                      "C" => "Č",
                      "e" => "ę",
                      "E" => "Ę",
                      "i" => "į",
                      "I" => "Į",
                      "s" => "š",
                      "S" => "Š",
                      "u" => "ų",
                      "U" => "Ų",
                      "z" => "ž",
                      "Z" => "Ž"
            );
    
            $latin2html2 = array(
                      "e" => "ė",
                      "E" => "Ė",
                      "u" => "ū",
                      "U" => "Ū",
            );
    
           # LT => HTML
           foreach ($lt2html as $lt => $html) {
                     $text = str_replace($lt, $html, $text);
           }
           unset($lt, $html);
    
           # LT => LATIN
           foreach ($latin2html as $latin => $html) {
                     $text = str_replace($html, $latin, $text);
           }
           unset($latin, $html);
    
           # LT => LATIN2
           foreach ($latin2html2 as $latin => $html) {
                     $text = str_replace($html, $latin, $text);
           }
           unset($latin, $html);
    
           $html_spec = array("&", """, "'", "\", """, "'", "<", ">");
           $html_decspec  = "";
    
           $text = str_replace($html_spec, $html_decspec, $text);
    
           $text = strtolower($text);
           $text = preg_replace('/[^A-z0-9-_\.]/', ' ', $text);
           $text = trim($text);
           $text = preg_replace('/[\s\^\`]+/', "-", $text);
    
           return $text;
    }
    
    // SEO link
    function seolink($text, $prefix, $id, $dir = BASEDIR, $ex = ".html") {
           return $dir.seotext($text)."-".$prefix.$id.$ex;
    }
    
    
    function decode($string) {
       if (!ereg("[\200-\237]", $string) and !ereg("[\241-\377]", $string)) return $string;
    
       $string = preg_replace(
                 "/([\340-\357])([\200-\277])([\200-\277])/e",
                 "''.((ord('\\1')-224)*4096 + (ord('\\2')-128)*64 + (ord('\\3')-128)).';'",
                 $string
       );
       $string = preg_replace(
                 "/([\300-\337])([\200-\277])/e",
                 "''.((ord('\\1')-192)*64+(ord('\\2')-128)).';'",
                 $string
       );
    
       return $string;
    }

  2. Užsisakiau hostingą, atsiuntė į el paštą kažkokias pievas. Nesupratau, kaip jungtis. ir vienu žodžiu. Galbūt it geras, nesiginčinu :)

    Kad, labai viskas aiškiai būna paiškinta jeigu nesupranti tai čia jau galbūt reiktu kaltinti save, o ne kitus?

    gal kas turit kokia nuolaidu kupona? :) jeigu tokiu buna tenai :)

    Kiek žinau nebūna, tik dabar akcija yra kai užsisakai pas juos hostinga ir moki Banku, duoda tau nemokamai .lt domena tavo pasirinktą. :) Galioja tol kol užsisakęs būni jų paslaugas. :)

×
×
  • Pasirinkite naujai kuriamo turinio tipą...