comoblog-commit Mailing List for CoMoblog Mobile Blog Application (Page 3)
Status: Inactive
Brought to you by:
markwallis
You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(49) |
Oct
(127) |
Nov
(211) |
Dec
(56) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(51) |
Feb
(128) |
Mar
(1) |
Apr
(2) |
May
|
Jun
|
Jul
(2) |
Aug
(24) |
Sep
|
Oct
(151) |
Nov
(9) |
Dec
|
| 2007 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2008 |
Jan
|
Feb
(17) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:36
|
Update of /cvsroot/comoblog/modules/mod_rss2 In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_rss2 Modified Files: rss2.php Log Message: work in progress, ditching this server cos its borked ;( Index: rss2.php =================================================================== RCS file: /cvsroot/comoblog/modules/mod_rss2/rss2.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- rss2.php 28 Nov 2005 11:05:36 -0000 1.1 +++ rss2.php 22 Oct 2006 11:44:02 -0000 1.2 @@ -6,7 +6,7 @@ $rss_version = ''; if (isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] != '/') $rss_version = substr($_SERVER['PATH_INFO'],1,strlen($_SERVER['PATH_INFO'])-1); - + // ///////////////////////////////////////////////////////////////////// @@ -14,28 +14,28 @@ $blog['link'] = CFG_SITE_URL; $blog['description'] = htmlspecialchars(strip_tags(CFG_INTRO_TEXT)); $blog['language'] = CFG_LANG; -$blog['generator'] = 'EasyMoblog '.CFG_VERSION; -$blog['logo'] = CFG_SITE_URL.'img/easymoblog/'.CFG_LOGO_IMG; +$blog['generator'] = 'Comoblog '.CFG_VERSION; +$blog['logo'] = CFG_SITE_URL.'img/comoblog/'.CFG_LOGO_IMG; $blog['copyright'] = htmlspecialchars(strip_tags(CFG_RSS2_COPYRIGHT)); switch ($rss_version) { case '1.0': break; case '2.0': - break; + break; case 'c1.0': break; case 'c2.0': - break; - - + break; + + default: die('You must specify a valid rss version'); break; } - -if (($rss_version =='1.0') or ($rss_version =='2.0')) + +if (($rss_version =='1.0') or ($rss_version =='2.0')) { $posts = posts_last(CFG_HOWMANY_ITEMS); } @@ -43,7 +43,7 @@ { $posts = comments_last(CFG_HOWMANY_ITEMS); } - + $tpl = new XTemplate('templates/'.$rss_version.'/rss2.tpl.xml'); $tpl->assign('VERSION', CFG_VERSION); @@ -55,17 +55,17 @@ { $posts[$c]['post_mail_subject'] = htmlspecialchars(strip_tags($posts[$c]['post_mail_subject'])); $posts[$c]['post_mail_body'] = htmlspecialchars(strip_tags($posts[$c]['post_mail_body'])); - #$posts[$c]['post_mail_from'] = htmlspecialchars(strip_tags($posts[$c]['post_mail_from'])); + #$posts[$c]['post_mail_from'] = htmlspecialchars(strip_tags($posts[$c]['post_mail_from'])); $posts[$c]['post_mail_from'] = "iamdecal"; $post['post_category'] = ''; - + $tpl->assign('POST', $posts[$c]); - + if ($rss_version == '1.0') $tpl->parse('main.item'); - - + + if ($posts[$c]['post_images'] > 0) { $query = " select img_thumb, concat(img_id,'.',img_extension) as img_name, concat(img_id,'_thumb.',img_extension) as img_thumb_name, img_width, img_height @@ -74,7 +74,7 @@ and img_display = 'attach' "; $res = mysql_query($query); - + while ($row = mysql_fetch_assoc($res)) { if ($row['img_thumb'] == 'Y') { $tpl->assign('IMAGE', $row); @@ -83,17 +83,17 @@ else { $tpl->assign('IMAGE', $row); $tpl->parse('main.post.img'); - } + } } - } - - + } + + $tpl->parse('main.post'); } } -Header ('Content-type: text/xml'); - +#Header ('Content-type: text/xml'); +Header ('Content-type: application/xml'); $tpl->parse('main'); $tpl->out('main'); ?> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:35
|
Update of /cvsroot/comoblog/comoblog/admin In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/admin Modified Files: comment_edit.php manage_modules.php manage_comments.php comment_del.php post_edit.php Log Message: work in progress, ditching this server cos its borked ;( Index: comment_del.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/admin/comment_del.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- comment_del.php 16 Aug 2006 01:27:28 -0000 1.1 +++ comment_del.php 22 Oct 2006 11:44:01 -0000 1.2 @@ -1,18 +1,29 @@ -<?php -require_once ('include/admin.inc.php'); - -$offset = 0; -if (isset($_GET['o'])) $offset = $_GET['o'] + 0; - -$post_id = ''; -if (isset($_GET['i'])) $post_id = $_GET['i']; - - -post_del ($post_id); - - -mysql_close(); - -Header ('Location: manage_posts.php?d=y&o='.$offset); -exit(); +<?php +require_once ('include/admin.inc.php'); + +$offset = 0; +if (isset($_GET['o'])) $offset = $_GET['o'] + 0; + +$comment_id = ''; +if (isset($_GET['i'])) $comment_id = $_GET['i']; + + +comment_del ($comment_id); + + +mysql_close(); + +Header ('Location: manage_comments.php?d=y&o='.$offset); +exit(); + + +function comment_del ($post_id) { + $query = "delete from ".CFG_MYSQL_TABPREFIX."comments where comment_id = '".$post_id."'"; + $res = mysql_query($query); + //TODO - clear cache? + + +} + + ?> \ No newline at end of file Index: post_edit.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/admin/post_edit.php,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- post_edit.php 5 Jul 2006 00:20:46 -0000 1.11 +++ post_edit.php 22 Oct 2006 11:44:01 -0000 1.12 @@ -2,15 +2,15 @@ require ('include/admin.inc.php'); // date localization -setlocale (LC_TIME, $SET_LOCALE); +setlocale (LC_TIME, $SET_LOCALE); if (strtoupper($_SERVER['REQUEST_METHOD'] == 'POST')) { $errors = array(); foreach ($_POST as $k => $v) - $post[$k] = trim($v); - + $post[$k] = trim($v); + foreach($_POST as $k => $v) { if (substr($k, 0, 11) == 'comment_id_') { $comment_cnt = substr($k, 11); @@ -31,21 +31,21 @@ comment_author='".$comment['comment_author']."' where comment_id=".$comment['comment_id']; echo $query; - $res = mysql_query($query); + $res = mysql_query($query); } } if (substr($k, 0, 9) == 'image_id_') { - + $image_cnt = substr($k, 9); $img = array(); $img['img_id'] = $post['image_id_'.$image_cnt]; $img['file'] = $_FILES['image_file_'.$image_cnt]; $img['delete'] = $post['image_delete_'.$image_cnt]; $img['ext'] = $post['image_ext_'.$image_cnt]; - + // if substitute image if ($img['file']['error'] == 0) { - + $imgsize = @getimagesize($img['file']['tmp_name']); if ($imgsize) { @@ -59,7 +59,7 @@ else { $errors[] = 'Image '.($image_cnt+1).': not supported format (use gif, jpg or png)'; } - + // delete old image @unlink (CFG_BASE_PATH.'/img/posts/'.$img['img_id'].'.'.$img['ext']); if (file_exists(CFG_BASE_PATH.'/img/posts/'.$img['img_id'].'_thumb.'.$img['ext'])) @@ -79,9 +79,9 @@ $res = mysql_query($query); } - + // if delete image - if (count($errors) == 0) { + if (count($errors) == 0) { if ($img['delete'] == $img['img_id']) { @unlink (CFG_BASE_PATH.'/img/posts/'.$img['img_id'].'.'.$img['ext']); if (file_exists(CFG_BASE_PATH.'/img/posts/'.$img['img_id'].'_thumb.'.$img['ext'])) @@ -89,7 +89,7 @@ $query = "delete from ".CFG_MYSQL_TABPREFIX."images where img_id = '".$img['img_id']."'"; $res = mysql_query($query); - + $post['post_images'] -= 1; } } @@ -107,7 +107,7 @@ $title = filter_html($post['post_mail_body']); $post['post_mail_subject'] = substr($title,0,150) ."..."; - } + } // apply post filters if (count($POST_PRE_FILTERS) > 0) { @@ -122,7 +122,7 @@ if ($post['post_date_option'] == "now") { - $post['post_mail_date'] = time(); + $post['post_mail_date'] = time(); } else if ($post['post_date_option'] == "change") { @@ -131,10 +131,10 @@ else { $post['post_mail_date'] = strtotime($post['post_mail_date_orig']); - } + } $query = " - update + update ".CFG_MYSQL_TABPREFIX."posts set post_mail_from = '".$post['post_mail_from'] ."', @@ -142,10 +142,10 @@ post_mail_body = '".$post['post_mail_body'] ."', post_images = '".$post['post_images'] ."', post_mail_date = '".$post['post_mail_date'] ."', - post_ctype = '".$post['post_ctype'] ."', + post_ctype = '".$post['post_ctype'] ."', post_added = '".$post['post_mail_date'] ."', topic_id = '".$post['topic_id'] ."' - where + where post_id = '".$post['post_id'] ."' "; $res = mysql_query($query); @@ -155,8 +155,8 @@ for ($filter_cnt = 0; $filter_cnt < count($POST_POST_FILTERS); $filter_cnt++) { include_once (CFG_BASE_PATH.'/modules/'.$POST_POST_FILTERS[$filter_cnt].'/'.$POST_POST_FILTERS[$filter_cnt].'_post_filter.php'); } - } - + } + echo '<html><head></head><body><script language="javascript">opener.location.reload();this.close();</script></body></html>'; exit(); } @@ -172,7 +172,7 @@ $tpl = new XTemplate('templates/post_edit.tpl.htm'); if (isset($_GET['i'])) $post_id = $_GET['i']; - + $post = post_details($post_id); @@ -195,17 +195,17 @@ on t.img_id = i.img_id order by t.topic_name"; $res = mysql_query($query); - + if (mysql_num_rows($res) > 0) { while ($row = mysql_fetch_assoc($res)) { $tpl->assign('TOPIC', $row); if ($row['topic_id'] == $post['topic_id']) $tpl->parse('main.topics.topic.selected'); - $tpl->parse('main.topics.topic'); + $tpl->parse('main.topics.topic'); } $tpl->parse('main.topics'); } - + if ($post['post_images'] > 0) { $query = " select img_id,img_extension @@ -225,7 +225,7 @@ $tpl->parse('main.images'); } - $comments = comment_list($post_id); + $comments = comment_admin_list($post_id); if ($comments) { for ($c = 0; $c < count($comments); $c++) { @@ -248,4 +248,29 @@ $tpl->parse('main'); $tpl->out('main'); + + +function comment_admin_list ($post_id) { + $query = "select c.* from ".CFG_MYSQL_TABPREFIX."comments c where c.post_id = '".$post_id."' order by c.comment_added "; //TODO:: add param fro . CFG_COMMENT_SORT_ORDER + + error_log($query); + $res = mysql_query($query); + + if (!$res || !mysql_num_rows($res)){ + error_log("RES - " . mysql_errno() . " : " . mysql_error(). " : " .$query . " : " . $res); + return (false); + } + + $c = 0; + while ($row = mysql_fetch_array($res)) { + $comments[$c] = $row; + $comments[$c]['comment_date'] = getdate($row['comment_added']); + if ($comments[$c]['comment_date']['hours'] < 10) $comments[$c]['comment_date']['hours'] = '0'.$comments[$c]['comment_date']['hours']; + if ($comments[$c]['comment_date']['minutes'] < 10) $comments[$c]['comment_date']['minutes'] = '0'.$comments[$c]['comment_date']['minutes']; + error_log("Processed comment " . $c); + $c++; + } + + return ($comments); +} ?> Index: manage_comments.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/admin/manage_comments.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- manage_comments.php 16 Aug 2006 01:27:28 -0000 1.1 +++ manage_comments.php 22 Oct 2006 11:44:00 -0000 1.2 @@ -1,13 +1,13 @@ <?php require ('include/admin.inc.php'); -$tpl = new XTemplate ('templates/manage_posts.tpl.htm'); +$tpl = new XTemplate ('templates/manage_comments.tpl.htm'); $offset = 0; -if (isset($_GET['o'])) $offset = $_GET['o'] + 0; +if (isset($_GET['o'])) { $offset = $_GET['o'] + 0;} $delete = 'n'; -if (isset($_GET['d']) && $_GET['d'] == 'y') $delete = 'y'; +if ((isset($_GET['d']) && $_GET['d'] == 'y')) { $delete = 'y';} @@ -16,62 +16,71 @@ -if ($delete == 'y') +if ($delete == 'y'){ $tpl->parse('main.deleted'); - +} $display = 10; -$posts = posts_list ($offset, $display); +$comments = comments_list($offset, $display); -if ($posts) { +if ($comments) { - for ($cnt = 0; $cnt < count($posts); $cnt++) { + for ($cnt = 0; $cnt < count($comments); $cnt++) { if ($cnt % 2) $tpl->assign('BGCOLOR', '#ffffff'); else $tpl->assign('BGCOLOR', '#efefef'); - - $posts[$cnt]['post_mail_from'] = htmlentities(antispam($posts[$cnt]['post_mail_from'])); - $posts[$cnt]['post_mail_date'] = strftime('%D %T',$posts[$cnt]['post_mail_date']); - if ( $posts[$cnt]['post_mail_subject'] == ""){ + + $comments[$cnt]['comment_author'] = htmlentities(antispam($comments[$cnt]['comment_author'])); + $comments[$cnt]['comment_added'] = strftime('%D %T',$comments[$cnt]['comment_added']); + // need to to strip html incase we break across a tag - $title = filter_html($posts[$cnt]['post_mail_body']); - $posts[$cnt]['post_mail_subject'] = substr($title,0,150) ."..." ; + $title = filter_html($comments[$cnt]['comment_text']); + $comments[$cnt]['comment_title'] = substr($title,0,150) ."..." ; + + + if ( $comments[$cnt]['comment_live'] == "Y"){ + // need to to strip html incase we break across a tag + $comments[$cnt]['comment_live'] = "Live"; } - - $tpl->assign('POST', $posts[$cnt]); - $tpl->parse('main.posts.post'); + else{ + $comments[$cnt]['comment_live'] = "Not Live"; + } + + + $tpl->assign('COMMENT', $comments[$cnt]); + $tpl->parse('main.comments.COMMENT'); } - - $howmany = posts_howmany(); + + $howmany = comments_howmany(); $tpl->assign("OFFSET", $offset); $tpl->assign("FIRST", $offset + 1); $tpl->assign("LAST", $offset + $cnt); $tpl->assign("TOTAL", $howmany); - + if ($howmany > ($offset + $display)) { $next_offset = $offset + $display; $tpl->assign("NEXT_OFFSET", $next_offset); - $tpl->parse("main.posts.next"); + $tpl->parse("main.comments.next"); } - + if (($offset - $display) >= 0) { $prev_offset = $offset - $display; $tpl->assign("PREV_OFFSET", $prev_offset); - $tpl->parse("main.posts.prev"); + $tpl->parse("main.comments.prev"); } - $tpl->parse('main.posts'); + $tpl->parse('main.comments'); } else { - $tpl->parse('main.no_posts'); + $tpl->parse('main.no_comments'); } $tpl->parse('main.home'); @@ -81,4 +90,35 @@ // close db connection mysql_close (); + + +function comments_list ($offset, $howmany) { + + if (CFG_USE_PATH_INFO == 'no'){ + $iisbug = '?'; + } + else{ + $iisbug = ''; + } + $query = " + select c.* from ".CFG_MYSQL_TABPREFIX."comments c + order by c.comment_added desc + limit ".$offset.",".$howmany." + "; + $res = mysql_query($query); + + if (!$res || !mysql_num_rows($res)){ + error_log($query); + + return (false); + } + $comments = array(); + while ($row = mysql_fetch_array($res)) { + $comments[] = $row; + } + return ($comments); +} + + + ?> Index: comment_edit.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/admin/comment_edit.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- comment_edit.php 16 Aug 2006 01:27:28 -0000 1.1 +++ comment_edit.php 22 Oct 2006 11:44:00 -0000 1.2 @@ -1,251 +1,124 @@ <?php -require ('include/admin.inc.php'); - -// date localization -setlocale (LC_TIME, $SET_LOCALE); +require_once ('include/admin.inc.php'); -if (strtoupper($_SERVER['REQUEST_METHOD'] == 'POST')) { +$offset = 0; +if (isset($_GET['o'])) { $offset = $_GET['o'] + 0;} - $errors = array(); +$comment_id = ''; +if (isset($_GET['i'])) {$comment_id = $_GET['i'];} - foreach ($_POST as $k => $v) - $post[$k] = trim($v); - - foreach($_POST as $k => $v) { - if (substr($k, 0, 11) == 'comment_id_') { - $comment_cnt = substr($k, 11); - $comment = array(); - $comment['comment_id'] = $post['comment_id_'.$comment_cnt]; - $comment['comment_text'] = $post['comment_text_'.$comment_cnt]; - $comment['comment_author'] = $post['comment_author_'.$comment_cnt]; - $comment['comment_delete'] = $post['comment_delete_'.$comment_cnt]; +comment_get($comment_id); - if ($comment['comment_delete'] == $comment['comment_id']) { - $query = "delete from ".CFG_MYSQL_TABPREFIX."comments - where comment_id=".$comment['comment_id']; - $res = mysql_query($query); - } - else { - $query = "update ".CFG_MYSQL_TABPREFIX."comments - set comment_text='".$comment['comment_text']."', - comment_author='".$comment['comment_author']."' - where comment_id=".$comment['comment_id']; -echo $query; - $res = mysql_query($query); - } - } - if (substr($k, 0, 9) == 'image_id_') { - - $image_cnt = substr($k, 9); - $img = array(); - $img['img_id'] = $post['image_id_'.$image_cnt]; - $img['file'] = $_FILES['image_file_'.$image_cnt]; - $img['delete'] = $post['image_delete_'.$image_cnt]; - $img['ext'] = $post['image_ext_'.$image_cnt]; - - // if substitute image - if ($img['file']['error'] == 0) { - - $imgsize = @getimagesize($img['file']['tmp_name']); +$tpl = new XTemplate ("templates/comment_edit.tpl.htm"); +$tpl->assign('TXT', $TXT); - if ($imgsize) { - if ($imgsize[2] == 1) { $ctype = 'image/gif'; $ext = 'gif'; } - elseif($imgsize[2] == 2) { $ctype = 'image/jpg'; $ext = 'jpg'; } - elseif($imgsize[2] == 3) { $ctype = 'image/png'; $ext = 'png'; } - else { - $errors[] = 'Image '.($image_cnt+1).': not supported format (use gif, jpg or png)'; - } - } - else { - $errors[] = 'Image '.($image_cnt+1).': not supported format (use gif, jpg or png)'; - } - - // delete old image - @unlink (CFG_BASE_PATH.'/img/posts/'.$img['img_id'].'.'.$img['ext']); - if (file_exists(CFG_BASE_PATH.'/img/posts/'.$img['img_id'].'_thumb.'.$img['ext'])) - @unlink (CFG_BASE_PATH.'/img/posts/'.$img['img_id'].'_thumb.'.$img['ext']); +$tpl->assign('CFG_BODY_BGCOLOR', CFG_BODY_BGCOLOR); +$tpl->assign('CFG_BACKGROUND_COLOR', CFG_BACKGROUND_COLOR); - // copy new image - move_uploaded_file ($img['file']['tmp_name'], CFG_BASE_PATH.'/img/posts/'.$img['img_id'].'.'.$ext); +$form['comment_id'] = ''; +if(isset($_POST['comment_id'])) $form['comment_id'] = $_POST['comment_id']; +elseif(isset($_GET['i'])) $form['comment_id'] = $_GET['i']; +else exit(); - // create thumbnail - $thumb = create_thumbnail ($img['img_id'], $ext, CFG_IMG_MAX_W, CFG_IMG_MAX_H, CFG_GD_VERSION); +$form['comment_author'] = ''; +if (isset($_POST['comment_author'])) +{ $form['comment_author'] = $_POST['comment_author'];} - // update table - if ($thumb) - $query = "update ".CFG_MYSQL_TABPREFIX."images set img_mime = '".$ctype."', img_extension = '".$ext."', img_thumb = 'Y', img_height = '".$imgsize[1]."', img_width = '".$imgsize[0]."' where img_id = '".$img['img_id']."'"; - else - $query = "update ".CFG_MYSQL_TABPREFIX."images set img_mime = '".$ctype."', img_extension = '".$ext."', img_thumb = 'N', img_height = '', img_width = '' where img_id = '".$img['img_id']."'"; +$form['comment_author_email'] == ''; +if (isset($_POST['comment_author_email'])) +{ $form['comment_author_email'] = $_POST['comment_author_email'];} - $res = mysql_query($query); - } - - // if delete image - if (count($errors) == 0) { - if ($img['delete'] == $img['img_id']) { - @unlink (CFG_BASE_PATH.'/img/posts/'.$img['img_id'].'.'.$img['ext']); - if (file_exists(CFG_BASE_PATH.'/img/posts/'.$img['img_id'].'_thumb.'.$img['ext'])) - @unlink (CFG_BASE_PATH.'/img/posts/'.$img['img_id'].'_thumb.'.$img['ext']); +$form['comment_author_url'] == ''; +if (isset($_POST['comment_author_url'])) +{ $form['comment_author_url'] = $_POST['comment_author_url'];} - $query = "delete from ".CFG_MYSQL_TABPREFIX."images where img_id = '".$img['img_id']."'"; - $res = mysql_query($query); - - $post['post_images'] -= 1; - } - } - } - } +$form['comment_text'] == '';{ +if (isset($_POST['comment_text'])) $form['comment_text'] = $_POST['comment_text'];} - if (count($errors) == 0) { +// addition to allow HTML in comments if flagged - needs an admin option to turn on or off +$form['comment_convert'] == ''; +if (isset($_POST['comment_convert'])) { $form['comment_convert'] = $_POST['comment_convert'];} - foreach($post as $k => $v) { - if (get_magic_quotes_gpc() == 1) - $post[$k] = stripslashes($v); - } - if ($post['post_mail_subject'] == "") { - $title = filter_html($post['post_mail_body']); - $post['post_mail_subject'] = substr($title,0,150) ."..."; - } +if ($_SERVER['REQUEST_METHOD'] == 'POST') { + $errors = array(); - // apply post filters - if (count($POST_PRE_FILTERS) > 0) { - for ($filter_cnt = 0; $filter_cnt < count($POST_PRE_FILTERS); $filter_cnt++) { - include_once (CFG_BASE_PATH.'/modules/'.$POST_PRE_FILTERS[$filter_cnt].'/'.$POST_PRE_FILTERS[$filter_cnt].'_post_filter.php'); - } - } + if ($form['comment_author'] == '') + array_push ($errors, 'Please type your name'); - foreach($post as $k => $v) { - $post[$k] = addslashes($v); - } + if ($form['comment_author_email'] != '' && !is_valid_email($form['comment_author_email'])) + array_push ($errors, 'Invalid email address'); - if ($post['post_date_option'] == "now") - { - $post['post_mail_date'] = time(); - } - else if ($post['post_date_option'] == "change") - { - $post['post_mail_date'] = strtotime($post['post_mail_date']); - } - else - { - $post['post_mail_date'] = strtotime($post['post_mail_date_orig']); - } + if ($form['comment_text'] == '') + array_push ($errors, 'Please write your comment'); - $query = " - update - ".CFG_MYSQL_TABPREFIX."posts - set - post_mail_from = '".$post['post_mail_from'] ."', - post_mail_subject = '".$post['post_mail_subject'] ."', - post_mail_body = '".$post['post_mail_body'] ."', - post_images = '".$post['post_images'] ."', - post_mail_date = '".$post['post_mail_date'] ."', - post_ctype = '".$post['post_ctype'] ."', - post_added = '".$post['post_mail_date'] ."', - topic_id = '".$post['topic_id'] ."' - where - post_id = '".$post['post_id'] ."' - "; - $res = mysql_query($query); + if (count($errors) == 0) { + $comment = $form; - // apply post filters - if (count($POST_POST_FILTERS) > 0) { - for ($filter_cnt = 0; $filter_cnt < count($POST_POST_FILTERS); $filter_cnt++) { - include_once (CFG_BASE_PATH.'/modules/'.$POST_POST_FILTERS[$filter_cnt].'/'.$POST_POST_FILTERS[$filter_cnt].'_post_filter.php'); - } - } - - echo '<html><head></head><body><script language="javascript">opener.location.reload();this.close();</script></body></html>'; + $comment = comment_update ($comment); + Header ("Location: list_comments.php?i=".$comment['comment_id']); exit(); } else { - foreach($errors as $k => $v) { - $tpl->assign('ERROR', $v); - $tpl->parse('main.errors.error'); + foreach ($errors as $key=>$value) { + $tpl->assign("ERROR", $value); + $tpl->parse("main.form_errors.error"); } - $tpl->parse('main.errors'); + $tpl->parse("main.form_errors"); } } -$tpl = new XTemplate('templates/post_edit.tpl.htm'); -if (isset($_GET['i'])) $post_id = $_GET['i']; - -$post = post_details($post_id); +$tpl->assign("ACTION", basename($_SERVER['PHP_SELF'])); -if ($post) { +if (isset($_COOKIE['comment_name'])) + $form['comment_author'] = $_COOKIE['comment_name']; +if (isset($_COOKIE['comment_email'])) + $form['comment_author_email'] = $_COOKIE['comment_email']; +if (isset($_COOKIE['comment_url'])) + $form['comment_author_url'] = $_COOKIE['comment_url']; - $strdate = strftime("%D %H:%M", $post['post_mail_date']); - $post['post_mail_date'] = $strdate; - $post['post_mail_from'] = htmlentities(antispam($post['post_mail_from'])); - $post['post_mail_body'] = htmlentities($post['post_mail_body']); +$tpl->assign("FORM", $form); - $tpl->assign('POST', $post); - // topics - $query = "select t.*, concat(i.img_id,'.',i.img_extension) as img - from ".CFG_MYSQL_TABPREFIX."topics t - left join ".CFG_MYSQL_TABPREFIX."images i - on t.img_id = i.img_id - order by t.topic_name"; - $res = mysql_query($query); - - if (mysql_num_rows($res) > 0) { - while ($row = mysql_fetch_assoc($res)) { - $tpl->assign('TOPIC', $row); - if ($row['topic_id'] == $post['topic_id']) - $tpl->parse('main.topics.topic.selected'); - $tpl->parse('main.topics.topic'); - } - $tpl->parse('main.topics'); - } - - if ($post['post_images'] > 0) { - $query = " - select img_id,img_extension - from ".CFG_MYSQL_TABPREFIX."images - where post_id = '".$post_id."' - "; - $res = mysql_query($query); - $i = 0; - while ($row = mysql_fetch_array($res)) { - $tpl->assign('COUNTER', $i); - $tpl->assign('COUNTER_TXT', $i + 1); - $tpl->assign('IMAGE', $row); - $tpl->parse('main.images.image'); - $i++; - } - $tpl->parse('main.images'); - } - $comments = comment_list($post_id); +$tpl->parse("main"); +$tpl->out("main"); - if ($comments) { - for ($c = 0; $c < count($comments); $c++) { - $comments[$c]['comment_author_email'] = antispam ($comments[$c]['comment_a -uthor_email'], true); - $tpl->assign("COMMENT", $comments[$c]); - $tpl->assign("COUNTER", $c); - if ($comments[$c]['comment_author_email'] != '') - $tpl->parse("main.comments.comment.email"); - $tpl->parse("main.comments.comment"); - } - $tpl->parse("main.comments"); + +mysql_close(); +function comment_get ($comment_id) { + $query = "select c.* from ".CFG_MYSQL_TABPREFIX."comments c where c.comment_id = '".$comment_id."'"; + + error_log($query); + $res = mysql_query($query); + + if (!$res || !mysql_num_rows($res)){ + error_log("RES - " . mysql_errno() . " : " . mysql_error(). " : " .$query . " : " . $res); + return (false); } + + $c = 0; + while ($row = mysql_fetch_array($res)) { + $comments[$c] = $row; + $comments[$c]['comment_date'] = getdate($row['comment_added']); + if ($comments[$c]['comment_date']['hours'] < 10) $comments[$c]['comment_date']['hours'] = '0'.$comments[$c]['comment_date']['hours']; + if ($comments[$c]['comment_date']['minutes'] < 10) $comments[$c]['comment_date']['minutes'] = '0'.$comments[$c]['comment_date']['minutes']; + error_log("Processed comment " . $c); + $c++; + } + + return ($comments); } -$tpl->assign('ACTION', basename($_SERVER['PHP_SELF'])); -$tpl->parse('main'); -$tpl->out('main'); -?> +?> \ No newline at end of file Index: manage_modules.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/admin/manage_modules.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- manage_modules.php 18 Nov 2005 08:24:51 -0000 1.3 +++ manage_modules.php 22 Oct 2006 11:44:00 -0000 1.4 @@ -1,264 +1,264 @@ -<?php -require ('include/admin.inc.php'); -require ('include/modules.inc.php'); - -$tpl = new XTemplate ('templates/manage_modules.tpl.htm'); - -/* - check if there are new modules to be installed - */ - require('include/xml2array.inc.php'); - - $new = 0; - $upgrade = 0; - $failed = 0; - if ($dir = @opendir('../modules')) { - while (($file = readdir($dir)) !== false) { - if (substr($file,0,4) == 'mod_' && is_dir('../modules/'.$file)) { - $query = "select mod_name,mod_version from ".CFG_MYSQL_TABPREFIX."modules where mod_name = '".$file."'"; - $res = mysql_query($query); - $install_file = '../modules/'.$file.'/install/'.$file.'.xml'; - $new_version = get_module_version_from_xml($install_file); - if (mysql_num_rows($res) == 0 && file_exists($install_file)) { // found new module!!! - $module_install = module_install($file); // install it - if ($module_install) { - $tpl->assign('MOD_NAME', $file); - $tpl->assign('ERROR', $module_install); - $tpl->parse('main.failed.module'); - $failed += 1; - } - else { // installed! - $tpl->assign('MOD_NAME', $file); - $tpl->parse('main.installed.module'); - $new += 1; - } - } - else { - $old_version = mysql_result($res, 0, 'mod_version'); - if ($old_version < $new_version) { - $module_install = module_install($file); // upgrade it - if ($module_install) { - $tpl->assign('MOD_NAME', $file); - $tpl->assign('ERROR', $module_install); - $tpl->parse('main.failed.module'); - $failed += 1; - } - else { // installed! - $tpl->assign('MOD_NAME', $file); - $tpl->parse('main.upgraded.module'); - $upgrade += 1; - } - } - } - } - } - closedir($dir); - } - - if ($new > 0) // if new modules were installed - $tpl->parse('main.installed'); - - if ($upgrade > 0) - $tpl->parse('main.upgraded'); - - if ($failed > 0) // if new modules failed to install - $tpl->parse('main.failed'); - - -/* - */ - - - -/* - list of available modules - */ - -$counter = 0; -$uncertified_found = false; - -$modules = module_list ('top'); -if ($modules) { - for ($m = 0; $m < count($modules); $m++) { - if ($m % 2) - $tpl->assign('BGCOLOR', '#ffffff'); - else - $tpl->assign('BGCOLOR', '#efefef'); - - $allowed_pos = explode('|', $modules[$m]['mod_allowed_pos']); - for ($p = 0; $p < count($allowed_pos); $p++) { - $tpl->assign('POS', $allowed_pos[$p]); - if ($modules[$m]['mod_pos'] == $allowed_pos[$p]) - $tpl->parse('main.modules.module.pos.selected'); - - $tpl->parse('main.modules.module.pos'); - } - - $tpl->assign('COUNTER', $counter); - $tpl->assign('MODULE', $modules[$m]); - - if ($m == 0 && count($modules) > 1) { - $tpl->parse('main.modules.module.down'); - } - elseif ($m == count($modules)-1 && count($modules) > 1) { - $tpl->parse('main.modules.module.up'); - } - elseif (count($modules) > 1) { - $tpl->parse('main.modules.module.down'); - $tpl->parse('main.modules.module.up'); - } - - if (!is_module_certified($modules[$m]['mod_name'])) { - $uncertified_found = true; - $tpl->parse('main.modules.module.uncertified'); - } - - $tpl->parse('main.modules.module'); - - $counter++; - } - $tpl->parse('main.modules'); - - -} - - - -$modules = module_list ('sidebar'); -if ($modules) { - for ($m = 0; $m < count($modules); $m++) { - if ($m % 2) - $tpl->assign('BGCOLOR', '#ffffff'); - else - $tpl->assign('BGCOLOR', '#efefef'); - - $allowed_pos = explode('|', $modules[$m]['mod_allowed_pos']); - for ($p = 0; $p < count($allowed_pos); $p++) { - $tpl->assign('POS', $allowed_pos[$p]); - - if ($modules[$m]['mod_pos'] == $allowed_pos[$p]) - $tpl->parse('main.modules.module.pos.selected'); - - $tpl->parse('main.modules.module.pos'); - } - - $tpl->assign('COUNTER', $counter); - $tpl->assign('MODULE', $modules[$m]); - - if ($m == 0 && count($modules) > 1) { - $tpl->parse('main.modules.module.down'); - } - elseif ($m == count($modules)-1 && count($modules) > 1) { - $tpl->parse('main.modules.module.up'); - } - elseif (count($modules) > 1) { - $tpl->parse('main.modules.module.down'); - $tpl->parse('main.modules.module.up'); - } - - if (!is_module_certified($modules[$m]['mod_name'])) { - $uncertified_found = true; - $tpl->parse('main.modules.module.uncertified'); - } - - $tpl->parse('main.modules.module'); - - $counter++; - } - $tpl->parse('main.modules'); -} - - - - -$modules = module_list ('not_visible'); -if ($modules) { - for ($m = 0; $m < count($modules); $m++) { - if ($m % 2) - $tpl->assign('BGCOLOR', '#ffffff'); - else - $tpl->assign('BGCOLOR', '#efefef'); - - $allowed_pos = explode('|', $modules[$m]['mod_allowed_pos']); - for ($p = 0; $p < count($allowed_pos); $p++) { - $tpl->assign('POS', $allowed_pos[$p]); - if ($modules[$m]['mod_pos'] == $allowed_pos[$p]) - $tpl->parse('main.modules.module.pos.selected'); - - $tpl->parse('main.modules.module.pos'); - } - - $tpl->assign('COUNTER', $counter); - $tpl->assign('MODULE', $modules[$m]); - - if ($m == 0 && count($modules) > 1) { - $tpl->parse('main.modules.module.down'); - } - elseif ($m == count($modules)-1 && count($modules) > 1) { - $tpl->parse('main.modules.module.up'); - } - elseif (count($modules) > 1) { - $tpl->parse('main.modules.module.down'); - $tpl->parse('main.modules.module.up'); - } - - if (!is_module_certified($modules[$m]['mod_name'])) { - $uncertified_found = true; - $tpl->parse('main.modules.module.uncertified'); - } - - $tpl->parse('main.modules.module'); - - $counter++; - } - $tpl->parse('main.modules'); - - -} - - - - -$modules = module_list (''); -if ($modules) { - for ($m = 0; $m < count($modules); $m++) { - if ($m % 2) - $tpl->assign('BGCOLOR', '#ffffff'); - else - $tpl->assign('BGCOLOR', '#efefef'); - - $allowed_pos = explode('|', $modules[$m]['mod_allowed_pos']); - - $tpl->parse('main.modules.module.pos_inactive'); - for ($p = 0; $p < count($allowed_pos); $p++) { - $tpl->assign('POS', $allowed_pos[$p]); - $tpl->parse('main.modules.module.pos'); - } - - if (!is_module_certified($modules[$m]['mod_name'])) { - $uncertified_found = true; - $tpl->parse('main.modules.module.uncertified'); - } - - $tpl->assign('COUNTER', $counter); - $tpl->assign('MODULE', $modules[$m]); - $tpl->parse('main.modules.module'); - - $counter++; - } - $tpl->parse('main.modules'); -} -/* - */ - -if ($uncertified_found == true) - $tpl->parse('main.uncertified_warning'); - -$tpl->assign('ACTION', 'module_pos.php'); - -$tpl->parse('main.home'); -$tpl->parse('main'); -$tpl->out('main'); - -mysql_close(); -?> +<?php +require ('include/admin.inc.php'); +require ('include/modules.inc.php'); + +$tpl = new XTemplate ('templates/manage_modules.tpl.htm'); + +/* + check if there are new modules to be installed + */ + require_once('include/xml2array.inc.php'); + + $new = 0; + $upgrade = 0; + $failed = 0; + if ($dir = @opendir('../modules')) { + while (($file = readdir($dir)) !== false) { + if (substr($file,0,4) == 'mod_' && is_dir('../modules/'.$file)) { + $query = "select mod_name,mod_version from ".CFG_MYSQL_TABPREFIX."modules where mod_name = '".$file."'"; + $res = mysql_query($query); + $install_file = '../modules/'.$file.'/install/'.$file.'.xml'; + $new_version = get_module_version_from_xml($install_file); + if (mysql_num_rows($res) == 0 && file_exists($install_file)) { // found new module!!! + $module_install = module_install($file); // install it + if ($module_install) { + $tpl->assign('MOD_NAME', $file); + $tpl->assign('ERROR', $module_install); + $tpl->parse('main.failed.module'); + $failed += 1; + } + else { // installed! + $tpl->assign('MOD_NAME', $file); + $tpl->parse('main.installed.module'); + $new += 1; + } + } + else { + $old_version = mysql_result($res, 0, 'mod_version'); + if ($old_version < $new_version) { + $module_install = module_install($file); // upgrade it + if ($module_install) { + $tpl->assign('MOD_NAME', $file); + $tpl->assign('ERROR', $module_install); + $tpl->parse('main.failed.module'); + $failed += 1; + } + else { // installed! + $tpl->assign('MOD_NAME', $file); + $tpl->parse('main.upgraded.module'); + $upgrade += 1; + } + } + } + } + } + closedir($dir); + } + + if ($new > 0) // if new modules were installed + $tpl->parse('main.installed'); + + if ($upgrade > 0) + $tpl->parse('main.upgraded'); + + if ($failed > 0) // if new modules failed to install + $tpl->parse('main.failed'); + + +/* + */ + + + +/* + list of available modules + */ + +$counter = 0; +$uncertified_found = false; + +$modules = module_list ('top'); +if ($modules) { + for ($m = 0; $m < count($modules); $m++) { + if ($m % 2) + $tpl->assign('BGCOLOR', '#ffffff'); + else + $tpl->assign('BGCOLOR', '#efefef'); + + $allowed_pos = explode('|', $modules[$m]['mod_allowed_pos']); + for ($p = 0; $p < count($allowed_pos); $p++) { + $tpl->assign('POS', $allowed_pos[$p]); + if ($modules[$m]['mod_pos'] == $allowed_pos[$p]) + $tpl->parse('main.modules.module.pos.selected'); + + $tpl->parse('main.modules.module.pos'); + } + + $tpl->assign('COUNTER', $counter); + $tpl->assign('MODULE', $modules[$m]); + + if ($m == 0 && count($modules) > 1) { + $tpl->parse('main.modules.module.down'); + } + elseif ($m == count($modules)-1 && count($modules) > 1) { + $tpl->parse('main.modules.module.up'); + } + elseif (count($modules) > 1) { + $tpl->parse('main.modules.module.down'); + $tpl->parse('main.modules.module.up'); + } + + if (!is_module_certified($modules[$m]['mod_name'])) { + $uncertified_found = true; + $tpl->parse('main.modules.module.uncertified'); + } + + $tpl->parse('main.modules.module'); + + $counter++; + } + $tpl->parse('main.modules'); + + +} + + + +$modules = module_list ('sidebar'); +if ($modules) { + for ($m = 0; $m < count($modules); $m++) { + if ($m % 2) + $tpl->assign('BGCOLOR', '#ffffff'); + else + $tpl->assign('BGCOLOR', '#efefef'); + + $allowed_pos = explode('|', $modules[$m]['mod_allowed_pos']); + for ($p = 0; $p < count($allowed_pos); $p++) { + $tpl->assign('POS', $allowed_pos[$p]); + + if ($modules[$m]['mod_pos'] == $allowed_pos[$p]) + $tpl->parse('main.modules.module.pos.selected'); + + $tpl->parse('main.modules.module.pos'); + } + + $tpl->assign('COUNTER', $counter); + $tpl->assign('MODULE', $modules[$m]); + + if ($m == 0 && count($modules) > 1) { + $tpl->parse('main.modules.module.down'); + } + elseif ($m == count($modules)-1 && count($modules) > 1) { + $tpl->parse('main.modules.module.up'); + } + elseif (count($modules) > 1) { + $tpl->parse('main.modules.module.down'); + $tpl->parse('main.modules.module.up'); + } + + if (!is_module_certified($modules[$m]['mod_name'])) { + $uncertified_found = true; + $tpl->parse('main.modules.module.uncertified'); + } + + $tpl->parse('main.modules.module'); + + $counter++; + } + $tpl->parse('main.modules'); +} + + + + +$modules = module_list ('not_visible'); +if ($modules) { + for ($m = 0; $m < count($modules); $m++) { + if ($m % 2) + $tpl->assign('BGCOLOR', '#ffffff'); + else + $tpl->assign('BGCOLOR', '#efefef'); + + $allowed_pos = explode('|', $modules[$m]['mod_allowed_pos']); + for ($p = 0; $p < count($allowed_pos); $p++) { + $tpl->assign('POS', $allowed_pos[$p]); + if ($modules[$m]['mod_pos'] == $allowed_pos[$p]) + $tpl->parse('main.modules.module.pos.selected'); + + $tpl->parse('main.modules.module.pos'); + } + + $tpl->assign('COUNTER', $counter); + $tpl->assign('MODULE', $modules[$m]); + + if ($m == 0 && count($modules) > 1) { + $tpl->parse('main.modules.module.down'); + } + elseif ($m == count($modules)-1 && count($modules) > 1) { + $tpl->parse('main.modules.module.up'); + } + elseif (count($modules) > 1) { + $tpl->parse('main.modules.module.down'); + $tpl->parse('main.modules.module.up'); + } + + if (!is_module_certified($modules[$m]['mod_name'])) { + $uncertified_found = true; + $tpl->parse('main.modules.module.uncertified'); + } + + $tpl->parse('main.modules.module'); + + $counter++; + } + $tpl->parse('main.modules'); + + +} + + + + +$modules = module_list (''); +if ($modules) { + for ($m = 0; $m < count($modules); $m++) { + if ($m % 2) + $tpl->assign('BGCOLOR', '#ffffff'); + else + $tpl->assign('BGCOLOR', '#efefef'); + + $allowed_pos = explode('|', $modules[$m]['mod_allowed_pos']); + + $tpl->parse('main.modules.module.pos_inactive'); + for ($p = 0; $p < count($allowed_pos); $p++) { + $tpl->assign('POS', $allowed_pos[$p]); + $tpl->parse('main.modules.module.pos'); + } + + if (!is_module_certified($modules[$m]['mod_name'])) { + $uncertified_found = true; + $tpl->parse('main.modules.module.uncertified'); + } + + $tpl->assign('COUNTER', $counter); + $tpl->assign('MODULE', $modules[$m]); + $tpl->parse('main.modules.module'); + + $counter++; + } + $tpl->parse('main.modules'); +} +/* + */ + +if ($uncertified_found == true) + $tpl->parse('main.uncertified_warning'); + +$tpl->assign('ACTION', 'module_pos.php'); + +$tpl->parse('main.home'); +$tpl->parse('main'); +$tpl->out('main'); + +mysql_close(); +?> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:35
|
Update of /cvsroot/comoblog/comoblog/include In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/include Modified Files: libraries.inc.php Added Files: .cvsignore Log Message: work in progress, ditching this server cos its borked ;( Index: libraries.inc.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/include/libraries.inc.php,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- libraries.inc.php 16 Aug 2006 16:46:36 -0000 1.13 +++ libraries.inc.php 22 Oct 2006 11:44:01 -0000 1.14 @@ -14,6 +14,12 @@ function in_supported_patch_list ($ver) { if ($ver == "1.0") return true; + else if ($ver == "1.1") + return true; + else if ($ver == "1.2") + return true; + else if ($ver == "1.3") + return true; else return false; } @@ -32,7 +38,7 @@ { $errors = array(); - require (dirname(__FILE__).'/../admin/include/xml2array.inc.php'); + require_once (dirname(__FILE__).'/../admin/include/xml2array.inc.php'); $xmlparse = &new ParseXML; $xml = $xmlparse->GetXMLTree($script_name); @@ -91,14 +97,16 @@ $query = "delete from ".CFG_MYSQL_TABPREFIX."comments where post_id = '".$post_id."'"; $res = mysql_query($query); - + //TODO - clear cache? - - + + } + + function posts_list ($offset, $howmany) { if (CFG_USE_PATH_INFO == 'no') @@ -186,7 +194,7 @@ function hits_howmany () { - $query = "select count(contentextra2_id) from easymoblog_mod_contentextra2"; + $query = "select count(contentextra2_id) from comoblog_mod_contentextra2"; $res = mysql_query($query); if ($res) { $howmany = mysql_result($res,0,0); @@ -198,7 +206,7 @@ function post_first() { - $query = "select FROM_UNIXTIME(min(post_mail_date)) from easymoblog_posts"; + $query = "select FROM_UNIXTIME(min(post_mail_date)) from comoblog_posts"; $res = mysql_query($query); if ($res) { $howmany = mysql_result($res,0,0); @@ -209,7 +217,7 @@ function comments_howmany () { - $query = "select count(comment_id) from easymoblog_comments"; + $query = "select count(comment_id) from comoblog_comments"; $res = mysql_query($query); if ($res) { $howmany = mysql_result($res,0,0); @@ -539,16 +547,15 @@ } function comment_list ($post_id) { - $query = " - select c.* - from ".CFG_MYSQL_TABPREFIX."comments c - where c.post_id = '".$post_id."' - order by c.comment_added ". CFG_COMMENT_SORT_ORDER . " - "; + $query = "select c.* from ".CFG_MYSQL_TABPREFIX."comments c where c.post_id = '".$post_id."' and c.comment_live='Y' order by c.comment_added " ; //TODO:: add param for CFG_COMMENT_SORT_ORDER + + error_log($query); $res = mysql_query($query); - if (!$res || !mysql_num_rows($res)) - return (false); + if (!$res || !mysql_num_rows($res)){ + error_log("RES - " . mysql_errno() . " : " . mysql_error(). " : " .$query . " : " . $res); + return (false); + } $c = 0; while ($row = mysql_fetch_array($res)) { @@ -556,7 +563,7 @@ $comments[$c]['comment_date'] = getdate($row['comment_added']); if ($comments[$c]['comment_date']['hours'] < 10) $comments[$c]['comment_date']['hours'] = '0'.$comments[$c]['comment_date']['hours']; if ($comments[$c]['comment_date']['minutes'] < 10) $comments[$c]['comment_date']['minutes'] = '0'.$comments[$c]['comment_date']['minutes']; - + error_log("Processed comment " . $c); $c++; } @@ -886,7 +893,7 @@ '".addslashes($post_id)."', '".addslashes($cache_content)."', now()+0, - now()+"/$cache_age." + now()+"/$cache_age." ) "; } --- NEW FILE: .cvsignore --- param.inc.comoblog.local.php |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:35
|
Update of /cvsroot/comoblog/comoblog In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709 Modified Files: htaccess pictureboard.php VERSION add_comment.php index.php list_comments.php Added Files: .cvsignore Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: .cvsignore --- .project Index: add_comment.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/add_comment.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- add_comment.php 24 Feb 2006 00:27:40 -0000 1.4 +++ add_comment.php 22 Oct 2006 11:44:01 -0000 1.5 @@ -17,45 +17,52 @@ else exit(); $form['comment_author'] = ''; -if (isset($_POST['comment_author'])) $form['comment_author'] = $_POST['comment_author']; +if (isset($_POST['comment_author'])) +{ $form['comment_author'] = $_POST['comment_author'];} $form['comment_author_email'] == ''; -if (isset($_POST['comment_author_email'])) $form['comment_author_email'] = $_POST['comment_author_email']; +if (isset($_POST['comment_author_email'])) +{ $form['comment_author_email'] = $_POST['comment_author_email'];} -$form['comment_text'] == ''; -if (isset($_POST['comment_text'])) $form['comment_text'] = $_POST['comment_text']; +$form['comment_author_url'] == ''; +if (isset($_POST['comment_author_url'])) +{ $form['comment_author_url'] = $_POST['comment_author_url'];} + +$form['comment_text'] == '';{ +if (isset($_POST['comment_text'])) $form['comment_text'] = $_POST['comment_text'];} // addition to allow HTML in comments if flagged - needs an admin option to turn on or off $form['comment_convert'] == ''; -if (isset($_POST['comment_convert'])) $form['comment_convert'] = $_POST['comment_convert']; +if (isset($_POST['comment_convert'])) { $form['comment_convert'] = $_POST['comment_convert'];} if ($_SERVER['REQUEST_METHOD'] == 'POST') { $errors = array(); - + if ($form['comment_author'] == '') array_push ($errors, 'Please type your name'); - + if ($form['comment_author_email'] != '' && !is_valid_email($form['comment_author_email'])) - array_push ($errors, 'Invalid email address'); - + array_push ($errors, 'Invalid email address'); + if ($form['comment_text'] == '') array_push ($errors, 'Please write your comment'); - + if (count($errors) == 0) { $comment = $form; - + $comment = comment_add ($comment); - $cookie_period = 60*60*24*365; + $cookie_period = 60*60*24*365; $domain = parse_url(CFG_SITE_URL); $domain = $domain['host']; - setcookie("comment-name", $form['comment_author'], time() + $cookie_period, "/", $domain, 0); - setcookie("comment-email", $form['comment_author_email'], time() + $cookie_period, "/", $domain, 0); + setcookie("comment_name", $form['comment_author'], time() + $cookie_period, "/", $domain, 0); + //TODO: why wont this one save? + setcookie("comment_url", $form['comment_author_url'], time() + $cookie_period, "/", $domain, 0); + setcookie("comment_email", $form['comment_author_email'], time() + $cookie_period, "/", $domain, 0); + - setcookie("comment-url", $form['comment_author_url'], time() + $cookie_period, "/", $domain, 0); - Header ("Location: list_comments.php?i=".$comment['post_id']); exit(); } @@ -74,14 +81,14 @@ $tpl->assign("ACTION", basename($_SERVER['PHP_SELF'])); -if (isset($_COOKIE['comment-name'])) - $form['comment_author'] = $_COOKIE['comment-name']; -if (isset($_COOKIE['comment-email'])) - $form['comment_author_email'] = $_COOKIE['comment-email']; -if (isset($_COOKIE['comment-url'])) - $form['comment_author_url'] = $_COOKIE['comment-url']; +if (isset($_COOKIE['comment_name'])) + $form['comment_author'] = $_COOKIE['comment_name']; +if (isset($_COOKIE['comment_email'])) + $form['comment_author_email'] = $_COOKIE['comment_email']; +if (isset($_COOKIE['comment_url'])) + $form['comment_author_url'] = $_COOKIE['comment_url']; $tpl->assign("FORM", $form); - + // html comments are allowed if (CFG_INTERACTION_HTML_COMMENTS == 'yes'){ Index: index.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/index.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- index.php 16 Aug 2006 16:46:36 -0000 1.6 +++ index.php 22 Oct 2006 11:44:01 -0000 1.7 @@ -1,5 +1,5 @@ <?php -if (!file_exists('include/param.inc.php')) { +if (!file_exists('include/param.inc.'. $_SERVER['SERVER_NAME'].'.php')) { Header ('Location: _install/install.php'); exit; } @@ -32,12 +32,12 @@ $y = substr($current_date,0,4); $m = substr($current_date,4,2); $d = substr($current_date,6,2); - + $current_timestamp = mktime(0,0,0,$m,$d,$y); if ($current_timestamp > time() || $current_timestamp <= 0) $current_timestamp = time(); } - else + else $current_timestamp = time(); } else { @@ -78,11 +78,11 @@ $posts[$c]['post_mail_date'] = strftime($CAL_DATE_FORMAT." %H:%M", $posts[$c]['post_mail_date']); $tpl->assign('POST', $posts[$c]); - + // topic icon if ($posts[$c]['topic_id'] != 0) $tpl->parse('main.post.topic'); - + // images if ($posts[$c]['post_images'] > 0) { $query = " @@ -92,7 +92,7 @@ and img_display = 'attach' "; $res = mysql_query($query); - + while ($row = mysql_fetch_assoc($res)) { if (eregi('\.3g2',$row['img_name'])) { $tpl->assign('IMAGE', $row); @@ -105,14 +105,14 @@ else { $tpl->assign('IMAGE', $row); $tpl->parse('main.post.img'); - } + } } } - + // author email if (CFG_INTERACTION_AUTHOR == 'yes') $tpl->parse('main.post.author'); - + // interaction bar if (CFG_INTERACTION_COMMENTS == 'yes') $tpl->parse('main.post.comment_button'); @@ -121,7 +121,7 @@ $tpl->parse('main.post.trackback_button'); } - + $tpl->parse('main.post'); } } @@ -144,7 +144,7 @@ if (count($TOP_MODULES) > 0) { for ($mod_cnt = 0; $mod_cnt < count($TOP_MODULES); $mod_cnt++) { // TODO get from cache - // or run query and store in cache + // or run query and store in cache include_once (CFG_BASE_PATH.'/modules/'.$TOP_MODULES[$mod_cnt].'/'.$TOP_MODULES[$mod_cnt].'.php'); $tpl->assign('TOP_MODULE',$mod_contents); $tpl->parse('main.top_bar.top_module'); Index: list_comments.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/list_comments.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- list_comments.php 16 Aug 2005 05:49:43 -0000 1.1.1.1 +++ list_comments.php 22 Oct 2006 11:44:01 -0000 1.2 @@ -1,45 +1,47 @@ -<?php -require_once ("include/config.inc.php"); - -if (CFG_INTERACTION_COMMENTS != 'yes') { - error_404(); -} - -$tpl = new XTemplate ("templates/list_comments.tpl.htm"); - -$tpl->assign('TXT', $TXT); - -$tpl->assign('CFG_BODY_BGCOLOR', CFG_BODY_BGCOLOR); -$tpl->assign('CFG_BACKGROUND_COLOR', CFG_BACKGROUND_COLOR); - -$post_id = ''; -if (isset($_GET['i'])) $post_id = $_GET['i']; - -$post = post_details ($post_id); -$tpl->assign("POST", $post); - -$comments = comment_list($post_id); - -if ($comments) { - for ($c = 0; $c < count($comments); $c++) { - $comments[$c]['comment_author_email'] = antispam ($comments[$c]['comment_author_email'], true); - - $tpl->assign("COMMENT", $comments[$c]); - - if ($comments[$c]['comment_author_email'] != '') - $tpl->parse("main.comments.comment.email"); - - $tpl->parse("main.comments.comment"); - } - $tpl->parse("main.comments"); -} -else { - $tpl->parse("main.nocomments"); -} - -$tpl->parse("main"); -$tpl->out("main"); - -// close db connection -mysql_close (); +<?php +require_once ("include/config.inc.php"); + +if (CFG_INTERACTION_COMMENTS != 'yes') { + error_404(); +} + +$tpl = new XTemplate ("templates/list_comments.tpl.htm"); + +$tpl->assign('TXT', $TXT); + +$tpl->assign('CFG_BODY_BGCOLOR', CFG_BODY_BGCOLOR); +$tpl->assign('CFG_BACKGROUND_COLOR', CFG_BACKGROUND_COLOR); + +$post_id = ''; +if (isset($_GET['i'])) $post_id = $_GET['i']; + +$post = post_details ($post_id); +$tpl->assign("POST", $post); + +$comments = comment_list($post_id); + +if ($comments) { + error_log ("got comment_id" . $comments[$c]['comment_id'] ); + + for ($c = 0; $c < count($comments); $c++) { + $comments[$c]['comment_author_email'] = antispam ($comments[$c]['comment_author_email'], true); + + $tpl->assign("COMMENT", $comments[$c]); + + if ($comments[$c]['comment_author_email'] != '') + $tpl->parse("main.comments.comment.email"); + + $tpl->parse("main.comments.comment"); + } + $tpl->parse("main.comments"); +} +else { + $tpl->parse("main.nocomments"); +} + +$tpl->parse("main"); +$tpl->out("main"); + +// close db connection +mysql_close (); ?> \ No newline at end of file Index: htaccess =================================================================== RCS file: /cvsroot/comoblog/comoblog/htaccess,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- htaccess 17 Feb 2006 15:16:36 -0000 1.1 +++ htaccess 22 Oct 2006 11:44:01 -0000 1.2 @@ -6,16 +6,10 @@ <IfModule mod_rewrite.c> RewriteEngine on - # Modify the RewriteBase - # If you are using comoblog in a subdirectory and - # the rewrite rules are not working properly, - # you may need to change this to the direcotory - #RewriteBase /comoblog - - # make sure what we're looking for donsnt exist + # make sure what we're looking for dosn't exist RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d - + # we map urls in to form of # /123/abcdefghijklmon # or Index: VERSION =================================================================== RCS file: /cvsroot/comoblog/comoblog/VERSION,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- VERSION 23 Feb 2006 12:57:52 -0000 1.2 +++ VERSION 22 Oct 2006 11:44:01 -0000 1.3 @@ -1 +1 @@ -1.2 +1.3 Index: pictureboard.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/pictureboard.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- pictureboard.php 16 Aug 2006 11:06:14 -0000 1.1 +++ pictureboard.php 22 Oct 2006 11:44:01 -0000 1.2 @@ -1,9 +1,9 @@ <?php /* ADDED in 1.3 * Picture board shows a page full of images in a random or chronological order - * + * */ - + /* TODO add these constants to xml and upgrade * $limit = CFG_PICTURE_BOARD_LIMIT; * $order =""; @@ -11,14 +11,14 @@ $order= "post_date asc"; }else{ $order="rand()"; - } + } $dont_show_these =0; * $dont_show_these= CFG_PICTURE_BOARD_NO_SHOW; */ -if (!file_exists('include/param.inc.php')) { +if (!file_exists('include/param.inc'. $_SERVER['SERVER_NAME'].'.php')) { Header ('Location: _install/install.php'); exit; } @@ -30,7 +30,7 @@ exit; } - + $xtpl = new XTemplate ("templates/pictureboard.tpl.html"); //TODO - move to paramater $tpl->assign ('PAGE_TITLE', "Picture Board"); @@ -38,7 +38,7 @@ $images = get_images($limit); while ($row = mysql_fetch_assoc($images)) { - + $row['hasthumb'] =""; if ($row['img_thumb'] =="Y"){$row['hasthumb'] ="_thumb";} @@ -56,7 +56,7 @@ $query =" select " . "i.* ,p.post_mail_subject " . "from " . - "easymoblog_images i, easymoblog_posts p " . + "comoblog_images i, comoblog_posts p " . "where " . "i.post_id > 0 and " . "i.post_id not in ($dont_show_these) and " . |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:35
|
Update of /cvsroot/comoblog/modules/mod_postbytopic In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_postbytopic Modified Files: mod_postbytopic.txt Log Message: work in progress, ditching this server cos its borked ;( Index: mod_postbytopic.txt =================================================================== RCS file: /cvsroot/comoblog/modules/mod_postbytopic/mod_postbytopic.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- mod_postbytopic.txt 28 Nov 2005 11:13:14 -0000 1.1 +++ mod_postbytopic.txt 22 Oct 2006 11:44:01 -0000 1.2 @@ -1,11 +1,11 @@ -Version RC1 (for easymoblog 0.51) +Version RC1 (for comoblog 0.51) -This is a working module, but is released as a Request For Comments, +This is a working module, but is released as a Request For Comments, There needs to be a way to allow the module to return a null or 0 id to topic.php so we can see the posts that are not assigned to any topic. -While its easy enough to make this change in topic.php, that would leave your code out of sync, +While its easy enough to make this change in topic.php, that would leave your code out of sync, so its not something we should address ourselves, I'd rather see Ubik and the team make an *official* change and release let me know if you think of any improvements to this module (and if you have ideas for new ones) |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:35
|
Update of /cvsroot/comoblog/modules/mod_prevnext/css In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_prevnext/css Modified Files: mod_prevnext.css.php Log Message: work in progress, ditching this server cos its borked ;( Index: mod_prevnext.css.php =================================================================== RCS file: /cvsroot/comoblog/modules/mod_prevnext/css/mod_prevnext.css.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- mod_prevnext.css.php 28 Nov 2005 10:31:34 -0000 1.1 +++ mod_prevnext.css.php 22 Oct 2006 11:44:01 -0000 1.2 @@ -12,13 +12,13 @@ #mod_prevnext { font-size: '.CFG_MOD_PREVNEXT_FONT_SIZE.'px; font-family: '.CFG_MOD_PREVNEXT_FONT_FAMILY.'; - color: #'.CFG_MOD_PREVNEXT_COLOR.'; - - // can be used for setting the position etc + color: #'.CFG_MOD_PREVNEXT_COLOR.'; + + /* can be used for setting the position etc */ '. CFG_MOD_PREVNEXT_EXTRASTYLE .' - - - + + + } #mod_prevnext a { |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:34
|
Update of /cvsroot/comoblog/modules/mod_fortune_db/css In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_fortune_db/css Modified Files: mod_fortune_db.css.php Log Message: work in progress, ditching this server cos its borked ;( Index: mod_fortune_db.css.php =================================================================== RCS file: /cvsroot/comoblog/modules/mod_fortune_db/css/mod_fortune_db.css.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- mod_fortune_db.css.php 16 Feb 2006 14:22:19 -0000 1.2 +++ mod_fortune_db.css.php 22 Oct 2006 11:44:01 -0000 1.3 @@ -1,26 +1,26 @@ -<?php -require_once (dirname(__FILE__).'/../../../include/config.inc.php'); -Header ('Content-type: text/css'); - echo ' - #mod_fortune_db { - font-size: '.CFG_MOD_FORTUNE_DB_FONT_SIZE.'px; - font-family: '.CFG_MOD_FORTUNE_DB_FONT_FAMILY.'; - color: #'.CFG_MOD_FORTUNE_DB_COLOR.'; - - /* can be used for setting the position , extra info - or even to change the things you set above*/ - '. CFG_MOD_FORTUNE_DB_EXTRASTYLE .' - } - #mod_fortune_db a { - color: #'.CFG_MOD_FORTUNE_DB_A_COLOR.'; - text-decoration: '.CFG_MOD_FORTUNE_DB_A_TEXT_DECORATION.'; - } - - #mod_fortune_db a:hover { - color: #'.CFG_MOD_FORTUNE_DB_A_HOVER_COLOR.'; - text-decoration: '.CFG_MOD_FORTUNE_DB_A_HOVER_TEXT_DECORATION.'; - } - '; - -mysql_close(); +<?php +require_once (dirname(__FILE__).'/../../../include/config.inc.php'); +Header ('Content-type: text/css'); + echo ' + #mod_fortune_db { + font-size: '.CFG_MOD_FORTUNE_DB_FONT_SIZE.'px; + font-family: '.CFG_MOD_FORTUNE_DB_FONT_FAMILY.'; + color: #'.CFG_MOD_FORTUNE_DB_COLOR.'; + + /* can be used for setting the position , extra info + or even to change the things you set above*/ + '. CFG_MOD_FORTUNE_DB_EXTRASTYLE .' + } + #mod_fortune_db a { + color: #'.CFG_MOD_FORTUNE_DB_A_COLOR.'; + text-decoration: '.CFG_MOD_FORTUNE_DB_A_TEXT_DECORATION.'; + } + + #mod_fortune_db a:hover { + color: #'.CFG_MOD_FORTUNE_DB_A_HOVER_COLOR.'; + text-decoration: '.CFG_MOD_FORTUNE_DB_A_HOVER_TEXT_DECORATION.'; + } + '; + +mysql_close(); ?> \ No newline at end of file |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:34
|
Update of /cvsroot/comoblog/comoblog/templates In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/templates Modified Files: add_comment.tpl.htm list_comments.tpl.htm Log Message: work in progress, ditching this server cos its borked ;( Index: list_comments.tpl.htm =================================================================== RCS file: /cvsroot/comoblog/comoblog/templates/list_comments.tpl.htm,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- list_comments.tpl.htm 17 Feb 2006 15:16:37 -0000 1.2 +++ list_comments.tpl.htm 22 Oct 2006 11:44:00 -0000 1.3 @@ -1,30 +1,34 @@ -<!-- BEGIN: main -->{FILE "templates/header.tpl.htm"} -<div id="comments"> -<!-- BEGIN: nocomments --> -<div class="comment"> -<h1>{TXT.no_comments}</h1> -<p> </p> -</div> -<!-- END: nocomments --> -<!-- BEGIN: comments --> -<h1>{TXT.comments_for_post}:<br />{POST.post_mail_subject}</h1> -<!-- BEGIN: comment --> -<div class="comment"> -<p class="comment_header"> -<a href="{COMMENT.comment_author_url} rel="nofollow"">{COMMENT.comment_author}</a> -<!-- BEGIN: email --> - {COMMENT.comment_author_email} - <!-- END: email --><br /> - - {COMMENT.comment_date.year}/{COMMENT.comment_date.mon}/{COMMENT.comment_date.mday} {COMMENT.comment_date.hours}:{COMMENT.comment_date.minutes}</p> -<p>{COMMENT.comment_text}</p> -</div> -<!-- END: comment --> -<!-- END: comments --> - -<div class="comment"> -<p><a href="add_comment.php?i={POST.post_id}" class="post_footer">{TXT.add_comment}</a></p> -</div> -</div> -{FILE "templates/footer.tpl.htm"} -<!-- END: main --> +<!-- BEGIN: main -->{FILE "templates/header.tpl.htm"} +<div id="comments"> +<h1>{TXT.comments_for_post}: {POST.post_mail_subject}</h1> +Note, that some comments may be in the moderation queue, and so not yet visible. +<!-- BEGIN: nocomments --> +<div class="comment"> +<h1>{TXT.no_comments}</h1> +<p> </p> +</div> +<!-- END: nocomments --> +<!-- BEGIN: comments --> + +<!-- TODO: this should be moved to TXT.no_comments_reason --> +<!-- BEGIN: comment --> +<div class="comment"> +<p class="comment_header"> +<a href="{COMMENT.comment_author_url} rel="nofollow"">{COMMENT.comment_author}</a> +<!-- BEGIN: email --> + {COMMENT.comment_author_email} + <!-- END: email --><br /> + + {COMMENT.comment_date.year}/{COMMENT.comment_date.mon}/{COMMENT.comment_date.mday} {COMMENT.comment_date.hours}:{COMMENT.comment_date.minutes} + </p> +<p>{COMMENT.comment_text}</p> +</div> +<!-- END: comment --> +<!-- END: comments --> + +<div class="comment"> +<p><a href="add_comment.php?i={POST.post_id}" class="post_footer">{TXT.add_comment}</a></p> +</div> +</div> +{FILE "templates/footer.tpl.htm"} +<!-- END: main --> Index: add_comment.tpl.htm =================================================================== RCS file: /cvsroot/comoblog/comoblog/templates/add_comment.tpl.htm,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- add_comment.tpl.htm 24 Feb 2006 00:18:32 -0000 1.4 +++ add_comment.tpl.htm 22 Oct 2006 11:44:00 -0000 1.5 @@ -14,7 +14,7 @@ <p> {TXT.your_url} <br /> -<input type="text" name="comment_author_url" id="comment_author_url" value="{FORM.comment_author_url} class="comment_form" /> +<input type="text" name="comment_author_url" id="comment_author_url" value="{FORM.comment_author_url}" class="comment_form" /> </p> <p> {TXT.comment}<br /> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:34
|
Update of /cvsroot/comoblog/modules/mod_fortune_db In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_fortune_db Modified Files: mod_fortune_db.php Log Message: work in progress, ditching this server cos its borked ;( Index: mod_fortune_db.php =================================================================== RCS file: /cvsroot/comoblog/modules/mod_fortune_db/mod_fortune_db.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- mod_fortune_db.php 16 Feb 2006 14:22:19 -0000 1.2 +++ mod_fortune_db.php 22 Oct 2006 11:44:00 -0000 1.3 @@ -1,18 +1,18 @@ -<?php -if (in_array('mod_fortune_db', $SIDEBAR_MODULES)) $mod_pos = 'sidebar'; -else $mod_pos = 'top'; - -require_once (CFG_BASE_PATH.'/modules/mod_fortune_db/include/mod_fortune_db.inc.php'); - -$fortune_db = mod_fortune_db(); - -if ($fortune_db) { - $mod_fortune_db_tpl = new XTemplate (CFG_BASE_PATH.'/modules/mod_fortune_db/templates/'.$mod_pos.'/mod_fortune_db.tpl.htm'); - $mod_fortune_db_tpl->assign('MOD_FORTUNE_CONTENT', $fortune_db); - $mod_fortune_db_tpl->assign('MOD_FORTUNE_DB_TITLE', CFG_MOD_FORTUNE_DB_TITLE); - $mod_fortune_db_tpl->parse('main'); - $mod_contents = $mod_fortune_db_tpl->text("main"); - }else { - $mod_contents = 'no quote today'; - } -?> +<?php +if (in_array('mod_fortune_db', $SIDEBAR_MODULES)) $mod_pos = 'sidebar'; +else $mod_pos = 'top'; + +require_once (CFG_BASE_PATH.'/modules/mod_fortune_db/include/mod_fortune_db.inc.php'); + +$fortune_db = mod_fortune_db(); + +if ($fortune_db) { + $mod_fortune_db_tpl = new XTemplate (CFG_BASE_PATH.'/modules/mod_fortune_db/templates/'.$mod_pos.'/mod_fortune_db.tpl.htm'); + $mod_fortune_db_tpl->assign('MOD_FORTUNE_CONTENT', $fortune_db); + $mod_fortune_db_tpl->assign('MOD_FORTUNE_DB_TITLE', CFG_MOD_FORTUNE_DB_TITLE); + $mod_fortune_db_tpl->parse('main'); + $mod_contents = $mod_fortune_db_tpl->text("main"); + }else { + $mod_contents = 'no quote today'; + } +?> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:32
|
Update of /cvsroot/comoblog/modules/mod_randomthumb/css In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_randomthumb/css Modified Files: mod_randomthumb.css.php Log Message: work in progress, ditching this server cos its borked ;( Index: mod_randomthumb.css.php =================================================================== RCS file: /cvsroot/comoblog/modules/mod_randomthumb/css/mod_randomthumb.css.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- mod_randomthumb.css.php 27 Nov 2005 19:31:21 -0000 1.1 +++ mod_randomthumb.css.php 22 Oct 2006 11:43:59 -0000 1.2 @@ -6,12 +6,12 @@ if ($mod_pos == 'sidebar') { echo ' - #mod_randomthumb { - // can be used for setting the position etc etc + #mod_randomthumb { + /* can be used for setting the position etc etc */ '. CFG_MOD_RANDOMTHUMB_EXTRASTYLE .' font-size: '.CFG_MOD_RANDOMTHUMB_FONT_SIZE.'px; font-family: '.CFG_MOD_RANDOMTHUMB_FONT_FAMILY.'; - color: #'.CFG_MOD_RANDOMTHUMB_COLOR.'; + color: #'.CFG_MOD_RANDOMTHUMB_COLOR.'; } #mod_randomthumb a { color: #'.CFG_MOD_RANDOMTHUMB_A_COLOR.'; @@ -25,7 +25,7 @@ width : ' . CFG_MOD_RANDOMTHUMB_IMG_WIDTH.'px; border: ' . CFG_MOD_RANDOMTHUMB_IMG_BORDER_WIDTH .'; }'; - + } mysql_close(); ?> \ No newline at end of file |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:27
|
Update of /cvsroot/comoblog/comoblog/modules/mod_navchoice/templates/top_tabs In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_navchoice/templates/top_tabs Added Files: mod_navchoice.tpl.htm Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: mod_navchoice.tpl.htm --- <!-- BEGIN: main --> <div id="mod_showpage"> <ul> <!-- BEGIN: item --> <li> <a href="{ITEM.showpage_nav_link}" class="{ITEM.showpage_nav_class}"><strong>{ITEM.showpage_nav_text}</strong></a> </li> <!-- END: item --> </ul> </div> <!-- END: main --> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:27
|
Update of /cvsroot/comoblog/comoblog/modules/mod_blogrolling2/templates/top In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_blogrolling2/templates/top Added Files: mod_blogrolling2.tpl.htm Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: mod_blogrolling2.tpl.htm --- <!-- BEGIN: main --> <select name="mod_blogrolling2" class="topbar_selector" onchange="if(this.value!='nolink') window.open(this.value,'','');"> <option value="nolink">Other Places</option> <!-- BEGIN: item --> <option value="{ITEM.blogrolling2_url}">{ITEM.blogrolling2_title}</option> <!-- END: item --> </select> <!-- END: main --> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:27
|
Update of /cvsroot/comoblog/comoblog/modules/mod_navchoice/css In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_navchoice/css Added Files: mod_navchoice.css.php Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: mod_navchoice.css.php --- <?php require_once (dirname(__FILE__).'/../../../include/config.inc.php'); Header ('Content-type: text/css'); if (in_array('mod_navchoice', $SIDEBAR_MODULES)) $mod_pos = 'sidebar'; else $mod_pos = 'top'; if ($mod_pos == 'sidebar') { echo ' .mod_navchoice { font-family: '.CFG_MOD_NAVCHOICE_FONT_FAMILY .'; font-size: '.CFG_MOD_NAVCHOICE_FONT_SIZE .'px; font-color: #'.CFG_MOD_NAVCHOICE_FONT_COLOR .'; font-style: '.CFG_MOD_NAVCHOICE_FONT_STYLE .'; text-align: '.CFG_MOD_NAVCHOICE_TEXT_ALIGN .'; border-style: '.CFG_MOD_NAVCHOICE_BORDER_STYLE.'; border-width: '.CFG_MOD_NAVCHOICE_BORDER_WIDTH.'; border-color: #'.CFG_MOD_NAVCHOICE_BORDER_COLOR.'; background-color:#'.CFG_MOD_NAVCHOICE_BGCOLOR .'; } '; } mysql_close(); ?> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:27
|
Update of /cvsroot/comoblog/comoblog/include/pear/Text/Password In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/include/pear/Text/Password Added Files: Password.php Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: Password.php --- <?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * Class to create passwords * * PHP versions 4 and 5 * * LICENSE: This source file is subject to version 3.0 of the PHP license * that is available through the world-wide-web at the following URI: * http://www.php.net/license/3_0.txt. If you did not receive a copy of * the PHP License and are unable to obtain it through the web, please * send a note to li...@ph... so we can mail you a copy immediately. * * @category Text * @package Text_Password * @author Martin Jansen <mj...@ph...> * @author Olivier Vanhoucke <ol...@ph...> * @copyright 2004-2005 Martin Jansen, Olivier Vanhoucke * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version CVS: $Id: Password.php,v 1.1 2006/10/22 11:44:18 iamdecal Exp $ * @link http://pear.php.net/package/Text_Password */ /** * Number of possible characters in the password */ $_Text_Password_NumberOfPossibleCharacters = 0; /** * Main class for the Text_Password package * * @category Text * @package Text_Password * @author Martin Jansen <mj...@ph...> * @author Olivier Vanhoucke <ol...@ph...> * @copyright 2004-2005 Martin Jansen, Olivier Vanhoucke * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/Text_Password */ class Text_Password { /** * Create a single password. * * @access public * @param integer Length of the password. * @param string Type of password (pronounceable, unpronounceable) * @param string Character which could be use in the * unpronounceable password ex : 'A,B,C,D,E,F,G' * or numeric, alphabetical or alphanumeric. * @return string Returns the generated password. */ function create($length = 10, $type = 'pronounceable', $chars = '') { switch ($type) { case 'unpronounceable' : return Text_Password::_createUnpronounceable($length, $chars); case 'pronounceable' : default : return Text_Password::_createPronounceable($length); } } /** * Create multiple, different passwords * * Method to create a list of different passwords which are * all different. * * @access public * @param integer Number of different password * @param integer Length of the password * @param string Type of password (pronounceable, unpronounceable) * @param string Character which could be use in the * unpronounceable password ex : 'A,B,C,D,E,F,G' * or numeric, alphabetical or alphanumeric. * @return array Array containing the passwords */ function createMultiple($number, $length = 10, $type = 'pronounceable', $chars = '') { $passwords = array(); while ($number > 0) { while (true) { $password = Text_Password::create($length, $type, $chars); if (!in_array($password, $passwords)) { $passwords[] = $password; break; } } $number--; } return $passwords; } /** * Create password from login * * Method to create password from login * * @access public * @param string Login * @param string Type * @param integer Key * @return string */ function createFromLogin($login, $type, $key = 0) { switch ($type) { case 'reverse': return strrev($login); case 'shuffle': return Text_Password::_shuffle($login); case 'xor': return Text_Password::_xor($login, $key); case 'rot13': return str_rot13($login); case 'rotx': return Text_Password::_rotx($login, $key); case 'rotx++': return Text_Password::_rotxpp($login, $key); case 'rotx--': return Text_Password::_rotxmm($login, $key); case 'ascii_rotx': return Text_Password::_asciiRotx($login, $key); case 'ascii_rotx++': return Text_Password::_asciiRotxpp($login, $key); case 'ascii_rotx--': return Text_Password::_asciiRotxmm($login, $key); } } /** * Create multiple, different passwords from an array of login * * Method to create a list of different password from login * * @access public * @param array Login * @param string Type * @param integer Key * @return array Array containing the passwords */ function createMultipleFromLogin($login, $type, $key = 0) { $passwords = array(); $number = count($login); $save = $number; while ($number > 0) { while (true) { $password = Text_Password::createFromLogin($login[$save - $number], $type, $key); if (!in_array($password, $passwords)) { $passwords[] = $password; break; } } $number--; } return $passwords; } /** * Helper method to create password * * Method to create a password from a login * * @access private * @param string Login * @param integer Key * @return string */ function _xor($login, $key) { $tmp = ''; for ($i = 0; $i < strlen($login); $i++) { $next = ord($login{$i}) ^ $key; if ($next > 255) { $next -= 255; } elseif ($next < 0) { $next += 255; } $tmp .= chr($next); } return $tmp; } /** * Helper method to create password * * Method to create a password from a login * lowercase only * * @access private * @param string Login * @param integer Key * @return string */ function _rotx($login, $key) { $tmp = ''; $login = strtolower($login); for ($i = 0; $i < strlen($login); $i++) { if ((ord($login{$i}) >= 97) && (ord($login{$i}) <= 122)) { // 65, 90 for uppercase $next = ord($login{$i}) + $key; if ($next > 122) { $next -= 26; } elseif ($next < 97) { $next += 26; } $tmp .= chr($next); } else { $tmp .= $login{$i}; } } return $tmp; } /** * Helper method to create password * * Method to create a password from a login * lowercase only * * @access private * @param string Login * @param integer Key * @return string */ function _rotxpp($login, $key) { $tmp = ''; $login = strtolower($login); for ($i = 0; $i < strlen($login); $i++, $key++) { if ((ord($login{$i}) >= 97) && (ord($login{$i}) <= 122)) { // 65, 90 for uppercase $next = ord($login{$i}) + $key; if ($next > 122) { $next -= 26; } elseif ($next < 97) { $next += 26; } $tmp .= chr($next); } else { $tmp .= $login{$i}; } } return $tmp; } /** * Helper method to create password * * Method to create a password from a login * lowercase only * * @access private * @param string Login * @param integer Key * @return string */ function _rotxmm($login, $key) { $tmp = ''; $login = strtolower($login); for ($i = 0; $i < strlen($login); $i++, $key--) { if ((ord($login{$i}) >= 97) && (ord($login{$i}) <= 122)) { // 65, 90 for uppercase $next = ord($login{$i}) + $key; if ($next > 122) { $next -= 26; } elseif ($next < 97) { $next += 26; } $tmp .= chr($next); } else { $tmp .= $login{$i}; } } return $tmp; } /** * Helper method to create password * * Method to create a password from a login * * @access private * @param string Login * @param integer Key * @return string */ function _asciiRotx($login, $key) { $tmp = ''; for ($i = 0; $i < strlen($login); $i++) { $next = ord($login{$i}) + $key; if ($next > 255) { $next -= 255; } elseif ($next < 0) { $next += 255; } switch ($next) { // delete white space case 0x09: case 0x20: case 0x0A: case 0x0D: $next++; } $tmp .= chr($next); } return $tmp; } /** * Helper method to create password * * Method to create a password from a login * * @access private * @param string Login * @param integer Key * @return string */ function _asciiRotxpp($login, $key) { $tmp = ''; for ($i = 0; $i < strlen($login); $i++, $key++) { $next = ord($login{$i}) + $key; if ($next > 255) { $next -= 255; } elseif ($next < 0) { $next += 255; } switch ($next) { // delete white space case 0x09: case 0x20: case 0x0A: case 0x0D: $next++; } $tmp .= chr($next); } return $tmp; } /** * Helper method to create password * * Method to create a password from a login * * @access private * @param string Login * @param integer Key * @return string */ function _asciiRotxmm($login, $key) { $tmp = ''; for ($i = 0; $i < strlen($login); $i++, $key--) { $next = ord($login{$i}) + $key; if ($next > 255) { $next -= 255; } elseif ($next < 0) { $next += 255; } switch ($next) { // delete white space case 0x09: case 0x20: case 0x0A: case 0x0D: $next++; } $tmp .= chr($next); } return $tmp; } /** * Helper method to create password * * Method to create a password from a login * * @access private * @param string Login * @return string */ function _shuffle($login) { $tmp = array(); for ($i = 0; $i < strlen($login); $i++) { $tmp[] = $login{$i}; } shuffle($tmp); return implode($tmp, ''); } /** * Create pronounceable password * * This method creates a string that consists of * vowels and consonats. * * @access private * @param integer Length of the password * @return string Returns the password */ function _createPronounceable($length) { global $_Text_Password_NumberOfPossibleCharacters; $retVal = ''; /** * List of vowels and vowel sounds */ $v = array('a', 'e', 'i', 'o', 'u', 'ae', 'ou', 'io', 'ea', 'ou', 'ia', 'ai' ); /** * List of consonants and consonant sounds */ $c = array('b', 'c', 'd', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'r', 's', 't', 'u', 'v', 'w', 'tr', 'cr', 'fr', 'dr', 'wr', 'pr', 'th', 'ch', 'ph', 'st', 'sl', 'cl' ); $v_count = 12; $c_count = 29; $_Text_Password_NumberOfPossibleCharacters = $v_count + $c_count; for ($i = 0; $i < $length; $i++) { $retVal .= $c[mt_rand(0, $c_count-1)] . $v[mt_rand(0, $v_count-1)]; } return substr($retVal, 0, $length); } /** * Create unpronounceable password * * This method creates a random unpronounceable password * * @access private * @param integer Length of the password * @param string Character which could be use in the * unpronounceable password ex : 'ABCDEFG' * or numeric, alphabetical or alphanumeric. * @return string Returns the password */ function _createUnpronounceable($length, $chars) { global $_Text_Password_NumberOfPossibleCharacters; $password = ''; /** * List of character which could be use in the password */ switch($chars) { case 'alphanumeric': $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; $_Text_Password_NumberOfPossibleCharacters = 62; break; case 'alphabetical': $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; $_Text_Password_NumberOfPossibleCharacters = 52; break; case 'numeric': $chars = '0123456789'; $_Text_Password_NumberOfPossibleCharacters = 10; break; case '': $chars = '_#@%&ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; $_Text_Password_NumberOfPossibleCharacters = 67; break; default: /** * Some characters shouldn't be used */ $chars = trim($chars); $chars = str_replace(array('+', '|', '$', '^', '/', '\\', ','), '', $chars); $_Text_Password_NumberOfPossibleCharacters = strlen($chars); } /** * Generate password */ for ($i = 0; $i < $length; $i++) { $num = mt_rand(0, $_Text_Password_NumberOfPossibleCharacters - 1); $password .= $chars{$num}; } /** * Return password */ return $password; } } ?> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:25
|
Update of /cvsroot/comoblog/comoblog/include/pear/Image In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/include/pear/Image Added Files: Text.php Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: Text.php --- <?php /** * Image_Text - Advanced text maipulations in images * * Image_Text provides advanced text manipulation facilities for GD2 * image generation with PHP. Simply add text clippings to your images, * let the class automatically determine lines, rotate text boxes around * their center or top left corner. These are only a couple of features * Image_Text provides. * @package Image_Text * @license The PHP License, version 3.0 * @author Tobias Schlitt <to...@ph...> * @category images */ /** * [...1161 lines suppressed...] // Get each paragraph $paras = explode("\n",$this->_text); // loop though the paragraphs // and get each word (token) foreach($paras as $para) { $words = explode(' ',$para); foreach($words as $word) { $this->_tokens[] = $word; } // add a "\n" to mark the end of a paragraph $this->_tokens[] = "\n"; } // we do not need an end paragraph as the last token array_pop($this->_tokens); } } |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:25
|
Update of /cvsroot/comoblog/comoblog/modules/mod_showpage/include In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_showpage/include Added Files: mod_showpage.inc.php Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: mod_showpage.inc.php --- <?php function mod_showpage_details_from_text ($item_text) { $query = "select * from ".CFG_MYSQL_TABPREFIX."mod_showpage where showpage_nav_text = '".$item_text."'"; $res = mysql_query($query); if (!$res || !mysql_num_rows($res)) return (false); $item = mysql_fetch_assoc($res); return ($item); } function mod_showpage_details ($item_id) { $query = "select * from ".CFG_MYSQL_TABPREFIX."mod_showpage where showpage_id = '".$item_id."'"; $res = mysql_query($query); if (!$res || !mysql_num_rows($res)) return (false); $item = mysql_fetch_assoc($res); return ($item); } function mod_showpage_adminlist () { $query = " select b.* from ".CFG_MYSQL_TABPREFIX."mod_showpage b order by b.showpage_display_order "; $res = mysql_query($query); if (!$res || !mysql_num_rows($res)) return (false); $items = array(); while ($row = mysql_fetch_assoc($res)) { $items[] = $row; } return ($items); } function mod_showpage_list () { $query = " select b.* from ".CFG_MYSQL_TABPREFIX."mod_showpage b where showpage_visible ='Y' order by b.showpage_display_order"; #echo $query; $res = mysql_query($query); if (!$res || !mysql_num_rows($res)) return (false); $items = array(); while ($row = mysql_fetch_assoc($res)) { $items[] = $row; } return ($items); } function mod_showpage_add ($item) { $query = "select max(showpage_display_order)+1 from ".CFG_MYSQL_TABPREFIX."mod_showpage"; $res = mysql_query($query); $item['showpage_display_order'] = mysql_result($res,0,0); $item['showpage_added'] = time(); $query = " insert into ".CFG_MYSQL_TABPREFIX."mod_showpage (showpage_title,showpage_description ,showpage_headcode,showpage_bodytag,showpage_nav_text,showpage_nav_link,showpage_nav_link2,showpage_nav_image,showpage_nav_class ,showpage_visible ,showpage_meta ,showpage_url ,showpage_added ,showpage_display_order,showpage_parent_id) values ('". $item['showpage_title'] ."', '". $item['showpage_description'] ."', '". $item['showpage_headcode'] ."', '". $item['showpage_bodytag']."', '". $item['showpage_nav_text']."', '". $item['showpage_nav_link']."', '". $item['showpage_nav_link2']."', '". $item['showpage_nav_image']."', '". $item['showpage_nav_class']."', '". $item['showpage_visible']."', '". $item['showpage_meta']."', '". $item['showpage_url']."', '". $item['showpage_added']."', '". $item['showpage_display_order']."', '". $item['showpage_parent_id'] ."') "; $res = mysql_query($query); if (!$res) return (false); $item['id'] = mysql_insert_id(); return ($item); } function mod_showpage_del ($item_id) { $query = "delete from ".CFG_MYSQL_TABPREFIX."mod_showpage where showpage_id = '".$item_id."'"; $res = mysql_query($query); if (!$res) return (false); return (true); } function mod_showpage_edit ($item) { $query = "update ".CFG_MYSQL_TABPREFIX."mod_showpage set showpage_title='". $item['showpage_title'] ."', showpage_description='". $item['showpage_description'] ."', showpage_headcode='". $item['showpage_headcode'] ."', showpage_bodytag='". $item['showpage_bodytag']."', showpage_nav_text='". $item['showpage_nav_text']."', showpage_nav_link='". $item['showpage_nav_link']."', showpage_nav_link2='". $item['showpage_nav_link2']."', showpage_nav_image='". $item['showpage_nav_image']."', showpage_nav_class= '". $item['showpage_nav_class']."', showpage_visible='". $item['showpage_visible']."', showpage_meta='". $item['showpage_meta']."', showpage_url='". $item['showpage_url']."', showpage_added= '". $item['showpage_added']."', showpage_display_order= '". $item['showpage_display_order']."', showpage_parent_id= '". $item['showpage_parent_id'] ."' where showpage_id = '". $item['showpage_id'] ."'"; define_syslog_variables(); openlog("TextLog", LOG_PID, LOG_LOCAL0); $data = date("Y/m/d H:i:s"); syslog(LOG_DEBUG,"Messagge: $query"); closelog(); $res = mysql_query($query); if (!$res) return (false); return ($item); } function mod_showpage_up ($item_id) { } function mod_showpage_down ($item_id) { } ?> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:25
|
Update of /cvsroot/comoblog/comoblog/modules/mod_blogrolling2/admin/img In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_blogrolling2/admin/img Added Files: mod_blogrolling2.gif Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: mod_blogrolling2.gif --- (This appears to be a binary file; contents omitted.) |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:25
|
Update of /cvsroot/comoblog/comoblog/modules/mod_tunelog/admin In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_tunelog/admin Added Files: mod_tunelog.php mod_tunelog_edit.php mod_tunelog_add.php mod_tunelog_del.php Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: mod_tunelog.php --- <?php require_once ('../../../admin/include/admin.inc.php'); require_once ('../include/mod_tunelog.inc.php'); $tunelog_items = mod_tunelog_list (); // template file $tpl = new XTemplate ('templates/mod_tunelog.tpl.htm'); $tpl->assign('MOD_NAME', 'mod_tunelog'); if ($tunelog_items) { for ($c = 0; $c < count($tunelog_items); $c++) { if ($c % 2) $tpl->assign('BGCOLOR', '#ffffff'); else $tpl->assign('BGCOLOR', '#efefef'); $tpl->assign('ITEM', $tunelog_items[$c]); $tpl->parse('main.items.item'); } $tpl->parse('main.items'); } $tpl->parse('main'); $tpl->out('main'); ?> --- NEW FILE: mod_tunelog_edit.php --- <?php require_once ('../../../admin/include/admin.inc.php'); require_once ('../include/mod_tunelog.inc.php'); if (strtoupper($_SERVER['REQUEST_METHOD'] == 'POST')) { $errors = array(); if ($_POST['tunelog_title'] == '') $errors[] = 'You must provide a title for your entry'; if ($_POST['tunelog_url'] == '') $errors[] = 'You must provide an URL for your entry'; if (count($errors)) { foreach ($errors as $k => $v) $err_msg .= '- ' . $v . '<br />'; error_page ('Errors:<br />'.$err_msg, 'javascript:history.go(-1);'); } else { $item = mod_tunelog_edit($_POST); echo '<html><head></head><body><script language="javascript">opener.location.reload();this.close();</script></body></html>'; exit(); } } else { $item_id = ''; if (isset($_GET['i'])) $item_id = $_GET['i']; $item = mod_tunelog_details($item_id); $tpl = new XTemplate('templates/mod_tunelog_edit.tpl.htm'); $tpl->assign('ITEM', $item); $tpl->assign('ACTION', basename($_SERVER['PHP_SELF'])); $tpl->parse('main'); $tpl->out('main'); } ?> --- NEW FILE: mod_tunelog_add.php --- <?php require_once ('../../../admin/include/admin.inc.php'); require_once ('../include/mod_tunelog.inc.php'); if (strtoupper($_SERVER['REQUEST_METHOD'] == 'POST')) { $errors = array(); foreach($_POST as $k => $v) $_POST[$k] = trim($v); if ($_POST['tunelog_songtitle'] == '') $errors[] = 'You must provide a title for your entry'; if ($_POST['tunelog_artist'] == '') $errors[] = 'You must provide an artist for your entry'; if (count($errors)) { foreach ($errors as $k => $v) $err_msg .= '- ' . $v . '<br />'; error_page ('Errors:<br />'.$err_msg, 'javascript:history.go(-1);'); } else { $item = mod_tunelog_add($_POST); echo '<html><head></head><body><script language="javascript">opener.location.reload();this.close();</script></body></html>'; exit(); } } $tpl = new XTemplate('templates/mod_tunelog_add.tpl.htm'); $tpl->assign('ACTION', basename($_SERVER['PHP_SELF'])); $tpl->parse('main'); $tpl->out('main'); ?> --- NEW FILE: mod_tunelog_del.php --- <?php require_once ('../../../admin/include/admin.inc.php'); require_once ('../include/mod_tunelog.inc.php'); $item_id = ''; if (isset($_GET['i'])) $item_id = $_GET['i']; mod_tunelog_del ($item_id); Header ('Location: mod_tunelog.php'); exit(); ?> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:24
|
Update of /cvsroot/comoblog/comoblog/modules/mod_tunelog/css In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_tunelog/css Added Files: mod_tunelog.css.php Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: mod_tunelog.css.php --- <?php require_once (dirname(__FILE__).'/../../../include/config.inc.php'); Header ('Content-type: text/css'); if (in_array('mod_tunelog', $SIDEBAR_MODULES)) $mod_pos = 'sidebar'; else $mod_pos = 'top'; if ($mod_pos == 'sidebar') { echo ' #mod_tunelog { font-size: '.CFG_MOD_TUNELOG_FONT_SIZE.'px; font-family: '.CFG_MOD_TUNELOG_FONT_FAMILY.'; color: #'.CFG_MOD_TUNELOG_COLOR.'; } #mod_tunelog ul { margin: 0; padding: 0; } #mod_tunelog li { list-style-type: none; padding-bottom : 5px; } #mod_tunelog a { color: #'.CFG_MOD_TUNELOG_A_COLOR.'; text-decoration: '.CFG_MOD_TUNELOG_A_TEXT_DECORATION.'; } #mod_tunelog a:hover { color: #'.CFG_MOD_TUNELOG_A_HOVER_COLOR.'; text-decoration: '.CFG_MOD_TUNELOG_A_HOVER_TEXT_DECORATION.'; } /* in the main section */ #tunes { float: left; width: '.(CFG_PAGE_WIDTH-CFG_SIDEBAR_WIDTH-30).'px; text-decoration: none; letter-spacing: -2px font-size:32px; font-family: '.CFG_MOD_TUNELOG_FONT_FAMILY.'; color: #'.CFG_MOD_TUNELOG_COLOR.'; } #tunes h2 { font-family: '.CFG_PAGE_TITLE_FONT_FAMILY.'; font-size: '.CFG_PAGE_TITLE_FONT_SIZE.'px; font-style: '.CFG_PAGE_TITLE_FONT_STYLE.'; color: #'.CFG_PAGE_TITLE_COLOR.'; } #tunetable { float: left; width: '.(CFG_PAGE_WIDTH-CFG_SIDEBAR_WIDTH-30).'px; margin: 5px; padding: 5px; border: '.CFG_POST_BORDER_WIDTH.'px '.CFG_POST_BORDER_STYLE.' #'.CFG_POST_BORDER_COLOR.'; } #tunetable td { font-family: '.CFG_POST_FONT_FAMILY.'; font-size: '.CFG_POST_FONT_SIZE.'px; font-style: '.CFG_POST_FONT_STYLE.'; color: #'.CFG_POST_COLOR.'; padding:2px; } #tunes p { font-family: '.CFG_POST_FONT_FAMILY.'; font-size: '.CFG_POST_FONT_SIZE.'px; font-style: '.CFG_POST_FONT_STYLE.'; color: #'.CFG_POST_COLOR.'; margin: 0; padding: 10px; } '; } mysql_close(); ?> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:24
|
Update of /cvsroot/comoblog/comoblog/modules/mod_showpage/css In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_showpage/css Added Files: mod_showpage.css.php Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: mod_showpage.css.php --- <?php require_once (dirname(__FILE__).'/../../../include/config.inc.php'); Header ('Content-type: text/css'); if (in_array('mod_showpage', $SIDEBAR_MODULES)) $mod_pos = 'sidebar'; else $mod_pos = 'top'; if ($mod_pos == 'sidebar') { echo ' #mod_showpage { font-size: '.CFG_MOD_SHOWPAGE_FONT_SIZE.'px; font-family: '.CFG_MOD_SHOWPAGE_FAMILY.'; color: #'.CFG_MOD_SHOWPAGE_COLOR.'; } #mod_showpage ul { margin: 0; padding: 0; } #mod_showpage li { list-style-type: none; } a.toplink { color: #'.CFG_MOD_SHOWPAGE_A_COLOR.'; text-decoration: '.CFG_MOD_SHOWPAGE_A_TEXT_DECORATION.'; font :Verdana, Arial, Helvetica, sans-serif; font-size: '.CFG_MOD_SHOWPAGE_FONT_SIZE.'px; } #mod_showpage a:hover { color: #'.CFG_MOD_SHOWPAGE_A_HOVER_COLOR.'; text-decoration: '.CFG_MOD_SHOWPAGE_A_HOVER_TEXT_DECORATION.'; font :Verdana, Arial, Helvetica, sans-serif; font-size: '.CFG_MOD_SHOWPAGE_FONT_SIZE.'px; } #mod_showpage li a { color: #'.CFG_MOD_SHOWPAGE_A_COLOR.'; text-decoration: '.CFG_MOD_SHOWPAGE_A_TEXT_DECORATION.'; font :Verdana, Arial, Helvetica, sans-serif; font-size: '.CFG_MOD_SHOWPAGE_FONT_SIZE.'px; } #mod_showpage li a:hover { color: #'.CFG_MOD_SHOWPAGE_A_HOVER_COLOR.'; text-decoration: '.CFG_MOD_SHOWPAGE_A_HOVER_TEXT_DECORATION.'; font :Verdana, Arial, Helvetica, sans-serif; font-size: '.CFG_MOD_SHOWPAGE_FONT_SIZE.'px; } '; } mysql_close(); ?> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:23
|
Update of /cvsroot/comoblog/comoblog/modules/mod_contentextra/include In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_contentextra/include Added Files: mod_contentextra.inc.php Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: mod_contentextra.inc.php --- <?php // stops the twats getting into the referer list function getBlocklist(){ $BLOCKLIST = "contentextra2_http_referer not like '%igor.office.sift.co.uk%' and contentextra2_http_referer not like '%iamdecal.co.uk%' and contentextra2_http_referer not like '' and contentextra2_http_referer not like ' ' and contentextra2_request_uri not like '%page=stats' and contentextra2_remote_host not like '213.25.42.64' and contentextra2_remote_host not like '95.225.177.131' and contentextra2_remote_host not like '%iamdecal.plus.net' and contentextra2_remote_host not like '%.plus.net%' and contentextra2_remote_host not like '%.sift.co.uk' and contentextra2_remote_host not like '%.sift.com' and contentextra2_http_referer not like '%tramadol%' and contentextra2_http_referer not like '%vicodin%' and contentextra2_http_referer not like '%adipex%' and contentextra2_http_referer not like '%buy-ambien%' and contentextra2_http_referer not like '%phentermine%' and contentextra2_http_referer not like '%valium%' and contentextra2_http_referer not like '%tamiflu%' and contentextra2_http_referer not like '%genaholincorporated.com%' and contentextra2_http_referer not like '%firsthorizonmtg.com%' and contentextra2_http_referer not like '%andrewsaluk.com%' and contentextra2_http_referer not like '%poker%' and contentextra2_http_referer not like '%ma.gnolia%' and contentextra2_remote_host not like '%layeredtech.com' and contentextra2_http_referer not like '%.info/' and contentextra2_http_referer not like '%4dspots.com%'"; return $BLOCKLIST; } function mod_contentextra_init () { $query = "insert into comoblog_mod_contentextra (contentextra_url,contentextra_firsthit) values ('" . $_SERVER['REQUEST_URI'] ."',now()) "; // #echo $query; $res = mysql_query($query); # #echo $res; if (!$res) return (false); $item['id'] = mysql_insert_id(); return ($item); } function mod_contentextra_rate () { $score ="0"; $votes ="+0" ; if(isset($_GET['score'])) { $score= $_GET['score']; $votes = "+1"; } $url = $_GET['url'] ; //$url = $_SERVER['HTTP_REFERER']; $query = "update comoblog_mod_contentextra set contentextra_votes = contentextra_votes ".$votes.", contentextra_score = contentextra_score + ".$score." where contentextra_url = '". urldecode($url) ."' "; $res = mysql_query($query); $rows=mysql_affected_rows(); $info =mysql_info(); //#echo "<BR><BR>.." . $res; // if (!$res) // return (false); /* define_syslog_variables(); openlog("mod_contentextra_rate", LOG_NDELAY, LOG_LOCAL0); syslog(LOG_ALERT,"query " . $query); syslog(LOG_ALERT,"res (" . $res . ")"); syslog(LOG_ALERT,"rows (" . $rows . ")"); syslog(LOG_ALERT,"info (" . $info . ")"); syslog(LOG_ALERT,"url " . $url); syslog(LOG_ALERT,"url urlencode" . urlencode($url)); syslog(LOG_ALERT,"url urldecode" . urldecode($url)); #echo $query; */ return ($url); } // once we have done the init, we can update as required function mod_contentextra_process () { $query = " update comoblog_mod_contentextra set contentextra_hits =contentextra_hits +1, contentextra_lasthit =contentextra_thishit , contentextra_thishit =now() where contentextra_url = '". $_SERVER['REQUEST_URI'] ."' "; // #echo $query; $res = mysql_query($query); // define_syslog_variables(); // openlog("mod_contentextra_process", LOG_NDELAY, LOG_LOCAL0); // syslog(LOG_ALERT,"query " . $query); // syslog(LOG_ALERT,"res " . $res); if (!$res) return (false); return ($item); } function mod_contentextra_display () { $query = "select ".CFG_MYSQL_TABPREFIX."mod_contentextra.* ,DATE_FORMAT(contentextra_thishit,'%d %m %y <br> at %T') as thishit_nice, DATE_FORMAT(contentextra_lasthit,'%d %m %y <br> at %T')as lasthit_nice, DATE_FORMAT(contentextra_firsthit,'%d %m %y <br> at %T') as firsthit_nice, ( contentextra_score/ contentextra_votes ) as contentextra_rating from ".CFG_MYSQL_TABPREFIX."mod_contentextra where contentextra_url = '".$_SERVER['REQUEST_URI']."' limit 1"; //#echo $query; $res = mysql_query($query); if (!$res || !mysql_num_rows($res)) return (false); $items = array(); while ($row = mysql_fetch_assoc($res)) { $items[] = $row; } return ($items); } function mod_contentextra2_display () { $query = "select count(*) from ".CFG_MYSQL_TABPREFIX."mod_contentextra2 where contentextra2_request_uri = '".$_SERVER['REQUEST_URI']."'"; // #echo $query; $res = mysql_query($query); if (!$res || !mysql_num_rows($res)) return (false); $items = array(); while ($row = mysql_fetch_assoc($res)) { $items[] = $row; } return ($items); } function mod_contentextra2_init () { $hostname = $_SERVER['REMOTE_HOST']; if ($hostname == "") { $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); } $query = "insert into comoblog_mod_contentextra2 ( contentextra2_php_self, contentextra2_server_name, contentextra2_request_method, contentextra2_query_string, contentextra2_http_accept, contentextra2_http_referer, contentextra2_http_user_agent, contentextra2_remote_addr, contentextra2_remote_host, contentextra2_script_filename, contentextra2_path_translated, contentextra2_script_name, contentextra2_request_uri, contentextra2_php_auth_user, contentextra2_added, contentextra2_addeddate, contentextra2_skin) values ( '" . $_SERVER['PHP_SELF'] ."', '" . $_SERVER['SERVER_NAME'] ."', '" . $_SERVER['REQUEST_METHOD'] ."', '" . $_SERVER['QUERY_STRING'] ."', '" . $_SERVER['HTTP_ACCEPT'] ."', '" . $_SERVER['HTTP_REFERER'] ."', '" . $_SERVER['HTTP_USER_AGENT'] ."', '" . $_SERVER['REMOTE_ADDR'] ."', '" . $hostname ."', '" . $_SERVER['SCRIPT_FILENAME'] ."', '" . $_SERVER['PATH_TRANSLATED'] ."', '" . $_SERVER['SCRIPT_NAME'] ."', '" . $_SERVER['REQUEST_URI'] ."', '" . $_SERVER['PHP_AUTH_USER'] ."', '" . time ."', now(), 'phpdefault' );"; //#echo $query; $res = mysql_query($query); if (!$res) return (false); $item['id'] = mysql_insert_id(); return ($item); } ################################################################################ #static page stuff $BLOCKLIST = getBlocklist(); function mod_contentextra_top_referers () { $BLOCKLIST = getBlocklist(); $query =" select contentextra2_http_referer as column1, count(*) as column2, concat(substring(contentextra2_http_referer,1,30),' ' ,substring(contentextra2_http_referer,31,30)) as column3 from comoblog_mod_contentextra2 where $BLOCKLIST group by column1, column3 order by column2 desc limit 20;"; echo "start details for mod_contentextra_top_referers"; echo "query" . $query; $res = mysql_query($query); #echo "error " . mysql_errno($res) . ": " . mysql_error($res) . "\n"; #echo "num rows " . mysql_num_rows($res); echo "res" . $res; if (!$res || !mysql_num_rows($res)) return (false); $items = array(); while ($row = mysql_fetch_assoc($res)) { $items[] = $row; } # echo mysql_num_rows($res); return ($items); } ################################################################################ #static page stuff function mod_contentextra_top_visitors () { $BLOCKLIST = getBlocklist(); $query =" select contentextra2_remote_addr as column1 , concat(substring(contentextra2_remote_host,1,30),' ' ,substring(contentextra2_remote_host,31,30)) as column2 , count(*) as column3 from comoblog_mod_contentextra2 where $BLOCKLIST group by column1, column2 order by column3 desc limit 20;"; echo "q" . $query; $res = mysql_query($query); echo "r" . $res; if (!$res || !mysql_num_rows($res)) return (false); $items = array(); while ($row = mysql_fetch_assoc($res)) { $items[] = $row; } #echo mysql_num_rows($res); return ($items); } ################################################################################ #static page stuff function mod_contentextra_top_browsers () { $BLOCKLIST = getBlocklist(); $query = " select contentextra2_http_user_agent as column1, count(*) as column2 from comoblog_mod_contentextra2 where $BLOCKLIST group by column1 order by column2 desc limit 20;"; echo $query; $res = mysql_query($query); echo "r" . $res; if (!$res || !mysql_num_rows($res)) return (false); $items = array(); while ($row = mysql_fetch_assoc($res)) { $items[] = $row; } #echo mysql_num_rows($res); return ($items); } ################################################################################ #static page stuff function mod_contentextra_top_pages () { $BLOCKLIST = getBlocklist(); $query = " select contentextra2_request_uri as column1, count(*) as column2 from comoblog_mod_contentextra2 where $BLOCKLIST group by column1 order by column2 desc limit 20;"; echo $query; $res = mysql_query($query); echo "r" . $res; if (!$res || !mysql_num_rows($res)) return (false); $items = array(); while ($row = mysql_fetch_assoc($res)) { $items[] = $row; } echo "rows" . mysql_num_rows($res); return ($items); } function mod_contentextra_last_visitors () { $BLOCKLIST = getBlocklist(); $query =" select contentextra2_remote_addr as column1 , concat(substring(contentextra2_remote_host,1,30),' ' ,substring(contentextra2_remote_host,31,30)) as column2 , contentextra2_addeddate as column3 , contentextra2_http_referer as column4 , concat(substring(contentextra2_http_referer,1,30),' ' ,substring(contentextra2_http_referer,31,30),' ' ,substring(contentextra2_http_referer,61,30),' ' ,substring(contentextra2_http_referer,91,30)) as column5 , contentextra2_request_uri as column6 from comoblog_mod_contentextra2 where $BLOCKLIST order by column3 desc limit 20;"; #,' ' ,substring(contentextra2_http_referer,31,30),' ' #,substring(contentextra2_http_referer,61,30),' ' #,substring(contentextra2_http_referer,91,30)) as column5 , echo $query; $res = mysql_query($query); echo "r" . $res; if (!$res || !mysql_num_rows($res)) return (false); $items = array(); while ($row = mysql_fetch_assoc($res)) { $items[] = $row; } #echo mysql_num_rows($res); return ($items); } function mod_contentextra_top_skins () { $query =" select ss.skinselect_description, ss.skinselect_title,ce2.contentextra2_skin, count(ce2.contentextra2_skin) as count from comoblog_mod_contentextra2 ce2 , comoblog_mod_skinselect ss where ce2.contentextra2_skin = ss.skinselect_nav_link and ss.skinselect_visible ='Y' group by ce2.contentextra2_skin order by count desc "; echo $query; $res = mysql_query($query); echo "r" . $res; if (!$res || !mysql_num_rows($res)) return (false); $items = array(); while ($row = mysql_fetch_assoc($res)) { $items[] = $row; } #echo mysql_num_rows($res); return ($items); } function mod_contentextra_showpage_stuffer($item_text) { $query = "update ".CFG_MYSQL_TABPREFIX."mod_showpage set showpage_url = '', showpage_description = '". addslashes($item_text) ."' where lower(showpage_nav_text) = 'stats'"; #echo $query; $res = mysql_query($query); if (!$res) return (false); return ($res); } function update_missing_hosts () { $query = " SELECT DISTINCT contentextra2_remote_addr, contentextra2_remote_host FROM comoblog_mod_contentextra2 WHERE contentextra2_remote_host = ''"; # echo $query; $res = mysql_query($query); # echo "r" . $res; if (!$res || !mysql_num_rows($res)) return (false); $items = array(); while ($row = mysql_fetch_assoc($res)) { $query ="update comoblog_mod_contentextra2 set contentextra2_remote_host = '" . gethostbyaddr($row['contentextra2_remote_addr']) ."' where contentextra2_remote_host ='' and contentextra2_remote_addr = '" .$row['contentextra2_remote_addr'] ."';" ; echo $query . "\n <br />"; $res2= mysql_query($query); } #echo mysql_num_rows($res); return ($items); } ?> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:23
|
Update of /cvsroot/comoblog/comoblog/modules/mod_tunelog/admin/templates In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_tunelog/admin/templates Added Files: mod_tunelog_edit.tpl.htm mod_tunelog.tpl.htm mod_tunelog_add.tpl.htm Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: mod_tunelog.tpl.htm --- <!-- BEGIN: main --> {FILE "../../../admin/templates/mod_header.tpl.htm"} <table border="0" width="760" align="center" cellspacing="0" cellpadding="4" style="border: 1px solid black;"> <tr> <td width="20"><a href="mod_tunelog_add.php" onclick="void open_popup(this.href,320,250); return false;"><img src="../../../admin/img/add.gif" border="0"></a></td> <td width="720"><a href="mod_tunelog_add.php" onclick="void open_popup(this.href,320,250); return false;">Add new Tune Manually</a></td> </tr> </table> <br /> <br /> <!-- BEGIN: items --> <table border="0" width="760" align="center" cellspacing="0" cellpadding="4" style="border: 1px solid black;"> <!-- BEGIN: item --> <tr bgcolor="{BGCOLOR}"> <td valign="top"><b>{ITEM.tunelog_songtitle}</b></td> <td valign="top">{ITEM.tunelog_album}</td> <td valign="top">{ITEM.tunelog_artist}</td> <td><a href="mod_tunelog_edit.php?i={ITEM.tunelog_id}" onclick="void open_popup(this.href,400,300); return false;"><img src="../../../admin/img/edit.gif" border="0"></a></td> <td><a href="mod_tunelog_del.php?i={ITEM.tunelog_id}" onclick="if (confirm('Are you sure you want to delete this item? ({ITEM.tunelog_title})')) document.location.href=this.href; else return false;"><img src="../../../admin/img/delete.gif" border="0"></a></td> </tr> <!-- END: item --> </table> <!-- END: items --> {FILE "../../../admin/templates/mod_footer.tpl.htm"} <!-- END: main --> --- NEW FILE: mod_tunelog_edit.tpl.htm --- <!-- BEGIN: main --> {FILE "../../../admin/templates/mod_popup_header.tpl.htm"} <br /> <p align="center"><b>EDIT tunelog ITEM</b></p> <br /> <form action="{ACTION}" method="POST"> <input type="hidden" name="tunelog_id" value="{ITEM.tunelog_id}"> <p>Song Title:<br /> <input type="text" name="tunelog_songtitle" value="{ITEM.tunelog_songtitle}" maxlength="255" size="40" style="width:300px;"> </p> <p>Artist<br /> <input type="text" name="tunelog_artist" value="{ITEM.tunelog_artist}" maxlength="255" size="40" style="width:300px;"> </p> <p>Description:<br /> <input type="text" name="tunelog_album" value="{ITEM.tunelog_album}" maxlength="255" size="40" style="width:300px;"> </p> <p>Track Length<br /> <input type="text" name="tunelog_tracklength" value="{ITEM.tunelog_tracklength}" maxlength="255" size="40" style="width:300px;"> </p> <input type="image" src="../../../admin/img/save.gif" border="0"> </form> {FILE "../../../admin/templates/mod_footer.tpl.htm"} <!-- END: main --> --- NEW FILE: mod_tunelog_add.tpl.htm --- <!-- BEGIN: main --> {FILE "../../../admin/templates/mod_popup_header.tpl.htm"} <br /> <p align="center"><b>NEW tunelog ITEM</b></p> <br /> <form action="{ACTION}" method="POST"> <p>Song Title:<br /> <input type="text" name="tunelog_songtitle" value="" maxlength="255" size="40" style="width:300px;"> </p> <p>Artist<br /> <input type="text" name="tunelog_artist" value="" maxlength="255" size="40" style="width:300px;"> </p> <p>Description:<br /> <input type="text" name="tunelog_album" value="" maxlength="255" size="40" style="width:300px;"> </p> <p>Track Length<br /> <input type="text" name="tunelog_tracklength" value="" maxlength="255" size="40" style="width:300px;"> </p> <input type="image" src="../../../admin/img/save.gif" border="0"> </form> {FILE "../../../admin/templates/mod_footer.tpl.htm"} <!-- END: main --> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:23
|
Update of /cvsroot/comoblog/comoblog/modules/mod_tunelog/admin/img In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_tunelog/admin/img Added Files: mod_tunelog.gif Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: mod_tunelog.gif --- (This appears to be a binary file; contents omitted.) |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:22
|
Update of /cvsroot/comoblog/comoblog/modules/mod_navchoice/templates/sidebar_flip In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_navchoice/templates/sidebar_flip Added Files: mod_navchoice_tpl.htm mod_navchoice.swf Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: mod_navchoice_tpl.htm --- <!-- BEGIN: main --> <div id="mod_navchoice"> <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH=124 HEIGHT=72> <PARAM NAME=movie VALUE="modules/mod_navchoice/templates/sidebar_flip/mod_navchoice.swf?tarframe=_self&exbackground=ffffff&makenavfield0=menu&makenavurl0=&makenavfield1=home&makenavurl=index.php"> <PARAM NAME=loop VALUE=false> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=scale VALUE=noborder> <PARAM NAME=salign VALUE=LT> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=#ffffff> <EMBED src="modules/mod_navchoice/templates/sidebar_flip/mod_navchoice.swf?tarframe=_self&exbackground=ffffff&makenavfield0=menu&makenavurl0=&makenavfield1=home&makenavurl=index.php" loop=false menu=false quality=high scale=noborder salign=LT wmode=transparent bgcolor=#000000 WIDTH=124 HEIGHT=72 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED> </OBJECT> </div> <!-- END: main --> --- NEW FILE: mod_navchoice.swf --- (This appears to be a binary file; contents omitted.) |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:22
|
Update of /cvsroot/comoblog/comoblog/modules/mod_navchoice/img In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_navchoice/img Added Files: index.php mod_navchoice_big.gif mod_navchoice.gif Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: mod_navchoice_big.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mod_navchoice.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: index.php --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Untitled</title> </head> <body> </body> </html> |