Changeset 1626
- Timestamp:
- 01/06/2007 03:55:31 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 5 modified
-
admin/comments.php (modified) (5 diffs)
-
admin/login.php (modified) (1 diff)
-
scripts/general.func.php (modified) (3 diffs)
-
scripts/jlogPlugins.class.php (modified) (1 diff)
-
xmlrpc.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/comments.php
r1622 r1626 153 153 </tr>"; 154 154 155 $sql = "SELECT 155 $sql = "SELECT 156 156 ".JLOG_DB_COMMENTS.".id AS id, 157 157 ".JLOG_DB_CONTENT.".url AS url, … … 160 160 ".JLOG_DB_COMMENTS.".name AS name, 161 161 ".JLOG_DB_CONTENT.".topic AS topic, 162 ".JLOG_DB_COMMENTS.".email AS email 162 ".JLOG_DB_COMMENTS.".email AS email, 163 ".JLOG_DB_COMMENTS.".type AS type 163 164 FROM ".JLOG_DB_COMMENTS.", ".JLOG_DB_CONTENT." 164 165 WHERE ".JLOG_DB_COMMENTS.".reference = ".JLOG_DB_CONTENT.".id … … 174 175 } 175 176 176 while ($daten = $comments->fetch()) { 177 while ($daten = $comments->fetch()) { 178 177 179 if(!empty($daten['name'])) $daten['name'] = htmlspecialchars($daten['name'], ENT_QUOTES); 178 180 else $daten['name'] = $l['comments_anonym']; … … 185 187 $email_b = ""; 186 188 } 187 $c ['main'] .= "189 $comment = " 188 190 <tr> 189 191 <td><a href='?id=".$daten['id']."&action=change'><img src='".JLOG_PATH."/img/JLOG_edit.png' alt='".$l['admin']['change']."' /></a></td> … … 194 196 <td>".$daten['topic']."</td> 195 197 </tr>"; 198 199 ### Plugin Hook 200 $c['main'] .= $plugins->callHook('commentAdminList', $comment, $daten); 201 196 202 } 197 203 -
trunk/admin/login.php
r1620 r1626 34 34 $false_password = " <p class='error'>".$l['admin']['login_false_pw']."</p>\n"; 35 35 } 36 }36 } 37 37 38 38 $c['meta']['title'] = $l['admin']['login_headline']; -
trunk/scripts/general.func.php
r1622 r1626 29 29 30 30 function Year_Links($get, $start, $page, $l, $cat="") { 31 $date = getdate();31 $date = getdate(); 32 32 $this->_now = $date['year']; 33 33 $this->_start = $start; … … 53 53 else { 54 54 if(JLOG_CLEAN_URL === true) $years_links .= " <a href='".JLOG_PATH.$this->cat."/".$y."/'>".$y."</a>\n"; 55 else $years_links .= " <a href='".$this->_page. "?".$this->cat."y=".$y."'>".$y."</a>\n";55 else $years_links .= " <a href='".$this->_page.(strpos($this->_page, '?') === false ? "?" : "&").$this->cat."y=".$y."'>".$y."</a>\n"; 56 56 } 57 57 } … … 65 65 if($y != $this->_start) $years_links .= " | "; 66 66 if($y == $this->year) $years_links .= " <strong>".$y."</strong>"; 67 else $years_links .= " <a href='".$this->_page. "?y=".$y."'>".$y."</a>\n";67 else $years_links .= " <a href='".$this->_page.(strpos($this->_page, '?') === false ? "?" : "&")."y=".$y."'>".$y."</a>\n"; 68 68 } 69 69 -
trunk/scripts/jlogPlugins.class.php
r1622 r1626 25 25 function hook_adminMail ($t) { return $t; } // array with mail + array blogentry 26 26 function hook_commentorMail ($t) { return $t; } // array with mail + array blogentry 27 27 function hook_commentAdminList($t) { return $t; } // string with actual tr + array with comment data 28 28 } 29 29 -
trunk/xmlrpc.php
r1575 r1626 21 21 class Jlog_GetPingback { 22 22 23 var $errors = array(); // array24 var $method = ""; // string25 var $sourceURI = ""; // string26 var $targetURI = array(); // array incl: orginal, parsed [array from parse_url()], y, m, url27 var $title = ""; // string28 var $sid = ""; // string23 var $errors = array(); // array 24 var $method = ""; // string 25 var $sourceURI = ""; // string 26 var $targetURI = array(); // array incl: orginal, parsed [array from parse_url()], y, m, url 27 var $title = ""; // string 28 var $sid = ""; // string 29 29 30 30 function Jlog_GetPingback($db_content, $db_comments, $path, $sid = NULL) { … … 99 99 if(PEAR::isError($s->sendRequest())) $this->send_error(16, 'The source URI does not exist.'); 100 100 else { 101 $source = $s->getResponseBody();101 $source = $s->getResponseBody(); 102 102 $source = strip_tags(str_replace('<!DOCTYPE','<DOCTYPE', $source), '<title><a>'); 103 103 … … 106 106 107 107 preg_match('|<title>([^<]*?)</title>|is', $source, $title); 108 $this->title = empty($title[1]) ? $this->sourceURI : html_entity_decode($title[1]); 108 109 if(! $utf8 = preg_match ('/charset\s*=\s*utf-8/i', $s->getResponseHeader("Content-Type"))) 110 $utf8 = 'application/xhtml+xml' == strtolower(trim($s->getResponseHeader("Content-Type"))); 111 112 $this->title = empty($title[1]) ? $this->sourceURI : html_entity_decode($utf8 ? utf8_decode($title[1]) : $title[1]); 109 113 } 110 114
