comoblog-commit Mailing List for CoMoblog Mobile Blog Application (Page 4)
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:22
|
Update of /cvsroot/comoblog/comoblog/modules/mod_contentextra/css In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_contentextra/css Added Files: mod_contentextra.css.php Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: mod_contentextra.css.php --- <?php require_once (dirname(__FILE__).'/../../../include/config.inc.php'); Header ('Content-type: text/css'); echo ' #mod_contentextra { font-size: ' . CFG_MOD_CONTENTEXTRA_FONT_SIZE . 'px; font-family: '. CFG_MOD_TUNELOG_FONT_FAMILY .'; color: #'. CFG_MOD_CONTENTEXTRA_COLOR . '; } #mod_contentextra ul { margin: 0; padding: 0; } #mod_contentextra li { list-style-type: none; padding-bottom : 5px; } #mod_contentextra a { color: #' . CFG_MOD_CONTENTEXTRA_A_COLOR .'; text-decoration: '. CFG_MOD_CONTENTEXTRA_A_TEXT_DECORATION .'; } #mod_contentextra a:hover { color: #'. CFG_MOD_CONTENTEXTRA_A_HOVER_COLOR .'; text-decoration: '. CFG_MOD_CONTENTEXTRA_A_HOVER_TEXT_DECORATION .'; } '; ?> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:21
|
Update of /cvsroot/comoblog/comoblog/modules/mod_tunelog/templates/top In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_tunelog/templates/top Added Files: mod_tunelog.tpl.htm Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: mod_tunelog.tpl.htm --- <!-- BEGIN: main --> <div id="mod_tunelog"> Latest Tunes: <!-- BEGIN: item -->> {ITEM.tunelog_songtitle} <!-- END: item --> > <a href="page.php?page=tunes">more...</a> </div> <!-- please leave this image call in for a little while, its just so i can see who uses the module, so i can let you know if i do an update its also so I know whats sites to visit ;-) --> <img src="http://www.iamdecal.plus.com/tracker/mod_tunelog/1x1.gif"> <!-- END: main --> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:20
|
Update of /cvsroot/comoblog/comoblog/modules/mod_navchoice In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_navchoice Added Files: mod_navchoice.php index.php Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: mod_navchoice.php --- <?php if (in_array('mod_navchoice', $SIDEBAR_MODULES)) $mod_pos = 'sidebar'; else $mod_pos = 'top'; $mod_navchoice_tpl = 'modules/mod_navchoice/templates/'. $mod_pos. CFG_MOD_NAVCHOICE_PATH . '/mod_navchoice.tpl.htm'; echo $mod_navchoice_tpl; $mod_navchoice_tpl = 'modules/mod_navchoice/templates/sidebar_flip/mod_navchoice_tpl.htm'; echo $mod_navchoice_tpl; $mod_navchoice_tpl = 'modules/mod_navchoice/templates/sidebar_bubbles/mod_navchoice_tpl.htm'; echo $mod_navchoice_tpl; $dh = fopen($mod_navchoice_tpl,'r'); $mod_contents = fread($dh,6400000); ## $mod_contents = ''; ?> --- NEW FILE: index.php --- |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:20
|
Update of /cvsroot/comoblog/comoblog/modules/mod_navchoice/templates/top In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_navchoice/templates/top 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_blogrolling"> <ul>Folks I Know <!-- BEGIN: item --> <li> <a href="{ITEM.blogrolling_url}"><strong>{ITEM.blogrolling_title}</strong></a><br /> {ITEM.blogrolling_description} </li> <!-- END: item --> </ul> </div> <!-- END: main --> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:20
|
Update of /cvsroot/comoblog/comoblog/modules/mod_showpage/templates/sidebar In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_showpage/templates/sidebar Added Files: mod_showpage.tpl.htm Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: mod_showpage.tpl.htm --- <!-- BEGIN: main --> <div id="mod_showpage"> This site <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:20
|
Update of /cvsroot/comoblog/comoblog/modules/mod_showpage/admin/img In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_showpage/admin/img Added Files: mod_showpage.gif Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: mod_showpage.gif --- (This appears to be a binary file; contents omitted.) |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:20
|
Update of /cvsroot/comoblog/comoblog/modules/mod_blogrolling2/install In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_blogrolling2/install Added Files: mod_blogrolling2.xml Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: mod_blogrolling2.xml --- <?xml version="1.0" standalone="no"?> <!DOCTYPE module SYSTEM "http://comoblog.sourceforge.net/DTD/comoblog_mod_install.dtd"> <module> <name>mod_blogrolling2</name> <description>List of your favourite links</description> <allowed_pos>sidebar</allowed_pos> <allowed_pos>top</allowed_pos> <dbquery>CREATE TABLE `comoblog_mod_blogrolling2` (`blogrolling2_id` int(10) unsigned NOT NULL auto_increment, `blogrolling2_url` varchar(255) default NULL, `blogrolling2_title` varchar(255) default NULL, `blogrolling2_description` varchar(255) default NULL, `blogrolling2_added` int(10) unsigned default NULL, `blogrolling2_display_order` int(10) unsigned default NULL, PRIMARY KEY (`blogrolling2_id`)) TYPE=MyISAM;</dbquery> <filter_posts>N</filter_posts> <filter_comments>N</filter_comments> <version>0.5</version> <author>Umberto Caldera - ubik [at] ubiks [dot] it</author> <date>2004-04-29</date> <param name="CFG_MOD_blogrolling2_COLOR" description="" type="color_picker" editable="Y" accept_null="N" value="000000" /> <param name="CFG_MOD_blogrolling2_A_COLOR" description="" type="color_picker" editable="Y" accept_null="N" value="000000" /> <param name="CFG_MOD_blogrolling2_A_HOVER_COLOR" description="" type="color_picker" editable="Y" accept_null="N" value="000000" /> <param name="CFG_MOD_blogrolling2_A_TEXT_DECORATION" description="" type="select" editable="Y" accept_null="N" value="none" restrict_values="none|underline|overline|line-through" /> <param name="CFG_MOD_blogrolling2_A_HOVER_TEXT_DECORATION" description="" type="select" editable="Y" accept_null="N" value="underline" restrict_values="none|underline|overline|line-through" /> <param name="CFG_MOD_blogrolling2_FONT_FAMILY" description="" type="font_picker" editable="Y" accept_null="N" value="Verdana,Arial,Helvetica,sans-serif" restrict_values="Verdana,Arial,Helvetica,sans-serif" /> <param name="CFG_MOD_blogrolling2_FONT_SIZE" description="" type="select" editable="Y" accept_null="N" value="10" restrict_values="8|9|10|11|12|13|14|15|16|17|18|19|20" /> </module> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:19
|
Update of /cvsroot/comoblog/comoblog/include/pear/Text/Password/tests In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/include/pear/Text/Password/tests Added Files: Text_Password_Test.php Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: Text_Password_Test.php --- <?php // +------------------------------------------------------------------------+ // | PEAR :: Text_Password | // +------------------------------------------------------------------------+ // | Copyright (c) 2004 Martin Jansen | // +------------------------------------------------------------------------+ // | This source file is subject to version 3.00 of the PHP License, | // | that is available at 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 world-wide-web, please send a note to | // | li...@ph... so we can mail you a copy immediately. | // +------------------------------------------------------------------------+ // // $Id: Text_Password_Test.php,v 1.1 2006/10/22 11:44:14 iamdecal Exp $ // require_once "PHPUnit.php"; require_once "PHPUnit/TestCase.php"; require_once "PHPUnit/TestSuite.php"; require_once "Text/Password.php"; /** * Unit test suite for the Text_Password package * * @author Martin Jansen <mj...@ph...> * @extends PHPUnit_TestCase * @version $Id: Text_Password_Test.php,v 1.1 2006/10/22 11:44:14 iamdecal Exp $ */ class Text_Password_Test extends PHPUnit_TestCase { function testCreate() { $password = Text_Password::create(); $this->assertTrue(strlen($password) == 10); } function testCreateWithLength() { $password = Text_Password::create(15); $this->assertTrue(strlen($password) == 15); } function testCreateMultiple() { $passwords = Text_Password::createMultiple(3); $this->_testCreateMultiple($passwords, 3, 10); } function testCreateMultipleWithLength() { $passwords = Text_Password::createMultiple(3, 15); $this->_testCreateMultiple($passwords, 3, 15); } function testCreateNumericWithLength() { $password = Text_Password::create(8, 'unpronounceable', 'numeric'); $this->assertRegExp("/^[0-9]{8}$/", $password); } function testCreateFromABCWithLength() { $password = Text_Password::create(8, 'unpronounceable', 'a,b,c'); $this->assertRegExp("/^[abc]{8}$/i", $password); } function testCreateAlphabeticWithLength() { $password = Text_Password::create(8, 'unpronounceable', 'alphabetic'); $this->assertRegExp("/^[a-z]{8}$/i", $password); } function testTimeToBruteForce() { $password = Text_Password::create(5, 'unpronounceable'); $result = $this->_TimeToBruteForce($pass); $this->assertTrue($result['combination'] == 1); $this->assertTrue($result['max'] == 0.00025); $this->assertTrue($result['min'] == 0.000125); } // {{{ Test cases for creating passwords based on a given login string function testCreateFromLoginReverse() { $this->assertEquals("eoj", Text_Password::createFromLogin("joe", "reverse")); } function testCreateFromLoginShuffle() { $this->assertTrue(strlen(Text_Password::createFromLogin("hello world", "shuffle")) == strlen("hello world")); } function testCreateFromLoginRotX() { $this->assertEquals("tyo", Text_Password::createFromLogin("joe", "rotx", 10)); } function testCreateFromLoginRot13() { $this->assertEquals("wbr", Text_Password::createFromLogin("joe", "rot13")); } function testCreateFromLoginRotXplusplus() { $this->assertEquals("syp", Text_Password::createFromLogin("joe", "rotx++", 9)); } function testCreateFromLoginRotXminusminus() { $this->assertEquals("swl", Text_Password::createFromLogin("joe", "rotx--", 9)); } function testCreateFromLoginXOR() { $this->assertEquals("oj`", Text_Password::createFromLogin("joe", "xor", 5)); } function testCreateFromLoginASCIIRotX() { $this->assertEquals("otj", Text_Password::createFromLogin("joe", "ascii_rotx", 5)); } function testCreateFromLoginASCIIRotXplusplus() { $this->assertEquals("oul", Text_Password::createFromLogin("joe", "ascii_rotx++", 5)); } function testCreateFromLoginASCIIRotXminusminus() { $this->assertEquals("uyn", Text_Password::createFromLogin("joe", "ascii_rotx--", 11)); } /** * Unit test for bug #2605 * * Actually this method does not implement a real unit test, but * instead it is there to make sure that no warning is produced * by PHP. * * @link http://pear.php.net/bugs/bug.php?id=2605 */ function testBugReport2605() { $password = Text_Password::create(7, 'unpronounceable', '1,3,a,Q,~,[,f'); $this->assertTrue(strlen($password) == 7); } // }}} // {{{ private helper methods function _testCreateMultiple($passwords, $count, $length) { $this->assertType("array", $passwords); $this->assertTrue(count($passwords) == $count); foreach ($passwords as $password) { $this->assertTrue(strlen($password) == $length); } } function _timeToBruteForce($password, $nbr = 0, $cmbPerSeconde = 4000) { global $_Text_Password_NumberOfPossibleCharacters; $nbr = ($nbr == 0) ? $_Text_Password_NumberOfPossibleCharacters : $nbr; $cmb = pow($nbr, strlen($password)); $time_max = $cmb / $cmbPerSeconde; $time_min = ($cmb / $cmbPerSeconde) / 2; return array("combination" => $cmb, "max" => $time_max, "min" => $time_min); } // }}} } $suite = new PHPUnit_TestSuite('Text_Password_Test'); $result = PHPUnit::run($suite); echo $result->toString(); |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:18
|
Update of /cvsroot/comoblog/comoblog/include/pear/Text/examples In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/include/pear/Text/examples Added Files: CAPTCHA_test.php Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: CAPTCHA_test.php --- <?php if (!function_exists('file_put_contents')) { function file_put_contents($filename, $content) { if (!($file = fopen($filename, 'w'))) { return false; } $n = fwrite($file, $content); fclose($file); return $n ? $n : false; } } // Start PHP session support session_start(); $ok = false; $msg = 'Please enter the text in the image in the field below!'; if ($_SERVER['REQUEST_METHOD'] == 'POST') { if (isset($_POST['phrase']) && isset($_SESSION['phrase']) && strlen($_POST['phrase']) > 0 && strlen($_SESSION['phrase']) > 0 && $_POST['phrase'] == $_SESSION['phrase']) { $msg = 'OK!'; $ok = true; unset($_SESSION['phrase']); } else { $msg = 'Please try again!'; } unlink(md5(session_id()) . '.png'); } print "<p>$msg</p>"; if (!$ok) { require_once 'Text/CAPTCHA.php'; // Set CAPTCHA options (font must exist!) $options = array( 'font_size' => 24, 'font_path' => './', 'font_file' => 'COUR.TTF' ); // Generate a new Text_CAPTCHA object, Image driver $c = Text_CAPTCHA::factory('Image'); $retval = $c->init(200, 80, null, $options); if (PEAR::isError($retval)) { echo 'Error generating CAPTCHA!'; exit; } // Get CAPTCHA secret passphrase $_SESSION['phrase'] = $c->getPhrase(); // Get CAPTCHA image (as PNG) $png = $c->getCAPTCHAAsPNG(); if (PEAR::isError($png)) { echo 'Error generating CAPTCHA!'; exit; } file_put_contents(md5(session_id()) . '.png', $png); echo '<form method="post">' . '<img src="' . md5(session_id()) . '.png?' . time() . '" />' . '<input type="text" name="phrase" />' . '<input type="submit" /></form>'; } ?> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:17
|
Update of /cvsroot/comoblog/comoblog/modules/mod_blogrolling2/img In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_blogrolling2/img Added Files: mod_blogrolling2_big.gif 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.) --- NEW FILE: mod_blogrolling2_big.gif --- (This appears to be a binary file; contents omitted.) |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:17
|
Update of /cvsroot/comoblog/comoblog/modules/mod_tunelog/include In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_tunelog/include Added Files: mod_tunelog.inc.php Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: mod_tunelog.inc.php --- <?php function mod_tunelog_details ($item_id) { $query = "select * from ".CFG_MYSQL_TABPREFIX."mod_tunelog where tunelog_id = '".$item_id."'"; $res = mysql_query($query); if (!$res || !mysql_num_rows($res)) return (false); $item = mysql_fetch_assoc($res); return ($item); } function mod_tunelog_list () { $query = " select b.* from ".CFG_MYSQL_TABPREFIX."mod_tunelog b order by b.tunelog_addeddate desc limit " . CFG_MOD_TUNELOG_HOW_MANY; $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_tunelog_add ($item) { # $query = "select max(tunelog_display_order)+1 from ".CFG_MYSQL_TABPREFIX."mod_tunelog"; # $res = mysql_query($query); # $item['tunelog_display_order'] = mysql_result($res,0,0); $item['tunelog_added'] = time(); $item['tunelog_visble'] = "Y"; $item['tunelog_user_id'] ="1"; if (strlen($item['tunelog_tracklength']) ==4) { $item['tunelog_tracklength'] ="00:0". $item['tunelog_tracklength']; } if (strlen($item['tunelog_tracklength']) ==5) { $item['tunelog_tracklength'] ="00:". $item['tunelog_tracklength']; } $query = " insert into ".CFG_MYSQL_TABPREFIX."mod_tunelog (tunelog_songtitle,tunelog_artist,tunelog_album,tunelog_trackno,tunelog_tracklength,tunelog_visible,tunelog_added,tunelog_addeddate,tunelog_user_id) values ('". addslashes($item['tunelog_songtitle']) ."', '". addslashes($item['tunelog_artist']) ."', '". addslashes($item['tunelog_album']) ."', '". addslashes($item['tunelog_trackno'])."', '". addslashes($item['tunelog_tracklength'])."', '". addslashes($item['tunelog_visible'])."', '". addslashes($item['tunelog_added'])."', now(), '". $item['tunelog_user_id'] ."') "; $res = mysql_query($query); echo $query; if (!$res) return (false); $item['id'] = mysql_insert_id(); $query2 ="update comoblog_mod_tunelog set tunelog_tracklength ='". $item['tunelog_tracklength']."' where tunelog_songtitle = '". $item['tunelog_songtitle'] ."' and tunelog_artist = '". $item['tunelog_artist'] ."' and tunelog_album = '". $item['tunelog_album'] ."' and tunelog_tracklength ='00:00:00'; " ; #$res = mysql_query($query2); return ($item); } function mod_tunelog_add2 ($item) { # $query = "select max(tunelog_display_order)+1 from ".CFG_MYSQL_TABPREFIX."mod_tunelog"; # $res = mysql_query($query); # $item['tunelog_display_order'] = mysql_result($res,0,0); $item['tunelog_added'] = time(); $item['tunelog_visble'] = "Y"; $item['tunelog_user_id'] ="1"; $query = " insert into ".CFG_MYSQL_TABPREFIX."mod_tunelog (tunelog_songtitle,tunelog_artist,tunelog_album,tunelog_trackno,tunelog_tracklength,tunelog_visible,tunelog_added,tunelog_addeddate,tunelog_user_id) values ('". $item['tunelog_songtitle'] ."', '". $item['tunelog_artist'] ."', '". $item['tunelog_album'] ."', '". $item['tunelog_trackno']."', '". $item['tunelog_tracklength']."', '". $item['tunelog_visible']."', '". $item['tunelog_added']."', now(), '". $item['tunelog_user_id'] ."') "; $res = mysql_query($query); if (!$res) return (false); $item['id'] = mysql_insert_id(); return ($item); } function mod_tunelog_del ($item_id) { $query = "delete from ".CFG_MYSQL_TABPREFIX."mod_tunelog where tunelog_id = '".$item_id."'"; $res = mysql_query($query); if (!$res) return (false); return (true); } function mod_tunelog_edit ($item) { $query = " update ".CFG_MYSQL_TABPREFIX."mod_tunelog set tunelog_songtitle = '". $item['tunelog_songtitle'] ."', tunelog_artist = '". $item['tunelog_artist'] ."', tunelog_album = '". $item['tunelog_album'] ."', tunelog_tracklength = '". $item['tunelog_tracklength']."' where tunelog_id = '". $item['tunelog_id'] ."' "; $res = mysql_query($query); if (!$res) return (false); return ($item); } function mod_tunelog_list_by_month () { $query = "select concat(monthname(tunelog_addeddate),' ', year(tunelog_addeddate))as column1 , count(*) as column2 from ".CFG_MYSQL_TABPREFIX."mod_tunelog group by column1 order by substring(tunelog_addeddate,1,7) desc"; #echo $query; $res = mysql_query($query); 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_tunelog_list_by_artist () { $query = "select distinct(tunelog_artist) as column1, count(*) as column2 from ".CFG_MYSQL_TABPREFIX."mod_tunelog group by column1 order by column2 desc limit 40"; #echo $query; $res = mysql_query($query); 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_tunelog_list_by_album () { $query = "SELECT tunelog_album,tunelog_artist , round(COUNT(tunelog_album) / COUNT(DISTINCT tunelog_songtitle, tunelog_album)) AS frequency FROM comoblog_mod_tunelog GROUP BY tunelog_album ORDER BY frequency DESC limit 50"; #echo $query; $res = mysql_query($query); 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_tunelog_list_by_track () { $query = "select tunelog_songtitle as column1,tunelog_artist as column2 , count(*) as column3 from comoblog_mod_tunelog group by column1,column2 order by column3 desc limit 40"; #echo $query; $res = mysql_query($query); 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_tunelog_list_last_ten () { $query = " select b.*, FROM_UNIXTIME(b.tunelog_added ) as tunelog_played from ".CFG_MYSQL_TABPREFIX."mod_tunelog b order by b.tunelog_addeddate desc limit " . CFG_MOD_TUNELOG_HOW_MANY; $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_tunelog_showpage_stuffer ($item_text) { $query = "update ".CFG_MYSQL_TABPREFIX."mod_showpage set showpage_url = '', showpage_description = '". addslashes($item_text) ."' where lower(showpage_nav_text) = 'tunes'"; #echo $query; $res = mysql_query($query); if (!$res) return (false); return ($res); } function mod_tunelog_up ($item_id) { } function mod_tunelog_down ($item_id) { } ?> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:17
|
Update of /cvsroot/comoblog/comoblog/modules/mod_tunelog/templates/sidebar In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_tunelog/templates/sidebar Added Files: mod_tunelog.tpl.htm Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: mod_tunelog.tpl.htm --- <!-- BEGIN: main --> <div id="mod_tunelog" class="sidebar_module"> <span class="mod_header_text">Latest Tunes:</span> <ul class="sidebar_ul"> <!-- BEGIN: item --> <li class="sidebar_list"> {ITEM.tunelog_songtitle} <br/> {ITEM.tunelog_artist} > {ITEM.tunelog_album} </li> <!-- END: item --> </ul> <a href="page.php?page=tunes">more details...</a> </div> <!-- END: main --> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:17
|
Update of /cvsroot/comoblog/comoblog/modules/mod_contentextra/templates/top In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_contentextra/templates/top Added Files: mod_contentextra.tpl.htm Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: mod_contentextra.tpl.htm --- <!-- BEGIN: main --> <select name="mod_contentextra" onchange="if(this.value!='nolink') window.open(this.value,'','');"> <option value="nolink"></option> <!-- BEGIN: item --> <option value="{ITEM.contentextra_url}">{ITEM.contentextra_title}</option> <!-- END: item --> </select> <!-- END: main --> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:17
|
Update of /cvsroot/comoblog/comoblog/modules/mod_tunelog/templates In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_tunelog/templates Added Files: mod_tunelog_full_page.tpl.htm mod_tunelog_list_last_ten.tpl.htm mod_tunelog_list_by_month.tpl.htm mod_tunelog_list_by_track.tpl.htm mod_tunelog_list_by_album.tpl.htm mod_tunelog_list_by_artist.tpl.htm Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: mod_tunelog_full_page.tpl.htm --- <!-- BEGIN: main --> <p class="statsheading">As you'll see from the webcam, i spend a fair amout of time with my headphones on, I've been keeping the data for a while now, and while I like to think my tastes are pretty eclectic, well... lets see shall we </p> <p class="statsheading">Im Currently listening to.</p> <span align="center">{LASTTEN} </span> <p class="statsheading">Tunes counted by the number of times played</p> <span align="center">{BYTRACK} </span> <p class="statsheading" >Just for the record, while I quite like Linkin Park,well i did at the time, but not <em>that</em> much.</p> <p class="statsheading" >You know how it is, you go leave for the weekend, leave the tune server running, next thing you know it looks like you've played it 55 times straight through. I mean, come on I'm not 14 anymore.</p> <p class="statsheading">Now that that's explained, Tunes by album</p> <span align="center">{BYALBUM} </span> <p class="statsheading">And by Artist</p> <span align="center">{BYARTIST} </span> <p class="statsheading">And Finally the monthly stats. yes I know, Its quite sad really isnt it</p> <span align="center">{BYMONTH}</span> <!-- END: main --> --- NEW FILE: mod_tunelog_list_by_artist.tpl.htm --- <!-- BEGIN: main --> <!-- mod_tunelog_list_by_month.tpl.htm --> <table class="tunetable" border="0" cellspacing="0" cellpadding="2"> <tr class="tunesrowhead"> <th class="tunesrowhead" width="90%" align="left" valign="top">Artist</th> <th class="tunesrowhead" align="right" valign="top">Count</th> </tr> <!-- BEGIN: item --> <tr class="{ROW}"> <td class="{ROW}" align="left" valign="top">{ITEM.column1}</td> <td class="{ROW}" align="right" valign="top">{ITEM.column2}</td> </tr> <!-- END: item --> </table> <!-- END: main --> --- NEW FILE: mod_tunelog_list_by_track.tpl.htm --- <!-- BEGIN: main --> <!-- mod_tunelog_list_by_month.tpl.htm --> <table class="tunetable" border="0" cellspacing="0" cellpadding="2"\n> <tr class="tunesrowhead"> <th class="tunesrowhead" width="90%" align="left" valign="top">Track</th> <th class="tunesrowhead" align="right" valign="top">Played</th> </tr> <!-- BEGIN: item --> <tr class="{ROW}"> <td class="{ROW}" align="left" valign="top">{ITEM.column1} - {ITEM.column2}</td> <td class="{ROW}" align="right" valign="top">{ITEM.column3}</td> </tr> <!-- END: item --> </table> <!-- END: main --> --- NEW FILE: mod_tunelog_list_last_ten.tpl.htm --- <!-- BEGIN: main --> <!-- mod_tunelog_list_by_month.tpl.htm --> <table class="tunetable" border="0" cellspacing="0" cellpadding="2"\n> <tr class="tunesrowhead"> <th class="tunesrowhead" align="left" valign="top">Track</th> <th class="tunesrowhead" align="left" valign="top">Artist</th> <th class="tunesrowhead" align="left" valign="top">Album</th> <th class="tunesrowhead" align="left" valign="top">Played</th> </tr> <!-- BEGIN: item --> <tr class="{ROW}"> <td class="{ROW}" align="left" valign="top">{ITEM.tunelog_songtitle}</td> <td class="{ROW}" align="left" valign="top">{ITEM.tunelog_artist}</td> <td class="{ROW}" align="left" valign="top">{ITEM.tunelog_album}</td> <td class="{ROW}" align="left" valign="top">{ITEM.tunelog_played}</td> </tr> <!-- END: item --> </table> <!-- END: main --> --- NEW FILE: mod_tunelog_list_by_album.tpl.htm --- <!-- BEGIN: main --> <!-- mod_tunelog_list_by_month.tpl.htm --> <table class="tunetable" border="0" cellspacing="0" cellpadding="2"\n> <tr class="tunesrowhead"> <th class="tunesrowhead" width="90%" align="left" valign="top">Album</th> <th class="tunesrowhead" align="right" valign="top">Count</th> </tr> <!-- BEGIN: item --> <tr class="{ROW}"> <td class="{ROW}" align="left" valign="top">{ITEM.tunelog_album} - {ITEM.tunelog_artist}</td> <td class="{ROW}" align="right" valign="top">{ITEM.frequency}</td> </tr> <!-- END: item --> </table> <!-- END: main --> --- NEW FILE: mod_tunelog_list_by_month.tpl.htm --- <!-- BEGIN: main --> <!-- mod_tunelog_list_by_month.tpl.htm --> <table class="tunetable" border="0" cellspacing="0" cellpadding="2"\n> <tr class="tunesrowhead"> <th class="tunesrowhead" width="90%" align="left" valign="top">Month</th> <th class="tunesrowhead" align="right" valign="top">Count</th> </tr> <!-- BEGIN: item --> <tr class="{ROW}"> <td class="{ROW}" align="left" valign="top">{ITEM.column1}</td> <td class="{ROW}" align="right" valign="top">{ITEM.column2}</td> </tr> <!-- END: item --> </table> <!-- END: main --> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:17
|
Update of /cvsroot/comoblog/comoblog/include/pear/Text/CAPTCHA/Driver In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/include/pear/Text/CAPTCHA/Driver Added Files: Image.php Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: Image.php --- <?php /** * * Require Image_Text class for generating the text. * */ require_once 'Image/Text.php'; /** * Text_CAPTCHA_Driver_Image - Text_CAPTCHA driver graphical CAPTCHAs * * Class to create a graphical Turing test * * TODOs: * + refine the obfuscation algorithm :-) * + learn how to use Image_Text better (or remove dependency) * * * @license PHP License, version 3.0 * @author Christian Wenz <we...@ph...> */ class Text_CAPTCHA_Driver_Image extends Text_CAPTCHA { /** * Image object * * @access private * @var resource */ var $_im; /** * Image_Text object * * @access private * @var resource */ var $_imt; /** * Width of CAPTCHA * * @access private * @var int */ var $_width; /** * Height of CAPTCHA * * @access private * @var int */ var $_height; /** * Further options (for Image_Text) * * @access private * @var array */ var $_options; /** * init function * * Initializes the new Text_CAPTCHA_Driver_Image object and creates a GD image * * @param int $width Width of image * @param int $height Height of image * @param string $phrase The "secret word" of the CAPTCHA * @param array $options further options (for Image_Text) * @access public * @return mixed true upon success, PEAR error otherwise */ function init($width = 200, $height = 80, $phrase = null, $options = null) { if (is_int($width) && is_int($height)) { $this->_width = $width; $this->_height = $height; if (empty($phrase)) { $this->_createPhrase(); } else { $this->_phrase = $phrase; } if (empty($options)) { $this->_options = array( 'font_size' => 24, 'font_path' => './', 'font_file' => 'COUR.TTF' ); } else { $this->_options = $options; if (!isset($this->_options['font_size'])) { $this->_options['font_size'] = 24; } if (!isset($this->_options['font_path'])) { $this->_options['font_path'] = './'; } if (!isset($this->_options['font_file'])) { $this->_options['font_file'] = 'COUR.TTF'; } } $retval = $this->_createCAPTCHA(); if (PEAR::isError($retval)) { return PEAR::raiseError($retval->getMessage()); } else { return true; } } else { return PEAR::raiseError('Use numeric CAPTCHA dimensions!'); } } /** * Create random CAPTCHA phrase, Image edition (with size check) * * This method creates a random phrase, maximum 8 characters or width / 25, whatever is smaller * * @access private */ function _createPhrase() { $len = intval(min(8, $this->_width / 25)); $this->_phrase = Text_Password::create($len); } /** * Create CAPTCHA image * * This method creates a CAPTCHA image * * @access private */ function _createCAPTCHA() { $options['canvas'] = array( 'width' => $this->_width, 'height' => $this->_height ); $options['width'] = $this->_width - 20; $options['height'] = $this->_height - 20; $options['cx'] = ceil(($this->_width) / 2 + 10); $options['cy'] = ceil(($this->_height) / 2 + 10); $options['angle'] = rand(0, 30) - 15; $options['font_size'] = $this->_options['font_size']; $options['font_path'] = $this->_options['font_path']; $options['font_file'] = $this->_options['font_file']; $options['color'] = array('#FFFFFF', '#000000'); $options['max_lines'] = 1; $options['mode'] = 'auto'; $this->_imt = new Image_Text( $this->_phrase, $options ); if (PEAR::isError($this->_imt->init())) { return PEAR::raiseError('Error initializing Image_Text (font missing?!)'); } $this->_imt->measurize(); $this->_imt->render(); $this->_im =& $this->_imt->getImg(); $white = imagecolorallocate($this->_im, 0xFF, 0xFF, 0xFF); //some obfuscation for ($i=0; $i<3; $i++) { $x1 = rand(0, $this->_width - 1); $y1 = rand(0, round($this->_height / 10, 0)); $x2 = rand(0, round($this->_width / 10, 0)); $y2 = rand(0, $this->_height - 1); imageline($this->_im, $x1, $y1, $x2, $y2, $white); $x1 = rand(0, $this->_width - 1); $y1 = $this->_height - rand(1, round($this->_height / 10, 0)); $x2 = $this->_width - rand(1, round($this->_width / 10, 0)); $y2 = rand(0, $this->_height - 1); imageline($this->_im, $x1, $y1, $x2, $y2, $white); $cx = rand(0, $this->_width - 50) + 25; $cy = rand(0, $this->_height - 50) + 25; $w = rand(1, 24); imagearc($this->_im, $cx, $cy, $w, $w, 0, 360, $white); } } /** * Return CAPTCHA as image resource * * This method returns the CAPTCHA as GD2 image resource * * @access public * @return im image resource */ function getCAPTCHA() { return $this->_im; } /** * Return CAPTCHA as PNG * * This method returns the CAPTCHA as PNG * * @access public */ function getCAPTCHAAsPNG() { if (is_resource($this->_im)) { ob_start(); imagepng($this->_im); $data = ob_get_contents(); ob_end_clean(); return $data; } else { return PEAR::raiseError('Error creating CAPTCHA image (font missing?!)'); } } /** * Return CAPTCHA as JPEG * * This method returns the CAPTCHA as JPEG * * @access public */ function getCAPTCHAAsJPEG() { if (is_resource($this->_im)) { ob_start(); imagejpeg($this->_im); $data = ob_get_contents(); ob_end_clean(); return $data; } else { return PEAR::raiseError('Error creating CAPTCHA image (font missing?!)'); } } } |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:17
|
Update of /cvsroot/comoblog/comoblog/modules/mod_tunelog/img In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_tunelog/img Added Files: mod_tunelog.gif mod_tunelog_big.gif Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: mod_tunelog_big.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mod_tunelog.gif --- (This appears to be a binary file; contents omitted.) |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:17
|
Update of /cvsroot/comoblog/comoblog/modules/mod_blogrolling2/templates/sidebar In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_blogrolling2/templates/sidebar 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 --> <div id="mod_blogrolling2" class="sidebar_module"> Other Places <ul class="sidebar_ul"> <!-- BEGIN: item --> <li class="sidebar_list"> <a href="{ITEM.blogrolling2_url}" title="{ITEM.blogrolling2_title} - {ITEM.blogrolling2_description}"><strong>{ITEM.blogrolling2_title}</strong></a><br /> {ITEM.blogrolling2_description} </li> <!-- END: item --> </ul> </div> <!-- END: main --> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:16
|
Update of /cvsroot/comoblog/comoblog/modules/mod_navchoice/templates/sidebar_images In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_navchoice/templates/sidebar_images Added Files: mod_navchoice.tpl.htm button_blog.gif button_webcam.gif button_tunes.gif Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: button_tunes.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: button_webcam.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mod_navchoice.tpl.htm --- <!-- BEGIN: main --> <div id="mod_showpage"> <!-- BEGIN: item --> <a href="{ITEM.showpage_nav_link}" ><img src ="{ITEM.showpage_nav_image}" alt="{ITEM.showpage_nav_text}" hspace="0" vspace="0" border ="0"></a><br> <!-- END: item --> </div> <!-- END: main --> --- NEW FILE: button_blog.gif --- (This appears to be a binary file; contents omitted.) |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:16
|
Update of /cvsroot/comoblog/comoblog/_install/upgrades In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/_install/upgrades Added Files: 1.2_to_1.3.xml Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: 1.2_to_1.3.xml --- <?xml version="1.0" standalone="yes"?> <comoblog_upgrade> <dbquery> ALTER TABLE comoblog_comments ADD comment_live VARCHAR( 1 ) NOT NULL default 'N' AFTER post_id; </dbquery> <dbquery> CREATE TABLE comoblog_commenters (commenter_id int(10) unsigned NOT NULL auto_increment, commenter_author_email varchar(128) default NULL, commenter_default varchar(1) default 'N' PRIMARY KEY (commenter_id), KEY (commenter_author_email)); </dbquery> <dbquery> update comoblog_preferences set pref_value='1.3' where pref_name='CFG_VERSION'; </dbquery> <dbquery> insert into comoblog_preferences (pref_name, pref_value, pref_description, pref_topic_id, pref_encrypt, pref_type, pref_restrict_values, pref_accept_null, pref_editable, pref_display_order, mod_name) VALUES ('CFG_COMMENTS_DEFAULT_STATE', 'no', 'Are Comments Live By Default?', 5, 'N', 'select', 'no|yes', 'N', 'Y', 5, ''); </dbquery> <dbquery> insert into comoblog_preferences (pref_name, pref_value, pref_description, pref_topic_id, pref_encrypt, pref_type, pref_restrict_values, pref_accept_null, pref_editable, pref_display_order, mod_name) VALUES ('CFG_COMMENTS_QUICK_PASS', '', 'Add a password for quick changes to commenting users (with Mod Comment Notify) DO NOT USE YOUR MAIN SITE PASSWORD', 5, 'Y', 'password', '16', 'N', 'Y', 5, ''); </dbquery> <dbquery> insert into comoblog_preferences (pref_name, pref_value, pref_description, pref_topic_id, pref_encrypt, pref_type, pref_restrict_values, pref_accept_null, pref_editable, pref_display_order, mod_name) VALUES ('CFG_COMMENT_SORT_ORDER', 'no', 'Comment Sort Method?', 5, 'N', 'select', 'asc|desc', 'N', 'Y', 5, ''); </dbquery> </comoblog_upgrade> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:11
|
Update of /cvsroot/comoblog/comoblog/modules/mod_showpage In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_showpage Added Files: index.php mod_showpage.php Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: index.php --- --- NEW FILE: mod_showpage.php --- <?php if (in_array('mod_showpage', $SIDEBAR_MODULES)) $mod_pos = 'sidebar'; else $mod_pos = 'top'; require_once (CFG_BASE_PATH.'/modules/mod_showpage/include/mod_showpage.inc.php'); $showpage_items = mod_showpage_list(); #echo "sp " . $showpage_items; if ($showpage_items) { #echo"<hr>got items <hr>"; $mod_showpage_tpl = new XTemplate (CFG_BASE_PATH.'/modules/mod_showpage/templates/'.$mod_pos.'/mod_showpage.tpl.htm'); #echo '' . CFG_BASE_PATH .'/modules/mod_showpage/templates/'. $mod_pos. '/mod_showpage.tpl.htm<hr>'; for ($c = 0; $c < count($showpage_items); $c++) { if ($c % 2) $tpl->assign('BGCOLOR', '#ffffff'); else $tpl->assign('BGCOLOR', '#efefef'); $mod_showpage_tpl->assign('ITEM', $showpage_items[$c]); $mod_showpage_tpl->parse('main.item'); } $mod_showpage_tpl->parse('main'); $mod_contents = $mod_showpage_tpl->text("main"); } else { $mod_contents = ''; } #echo $mod_contents ; ?> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:11
|
Update of /cvsroot/comoblog/comoblog/modules/mod_navchoice/templates/top_images In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_navchoice/templates/top_images Added Files: mod_showpage.tpl.htm button_tunes.gif button_webcam.gif button_blog.gif Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: button_tunes.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: button_webcam.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mod_showpage.tpl.htm --- <!-- BEGIN: main --> <div id="mod_showpage"> <!-- BEGIN: item --> <a href="{ITEM.showpage_nav_link}" ><img src ="{ITEM.showpage_nav_image}" alt="{ITEM.showpage_nav_text}" hspace="0" vspace="0" border ="0"></a> <!-- END: item --> </div> <!-- END: main --> --- NEW FILE: button_blog.gif --- (This appears to be a binary file; contents omitted.) |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:10
|
Update of /cvsroot/comoblog/comoblog/include/pear/Text In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/include/pear/Text Added Files: CAPTCHA.php Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: CAPTCHA.php --- <?php /** * Text_CAPTCHA - creates a CAPTCHA for Turing tests * * Class to create a Turing test for websites by * creating an image, ASCII art or something else * with some (obfuscated) characters * * TODOs: * + refine the obfuscation algorithm :-) * + learn how to use Image_Text better (or remove dependency) * * * @package Text_CAPTCHA * @license PHP License, version 3.0 * @author Christian Wenz <we...@ph...> * @category Text */ /** * * Require PEAR class for error handling. * */ require_once 'PEAR.php'; /** * * Require Text_Password class for generating the phrase. * */ require_once 'Text/Password.php'; /** * Text_CAPTCHA - creates a CAPTCHA for Turing tests * * Class to create a Turing test for websites by * creating an image, ASCII art or something else * with some (obfuscated) characters * * @package Text_CAPTCHA */ /* // This is a simple example script <?php if (!function_exists('file_put_contents')) { function file_put_contents($filename, $content) { if (!($file = fopen($filename, 'w'))) { return false; } $n = fwrite($file, $content); fclose($file); return $n ? $n : false; } } // Start PHP session support session_start(); $ok = false; $msg = 'Please enter the text in the image in the field below!'; if ($_SERVER['REQUEST_METHOD'] == 'POST') { if (isset($_POST['phrase']) && isset($_SESSION['phrase']) && strlen($_POST['phrase']) > 0 && strlen($_SESSION['phrase']) > 0 && $_POST['phrase'] == $_SESSION['phrase']) { $msg = 'OK!'; $ok = true; unset($_SESSION['phrase']); } else { $msg = 'Please try again!'; } unlink(session_id() . '.png'); } print "<p>$msg</p>"; if (!$ok) { require_once 'Text/CAPTCHA.php'; // Set CAPTCHA options (font must exist!) $options = array( 'font_size' => 24, 'font_path' => './', 'font_file' => 'COUR.TTF' ); // Generate a new Text_CAPTCHA object, Image driver $c = Text_CAPTCHA::factory('Image'); $retval = $c->init(200, 80, null, $options); if (PEAR::isError($retval)) { echo 'Error generating CAPTCHA!'; exit; } // Get CAPTCHA secret passphrase $_SESSION['phrase'] = $c->getPhrase(); // Get CAPTCHA image (as PNG) $png = $c->getCAPTCHAAsPNG(); if (PEAR::isError($png)) { echo 'Error generating CAPTCHA!'; exit; } file_put_contents(md5(session_id()) . '.png', $png); echo '<form method="post">' . '<img src="' . md5(session_id()) . '.png?' . time() . '" />' . '<input type="text" name="phrase" />' . '<input type="submit" /></form>'; } ?> */ class Text_CAPTCHA { /** * Phrase * * @access private * @var string */ var $_phrase; /** * Create a new Text_CAPTCHA object * * @param string $driver name of driver class to initialize * * @return mixed a newly created Text_CAPTCHA object, or a PEAR * error object on error * * @see PEAR::isError() */ function &factory($driver) { if ($driver == '') { return PEAR::raiseError('No CAPTCHA type specified ... aborting. You must call ::factory() with one parameter, the CAPTCHA type.', true); } $driver = basename($driver); include_once "Text/CAPTCHA/Driver/$driver.php"; $classname = "Text_CAPTCHA_Driver_$driver"; $obj =& new $classname; return $obj; } /** * Create random CAPTCHA phrase * * This method creates a random phrase, 8 characters long * * @access private */ function _createPhrase() { $len = 8; $this->_phrase = Text_Password::create($len); } /** * Return secret CAPTCHA phrase * * This method returns the CAPTCHA phrase * * @access public * @return phrase secret phrase */ function getPhrase() { return $this->_phrase; } /** * Place holder for the real init() method * used by extended classes to initialize CAPTCHA * * @access private * @return PEAR_Error */ function init() { return PEAR::raiseError('CAPTCHA type not selected', true); } /** * Place holder for the real _createCAPTCHA() method * used by extended classes to generate CAPTCHA from phrase * * @access private * @return PEAR_Error */ function _createCAPTCHA() { return PEAR::raiseError('CAPTCHA type not selected', true); } /** * Place holder for the real getCAPTCHA() method * used by extended classes to return the generated CAPTCHA * (as an image resource, as an ASCII text, ...) * * @access private * @return PEAR_Error */ function getCAPTCHA() { return PEAR::raiseError('CAPTCHA type not selected', true); } } ?> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:10
|
Update of /cvsroot/comoblog/comoblog/modules/mod_blogrolling2/admin In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_blogrolling2/admin Added Files: mod_blogrolling2_del.php mod_blogrolling2_edit.php mod_blogrolling2.php mod_blogrolling2_add.php Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: mod_blogrolling2_del.php --- --- NEW FILE: mod_blogrolling2_edit.php --- <?php require_once ('../../../admin/include/admin.inc.php'); require_once ('../include/mod_blogrolling2.inc.php'); if (strtoupper($_SERVER['REQUEST_METHOD'] == 'POST')) { $errors = array(); if ($_POST['blogrolling2_title'] == '') $errors[] = 'You must provide a title for your entry'; if ($_POST['blogrolling2_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_blogrolling2_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_blogrolling2_details($item_id); $tpl = new XTemplate('templates/mod_blogrolling2_edit.tpl.htm'); $tpl->assign('ITEM', $item); $tpl->assign('ACTION', basename($_SERVER['PHP_SELF'])); $tpl->parse('main'); $tpl->out('main'); } ?> --- NEW FILE: mod_blogrolling2.php --- <?php require_once ('../../../admin/include/admin.inc.php'); require_once ('../include/mod_blogrolling2.inc.php'); $blogrolling2_items = mod_blogrolling2_list (); // template file $tpl = new XTemplate ('templates/mod_blogrolling2.tpl.htm'); $tpl->assign('MOD_NAME', 'mod_blogrolling2'); if ($blogrolling2_items) { for ($c = 0; $c < count($blogrolling2_items); $c++) { if ($c % 2) $tpl->assign('BGCOLOR', '#ffffff'); else $tpl->assign('BGCOLOR', '#efefef'); $tpl->assign('ITEM', $blogrolling2_items[$c]); $tpl->parse('main.items.item'); } $tpl->parse('main.items'); } $tpl->parse('main'); $tpl->out('main'); ?> --- NEW FILE: mod_blogrolling2_add.php --- <?php require_once ('../../../admin/include/admin.inc.php'); require_once ('../include/mod_blogrolling2.inc.php'); if (strtoupper($_SERVER['REQUEST_METHOD'] == 'POST')) { $errors = array(); foreach($_POST as $k => $v) $_POST[$k] = trim($v); if ($_POST['blogrolling2_title'] == '') $errors[] = 'You must provide a title for your entry'; if ($_POST['blogrolling2_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_blogrolling2_add($_POST); echo '<html><head></head><body><script language="javascript">opener.location.reload();this.close();</script></body></html>'; exit(); } } $tpl = new XTemplate('templates/mod_blogrolling2_add.tpl.htm'); $tpl->assign('ACTION', basename($_SERVER['PHP_SELF'])); $tpl->parse('main'); $tpl->out('main'); ?> |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:09
|
Update of /cvsroot/comoblog/comoblog/img/comoblog In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/img/comoblog Added Files: 23.gif 24.gif 19.gif Thumbs.db 20.gif 31.gif 22.gif 5.gif 26.gif 21.gif 25.gif 18.gif Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: 21.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: 19.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: 18.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: Thumbs.db --- (This appears to be a binary file; contents omitted.) --- NEW FILE: 5.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: 26.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: 23.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: 20.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: 31.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: 24.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: 25.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: 22.gif --- (This appears to be a binary file; contents omitted.) |
|
From: iamdecal <iam...@us...> - 2006-10-22 11:44:09
|
Update of /cvsroot/comoblog/comoblog/modules/mod_showpage/img In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27709/modules/mod_showpage/img Added Files: mod_showpage.gif mod_showpage_big.gif Log Message: work in progress, ditching this server cos its borked ;( --- NEW FILE: mod_showpage_big.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mod_showpage.gif --- (This appears to be a binary file; contents omitted.) |