Changeset 1682

Show
Ignore:
Timestamp:
02/07/2008 09:51:10 PM (10 months ago)
Author:
jeena
Message:

added login hoocks and savet as utf8

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/admin/login.php

    r1659 r1682  
    1414 $post = strip($_POST); 
    1515 
    16         if ($_SERVER['REQUEST_METHOD'] == 'POST') { 
     16        ### Plugin Hook 
     17    $dispatch_login = $plugins->callHook('dispatchLogin', true); 
     18     
     19        if ($_SERVER['REQUEST_METHOD'] == 'POST' AND $dispatch_login) { 
    1720                session_start(); 
    1821                $passwort = $post['password']; 
     
    2730                        else header('HTTP/1.1 303 See Other'); 
    2831                } 
    29                         if($path === $url) $url = $path."new.php";       
     32                        if($path === $url) $url = $path."new.php";              
    3033                        if(!empty($url)) $path = $url; 
    3134                        header('Location: http://'.$hostname.$path); 
     
    5154'; 
    5255 
     56### Plugin Hook 
     57$c["main"] = $plugins->callHook('loginForm', $c["main"]); 
     58 
     59 
    5360require_once(JLOG_BASEPATH.'scripts'.DIRECTORY_SEPARATOR.'do_template.php'); 
    5461echo $body; 
  • trunk/admin/media/select-picture.php

    r1583 r1682  
    1313<h1><?php echo $l['admin']['pic_choose_old'] ?></h1>  
    1414<?php 
    15 // Bildernamen für blog in ein Array schreiben 
     15// Bildernamen fÃŒr blog in ein Array schreiben 
    1616$dir = JLOG_BASEPATH.'img'.DIRECTORY_SEPARATOR; 
    1717 
  • trunk/admin/media/select-teaser.php

    r1624 r1682  
    1212<h1><?php echo $l['admin']['pic_choose_old_teaser'] ?></h1>  
    1313<?php 
    14 // Bildernamen für blog in ein Array schreiben 
     14// Bildernamen fÃŒr blog in ein Array schreiben 
    1515$dir = JLOG_BASEPATH.'img'.DIRECTORY_SEPARATOR; 
    1616$handle = opendir ($dir); 
  • trunk/admin/media/upload-picture.php

    r1624 r1682  
    2020 if (isset($_FILES['probe']) && ! $_FILES['probe']['error']) // Alternativ: and $_FILES['probe']['size'] 
    2121  { 
    22    // Überprüfungen: 
     22   // ÜberprÃŒfungen: 
    2323   unset($errors); 
    2424   $e = substr($_FILES['probe']['name'], -4); 
  • trunk/admin/media/upload-teaser.php

    r1624 r1682  
    1919 if (isset($_FILES['probe']) && ! $_FILES['probe']['error']) // Alternativ: and $_FILES['probe']['size'] 
    2020  { 
    21    // Überprüfungen: 
     21   // ÜberprÃŒfungen: 
    2222   unset($errors); 
    2323   $e = substr($_FILES['probe']['name'], -4); 
  • trunk/lang/lang.de.inc.php

    r1664 r1682  
    8787 
    8888"language"                 => "de-de", 
    89 "locale"                   => array('de_DE', 'de_DE@euro', 'de', 'deu_deu', 'german', 'ge', 'de-DE', 'de_DE.ISO8859-1', 'de_DE.ISO8859-15', 'de_DE.ISO_8859-15', 'de_DE.ISO_8859-15'), 
     89"locale"                   => array('de_DE.UTF-8', 'de_DE.UTF-8@euro', 'de_DE'), 
    9090"date_format"              => "%d. %B %Y um %H:%M Uhr", 
    9191"date_format_comment"      => "%d.%m.%Y", 
  • trunk/log.php

    r1674 r1682  
    180180                         $com_form['email'] = empty($com_form['email']) ? "no-reply@".$urlarray['host'] : $com_form['email']; 
    181181             $mail['topic'] = $l['admin']['comments_mailsubject']." - ".$blogentry['topic']; 
    182        $mail['headers'] = "From: "; 
     182                         $mail['headers'] = "MIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit\n"; 
     183       $mail['headers'] .= "From: "; 
    183184       if(!empty($com_form['name'])) $mail['headers'] .= str_replace(array("\n", "\r"), "", $com_form['name']); 
    184185       else $mail['headers'] .= $l['admin']['comments_anonym']; 
     
    186187       $mail['headers'] .= "\r\nX-Mailer: PHP/".phpversion(); 
    187188 
    188        $mail['text'] = $l['admin']['comments_mail_txt']." »".$blogentry['topic']."«\n- -\n"; 
     189       $mail['text'] = $l['admin']['comments_mail_txt']." »".$blogentry['topic']."«\n- -\n"; 
    189190       if(!empty($com_form['name'])) $mail['text'] .= $com_form['name']; 
    190191       else $mail['text'] .= $l['admin']['comments_anonym']; 
     
    202203 
    203204                        $mail['topic'] = $l['comments_mailsubject']." - ".$blogentry['topic']; 
    204       $mail['headers'] = "From: ".JLOG_WEBSITE." <".JLOG_EMAIL.">\r\n" 
     205                        $mail['headers'] = "MIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit\n"; 
     206      $mail['headers'] .= "From: ".JLOG_WEBSITE." <".JLOG_EMAIL.">\r\n" 
    205207                        ."X-Mailer: PHP/".phpversion(); 
    206208 
    207       $mail['all_text'] = $l['comments_mail_txt']." »".$blogentry['topic']."«\n- -\n"; 
     209      $mail['all_text'] = $l['comments_mail_txt']." »".$blogentry['topic']."«\n- -\n"; 
    208210      if(!empty($com_form['name'])) $mail['all_text'] .= $com_form['name']; 
    209211      else $mail['all_text'] .= $l['comments_anonym']; 
  • trunk/scripts/general.func.php

    r1675 r1682  
    275275 <a href="logout.php">'.$l['admin']['menu_logout'].'</a> 
    276276</p>'; 
     277 
     278        ### Plugin Hook 
     279        $o = $plugins->callHook('adminMenu', $o); 
     280         
    277281 return $o; 
    278282} 
  • trunk/scripts/jlogPlugins.class.php

    r1663 r1682  
    55 
    66 /* Hooks */ 
    7     function hook_body            ($t) { return $t; } // string body 
    8     function hook_commentForm     ($t) { return $t; } // string with comment form output + array with form data 
    9     function hook_adminContent    ($t) { return $t; } // string content 
    10     function hook_newComment      ($t) { return $t; } // array  form data 
    11     function hook_updateComment   ($t) { return $t; } // array  form data 
    12     function hook_deleteComment   ($t) { return $t; } // string comment id 
    13     function hook_showComment     ($t) { return $t; } // string comment output 
    14     function hook_onUpdate        ($t) { return $t; } // array  with all rss feeds and sub 
    15     function hook_doEntry         ($t) { return $t; } // string with entry + array with data from database + string count comments + string section 
    16     function hook_doTeaser        ($t) { return $t; } // string with entry + array with data from database + string count comments + string pre + string post 
    17     function hook_bbcode          ($t) { return $t; } // bbcode object 
    18     function hook_bbcomments      ($t) { return $t; } // bbcomments object 
    19     function hook_adminForm       ($t) { return $t; } // admin formular 
    20     function hook_insertEntry     ($t) { return $t; } // int id + array with form data 
    21     function hook_updateEntry     ($t) { return $t; } // int id + array with form data 
    22     function hook_permalink       ($t) { return $t; } // string permalink + string date + string url + string section 
    23     function hook_xmlrpcPermalink ($t) { return $t; } // string url 
     7               function hook_body            ($t) { return $t; } // string body 
     8               function hook_commentForm     ($t) { return $t; } // string with comment form output + array with form data 
     9               function hook_adminContent    ($t) { return $t; } // string content 
     10               function hook_newComment      ($t) { return $t; } // array  form data 
     11               function hook_updateComment   ($t) { return $t; } // array  form data 
     12               function hook_deleteComment   ($t) { return $t; } // string comment id 
     13               function hook_showComment     ($t) { return $t; } // string comment output 
     14               function hook_onUpdate        ($t) { return $t; } // array  with all rss feeds and sub 
     15               function hook_doEntry         ($t) { return $t; } // string with entry + array with data from database + string count comments + string section 
     16               function hook_doTeaser        ($t) { return $t; } // string with entry + array with data from database + string count comments + string pre + string post 
     17               function hook_bbcode          ($t) { return $t; } // bbcode object 
     18               function hook_bbcomments      ($t) { return $t; } // bbcomments object 
     19               function hook_adminForm       ($t) { return $t; } // admin formular 
     20               function hook_insertEntry     ($t) { return $t; } // int id + array with form data 
     21               function hook_updateEntry     ($t) { return $t; } // int id + array with form data 
     22               function hook_permalink       ($t) { return $t; } // string permalink + string date + string url + string section 
     23               function hook_xmlrpcPermalink ($t) { return $t; } // string url 
    2424                function hook_countComments   ($t) { return $t; } // array with id and count 
    2525                function hook_adminMail       ($t) { return $t; } // array with mail + array blogentry 
    2626                function hook_commentorMail   ($t) { return $t; } // array with mail + array blogentry 
    27     function hook_commentAdminList($t) { return $t; } // string with actual tr + array with comment data 
     27               function hook_commentAdminList($t) { return $t; } // string with actual tr + array with comment data 
    2828                function hook_previewComment  ($t) { return $t; } // same as newComment 
     29                function hook_dispatchLogin   ($t) { return $t; } // 
     30                function hook_loginForm       ($t) { return $t; } //     
     31                function hook_adminMenu       ($t) { return $t; } // string with the admin menu html 
    2932} 
    3033