byfly-cvs Mailing List for byFly.net
Status: Inactive
Brought to you by:
flydesign
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(26) |
Sep
(34) |
Oct
(43) |
Nov
(13) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <fly...@us...> - 2004-02-24 18:25:18
|
Update of /cvsroot/byfly/byfly-0.7.0b/_sites/site_4 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15627/_sites/site_4 Removed Files: wolf.jpg Log Message: Files cleaned, some un-used directories and files deleted. --- wolf.jpg DELETED --- |
From: <fly...@us...> - 2004-02-24 18:25:17
|
Update of /cvsroot/byfly/byfly-0.7.0b/_cache/OBJ10 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15627/_cache/OBJ10 Removed Files: 10-.cache 14-.cache Log Message: Files cleaned, some un-used directories and files deleted. --- 10-.cache DELETED --- --- 14-.cache DELETED --- |
From: <fly...@us...> - 2004-02-24 18:25:17
|
Update of /cvsroot/byfly/byfly-0.7.0b/_cache/OBJ8 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15627/_cache/OBJ8 Removed Files: 0-.cache Log Message: Files cleaned, some un-used directories and files deleted. --- 0-.cache DELETED --- |
From: <fly...@us...> - 2004-02-24 18:25:17
|
Update of /cvsroot/byfly/byfly-0.7.0b In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15627 Removed Files: info.php parsetimes.txt Log Message: Files cleaned, some un-used directories and files deleted. --- info.php DELETED --- --- parsetimes.txt DELETED --- |
From: <fly...@us...> - 2003-11-21 18:59:16
|
Update of /cvsroot/byfly/byfly-0.6.0b/modules/menu In directory sc8-pr-cvs1:/tmp/cvs-serv23952/modules/menu Modified Files: class.menu.php Log Message: * Image gallery added * Several small updates in base system Index: class.menu.php =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/modules/menu/class.menu.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** class.menu.php 8 Nov 2003 19:35:53 -0000 1.7 --- class.menu.php 21 Nov 2003 18:59:13 -0000 1.8 *************** *** 42,45 **** --- 42,46 ---- $this->objectInfo = $_SESSION['object']->getInfo($object_id); $this->ID = $this->objectInfo['object_id']; + $this->menuInfo = $this->getMenuInfo($this->ID); $objectTemplate = $_SESSION['template']->readTemplateFile($template_id); return $_SESSION['template']->parseActions($objectTemplate, $this, 'menu'); *************** *** 54,58 **** $data = $_SESSION['common']->xml2array($template, Array( 'settings' => array('style', 'break', 'break-number'), - 'vars' => array('var'), 'levels' => array('level' => array('template', 'spacer', 'break')) )); --- 55,58 ---- *************** *** 64,71 **** $this->levels[$level['_ATTR']['id']]['spacer'] = $level['spacer']['_VALUE']; if(isset($level['break']['_ATTR']['number'])){ ! $this->levels[$level['_ATTR']['id']]['break'][$level['break']['_ATTR']['number']] = $level['break']['_VALUE']; } else { foreach($level['break'] as $nr => $breakstr){ ! $this->levels[$level['_ATTR']['id']]['break'][$level['break'][$nr]['_ATTR']['number']] = $level['break'][$nr]['_VALUE']; } } --- 64,73 ---- $this->levels[$level['_ATTR']['id']]['spacer'] = $level['spacer']['_VALUE']; if(isset($level['break']['_ATTR']['number'])){ ! $level['break']['_ATTR']['showspacer'] = (!isset($level['break']['_ATTR']['showspacer']))? '0' : $level['break']['_ATTR']['showspacer']; ! $this->levels[$level['_ATTR']['id']]['break'][$level['break']['_ATTR']['number']] = array($level['break']['_VALUE'], $level['break']['_ATTR']['showspacer']); } else { foreach($level['break'] as $nr => $breakstr){ ! $level['break'][$nr]['_ATTR']['showspacer'] = (!isset($level['break'][$nr]['_ATTR']['showspacer']))? '0' : $level['break'][$nr]['_ATTR']['showspacer']; ! $this->levels[$level['_ATTR']['id']]['break'][$level['break'][$nr]['_ATTR']['number']] = array($level['break'][$nr]['_VALUE'], $level['break'][$nr]['_ATTR']['showspacer']); } } *************** *** 75,95 **** $this->levels[1]['spacer'] = $data['levels']['level']['spacer']['_VALUE']; if(isset($data['levels']['level']['break']['_ATTR']['number'])){ ! $this->levels[1]['break'][$data['levels']['level']['break']['_ATTR']['number']] = $data['levels']['level']['break']['_VALUE']; } else { foreach($data['levels']['level']['break'] as $nr => $breakstr){ ! $this->levels[1]['break'][$data['levels']['level']['break'][$nr]['_ATTR']['number']] = $data['levels']['level']['break'][$nr]['_VALUE']; } } } - $this->vars = Array(); - if(!isset($data['vars']['var']['_VALUE'])){ - foreach($data['vars']['var'] as $id => $level){ - $this->vars[$level['_ATTR']['name']] = $level['_VALUE']; - } - } else { - $this->vars[$data['vars']['var']['_ATTR']['name']] = $data['vars']['var']['_VALUE']; - } $this->content = ''; --- 77,95 ---- $this->levels[1]['spacer'] = $data['levels']['level']['spacer']['_VALUE']; if(isset($data['levels']['level']['break']['_ATTR']['number'])){ ! $data['levels']['level']['break']['_ATTR']['number'] = (!isset($data['levels']['level']['break']['_ATTR']['number'])) ? '0' : $data['levels']['level']['break']['_ATTR']['number']; ! $this->levels[1]['break'][$data['levels']['level']['break']['_ATTR']['number']] = array($data['levels']['level']['break']['_VALUE'], $data['levels']['level']['break']['_ATTR']['number']); } else { foreach($data['levels']['level']['break'] as $nr => $breakstr){ ! $data['levels']['level']['break'][$nr]['_ATTR']['number'] = (!isset($data['levels']['level']['break'][$nr]['_ATTR']['number'])) ? '0' : $data['levels']['level']['break'][$nr]['_ATTR']['number']; ! $this->levels[1]['break'][$data['levels']['level']['break'][$nr]['_ATTR']['number']] = array($data['levels']['level']['break'][$nr]['_VALUE'], $data['levels']['level']['break'][$nr]['_ATTR']['number']); } } } + if(false === ($this->vars = $_SESSION['DB']->query("SELECT * FROM `fly_module_menu_vars` WHERE `menu_id` = ".$this->ID." ORDER BY `var_id`", 1))){ + return 'Error: no variables defined'; + } + $this->content = ''; *************** *** 113,125 **** $i = 0; if(($line['item_id'] != 1) AND (isset($this->levels[($level+1)]['spacer']))){ $str = $this->levels[($level+1)]['spacer'] . $str; } ! foreach($this->vars as $key => $val){ ! $str = str_replace('{'.$key.'}', $line['var_'.($i+1)], $str); $i++; } $this->content .= $str; if(isset($this->levels[($level+1)]['break'][$line['item_id']])){ ! $this->content .= $this->levels[($level+1)]['break'][$line['item_id']]; } --- 113,131 ---- $i = 0; if(($line['item_id'] != 1) AND (isset($this->levels[($level+1)]['spacer']))){ + if((isset($this->levels[($level+1)]['break'][($line['item_id']-1)]))){ + if($this->levels[($level+1)]['break'][($line['item_id']-1)][1] == 1){ + $str = $this->levels[($level+1)]['spacer'] . $str; + } + } else { $str = $this->levels[($level+1)]['spacer'] . $str; + } } ! foreach($this->vars as $data){ ! $str = str_replace('{'.$data['name'].'}', $line['var_'.($data['var_id'])], $str); $i++; } $this->content .= $str; if(isset($this->levels[($level+1)]['break'][$line['item_id']])){ ! $this->content .= $this->levels[($level+1)]['break'][$line['item_id']][0]; } *************** *** 130,134 **** function getMenuInfo($ID){ ! $settings = $_SESSION['DB']->query("SELECT * FROM `fly_module_menu` WHERE `ID` = $ID",1); if(false !== ($vars = $_SESSION['DB']->query("SELECT * FROM `fly_module_menu_vars` WHERE `menu_id` = $ID ORDER BY `var_id`", 1))){ foreach($vars as $varData){ --- 136,140 ---- function getMenuInfo($ID){ ! $data = $_SESSION['DB']->query("SELECT * FROM `fly_module_menu` WHERE `ID` = $ID",1); if(false !== ($vars = $_SESSION['DB']->query("SELECT * FROM `fly_module_menu_vars` WHERE `menu_id` = $ID ORDER BY `var_id`", 1))){ foreach($vars as $varData){ *************** *** 171,175 **** return false; } ! $item_id = $_SESSION['DB']->query("SELECT MAX(`item_id`) FROM `fly_module_menu_items` WHERE `parent` = '".$parent."'"); $item_id = mysql_fetch_array($item_id); $max = $item_id[0]; --- 177,181 ---- return false; } ! $item_id = $_SESSION['DB']->query("SELECT MAX(`item_id`) FROM `fly_module_menu_items` WHERE `parent` = '".$parent."' AND `menu_id` = '".$this->ID."'"); $item_id = mysql_fetch_array($item_id); $max = $item_id[0]; *************** *** 208,212 **** function selectItem($parent, $level, $id = 0){ ! $menu_items = $_SESSION['DB']->query("SELECT * FROM `fly_module_menu_items` WHERE `menu_id` = '".$this->data['value']."' && parent = '".$parent."' ORDER BY `item_id`"); if(mysql_num_rows($menu_items) <= 0){ return false; --- 214,218 ---- function selectItem($parent, $level, $id = 0){ ! $menu_items = $_SESSION['DB']->query("SELECT * FROM `fly_module_menu_items` WHERE `menu_id` = '".$this->ID."' && parent = '".$parent."' ORDER BY `item_id`"); if(mysql_num_rows($menu_items) <= 0){ return false; *************** *** 223,227 **** $str = '<option value="'.$line['ID'].'"'.$select.'>'.$sp.$line['var_1'].'</option>'; $this->content .= $str; ! if(($level+2) != count($this->levels)){ $this->selectItem($line['ID'], $level+1, $id); } --- 229,233 ---- $str = '<option value="'.$line['ID'].'"'.$select.'>'.$sp.$line['var_1'].'</option>'; $this->content .= $str; ! if(($level+2) != $this->menuInfo['levels']){ $this->selectItem($line['ID'], $level+1, $id); } *************** *** 260,268 **** } ! $item_id = $_SESSION['DB']->query("SELECT MAX(`item_id`) FROM `fly_module_menu` WHERE `parent` = '".$GLOBALS['parent']."'"); $item_id = mysql_fetch_array($item_id); $item_id = $item_id[0] + 1; ! $_SESSION['DB']->query("INSERT INTO `fly_module_menu` (`item_id`, `parent`, `var_1`, `var_2`, `var_3`, `var_4`, `var_5`, `var_6`, `var_7`, `var_8`, `var_9`, `var_10`, `menu_id`) VALUES ('".$item_id."','".$GLOBALS['parent']."','".$GLOBALS['vars'][1]."','".$GLOBALS['vars'][2]."','".$GLOBALS['vars'][3]."','".$GLOBALS['vars'][4]."','".$GLOBALS['vars'][5]."','".$GLOBALS['vars'][6]."','".$GLOBALS['vars'][7]."','".$GLOBALS['vars'][8]."','".$GLOBALS['vars'][9]."','".$GLOBALS['vars'][10]."', '".$this->data['value']."')"); $this->edit(); --- 266,274 ---- } ! $item_id = $_SESSION['DB']->query("SELECT MAX(`item_id`) FROM `fly_module_menu_items` WHERE `parent` = '".$GLOBALS['parent']."'"); $item_id = mysql_fetch_array($item_id); $item_id = $item_id[0] + 1; ! $_SESSION['DB']->query("INSERT INTO `fly_module_menu_items` (`item_id`, `parent`, `var_1`, `var_2`, `var_3`, `var_4`, `var_5`, `var_6`, `var_7`, `var_8`, `var_9`, `var_10`, `menu_id`) VALUES ('".$item_id."','".$GLOBALS['parent']."','".$GLOBALS['vars'][1]."','".$GLOBALS['vars'][2]."','".$GLOBALS['vars'][3]."','".$GLOBALS['vars'][4]."','".$GLOBALS['vars'][5]."','".$GLOBALS['vars'][6]."','".$GLOBALS['vars'][7]."','".$GLOBALS['vars'][8]."','".$GLOBALS['vars'][9]."','".$GLOBALS['vars'][10]."', '".$this->ID."')"); $this->edit(); *************** *** 276,287 **** $i = 0; $str = ''; ! foreach($this->vars as $key => $val){ ! $str .= '<tr><td>'.$key.'</td><td>'; ! switch($val){ case 'TEXT': { ! $str .= '<input type="text" name="vars['.($i+1).']">'; } break; ! case 'LINK': { ! $str .= '<input type="text" name="vars['.($i+1).']" value="http://www.adress.com/file.html"> <input type="button" value="'.$this->lang('BROWSE').'" onClick="browse()">'; } break; } --- 282,293 ---- $i = 0; $str = ''; ! foreach($this->menuInfo['vars'] as $val){ ! $str .= '<tr><td>'.$val['name'].'</td><td>'; ! switch($val['type']){ case 'TEXT': { ! $str .= '<input type="text" name="vars['.$val['var_id'].']">'; } break; ! case 'URL': { ! $str .= '<input type="text" name="vars['.$val['var_id'].']" value="http://www.adress.com/file.html"> <input type="button" value="'.$this->lang('BROWSE').'" onClick="browse()">'; } break; } *************** *** 345,356 **** $i = 0; $str = ''; ! foreach($this->vars as $key => $val){ ! $str .= '<tr><td>'.$key.'</td><td>'; ! switch($val){ case 'TEXT': { ! $str .= '<input type="text" name="vars['.($i+1).']" value="'.$item_data['var_'.($i+1)].'">'; } break; ! case 'LINK': { ! $str .= '<input type="text" name="vars['.($i+1).']" value="'.$item_data['var_'.($i+1)].'"> <input type="button" value="'.$this->lang('BROWSE').'" onClick="browse()">'; } break; } --- 351,362 ---- $i = 0; $str = ''; ! foreach($this->menuInfo['vars'] as $val){ ! $str .= '<tr><td>'.$val['name'].'</td><td>'; ! switch($val['type']){ case 'TEXT': { ! $str .= '<input type="text" name="vars['.$val['var_id'].']" value="'.$item_data['var_'.$val['var_id']].'">'; } break; ! case 'URL': { ! $str .= '<input type="text" name="vars['.$val['var_id'].']" value="'.$item_data['var_'.$val['var_id']].'"> <input type="button" value="'.$this->lang('BROWSE').'" onClick="browse()">'; } break; } |
From: <fly...@us...> - 2003-11-21 18:59:16
|
Update of /cvsroot/byfly/byfly-0.6.0b/modules/menu/files In directory sc8-pr-cvs1:/tmp/cvs-serv23952/modules/menu/files Modified Files: add.tpl delete.tpl edit.tpl Log Message: * Image gallery added * Several small updates in base system Index: add.tpl =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/modules/menu/files/add.tpl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** add.tpl 22 Aug 2003 11:15:47 -0000 1.1.1.1 --- add.tpl 21 Nov 2003 18:59:13 -0000 1.2 *************** *** 2,32 **** <head> <title>Menu editor</title> ! <style> ! body, table { ! font-family: Verdana; ! font-size: 10pt; ! } ! td { ! border: 1px solid lightgrey; ! } ! a { ! color: black; ! font-size: 9pt; ! font-weight: bold; ! text-decoration: none; ! } ! a:hover { ! text-decoration: underline; ! } ! ! </style> </head> <body> <form method="post" action="index.php?module=menu&function=db_add"> <b>{ADD_NEW_ITEM}</b><BR> ! <table width="100%"> {rows} </table> <BR><BR> <input type="button" value="{BACK}" onClick="location.href='index.php?module=menu&function=edit'"> <input type="submit" value="{ADD}"> --- 2,21 ---- <head> <title>Menu editor</title> ! <link rel="stylesheet" type="text/css" href="files/{skin}/style.css" /> </head> <body> + <table width="100%" style="border-collapse: collapse;" class="borders-black"> + <tr> + <td style="text-align: center"><a href="index.php?module=menu&function=edit&view=posts" style="color: black">{MENU_ITEMS}</a></td> + <td style="text-align: center"><a href="index.php?module=menu&function=edit&view=settings" style="color: black">{SETTINGS}</a></td> + </tr> + </table> <form method="post" action="index.php?module=menu&function=db_add"> <b>{ADD_NEW_ITEM}</b><BR> ! <table width="100%" class="borders-black"> {rows} </table> <BR><BR> + <div align="center"> <input type="button" value="{BACK}" onClick="location.href='index.php?module=menu&function=edit'"> <input type="submit" value="{ADD}"> Index: delete.tpl =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/modules/menu/files/delete.tpl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** delete.tpl 22 Aug 2003 11:15:47 -0000 1.1.1.1 --- delete.tpl 21 Nov 2003 18:59:13 -0000 1.2 *************** *** 2,27 **** <head> <title>Menu editor</title> ! <style> ! body, table { ! font-family: Verdana; ! font-size: 10pt; ! } ! td { ! border: 1px solid lightgrey; ! } ! a { ! color: black; ! font-size: 9pt; ! font-weight: bold; ! text-decoration: none; ! } ! a:hover { ! text-decoration: underline; ! } ! ! </style> </head> <body> ! <div align="center"> {DELETE_MENU_ITEM} --- 2,14 ---- <head> <title>Menu editor</title> ! <link rel="stylesheet" type="text/css" href="files/{skin}/style.css" /> </head> <body> ! <table width="100%" style="border-collapse: collapse;" class="borders-black"> ! <tr> ! <td style="text-align: center"><a href="index.php?module=menu&function=edit&view=posts" style="color: black">{MENU_ITEMS}</a></td> ! <td style="text-align: center"><a href="index.php?module=menu&function=edit&view=settings" style="color: black">{SETTINGS}</a></td> ! </tr> ! </table> <div align="center"> {DELETE_MENU_ITEM} Index: edit.tpl =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/modules/menu/files/edit.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** edit.tpl 4 Sep 2003 18:23:37 -0000 1.2 --- edit.tpl 21 Nov 2003 18:59:13 -0000 1.3 *************** *** 2,24 **** <head> <title>Menu editor</title> ! <style> ! body, table { ! font-family: Verdana; ! font-size: 10pt; ! } ! td { ! border: 1px solid lightgrey; ! } ! a { ! color: black; ! font-size: 9pt; ! font-weight: bold; ! text-decoration: none; ! } ! a:hover { ! text-decoration: underline; ! } ! ! </style> <script> function browse(){ --- 2,6 ---- <head> <title>Menu editor</title> ! <link rel="stylesheet" type="text/css" href="files/{skin}/style.css" /> <script> function browse(){ *************** *** 28,37 **** </head> <body> <form method="post" action="index.php?module=menu&function=db_edit&id={id}"> <b>{EDIT_ITEM}</b><BR> ! <table width="100%"> {rows} </table> <BR><BR> <input type="button" value="{BACK}" onClick="location.href='index.php?module=menu&function=edit'"> <input type="submit" value="{CHANGE}"> --- 10,26 ---- </head> <body> + <table width="100%" style="border-collapse: collapse;" class="borders-black"> + <tr> + <td style="text-align: center"><a href="index.php?module=menu&function=edit&view=posts" style="color: black">{MENU_ITEMS}</a></td> + <td style="text-align: center"><a href="index.php?module=menu&function=edit&view=settings" style="color: black">{SETTINGS}</a></td> + </tr> + </table> <form method="post" action="index.php?module=menu&function=db_edit&id={id}"> <b>{EDIT_ITEM}</b><BR> ! <table width="100%" class="borders-black"> {rows} </table> <BR><BR> + <div align="center"> <input type="button" value="{BACK}" onClick="location.href='index.php?module=menu&function=edit'"> <input type="submit" value="{CHANGE}"> |
From: <fly...@us...> - 2003-11-21 18:59:16
|
Update of /cvsroot/byfly/byfly-0.6.0b/templates/flydesign In directory sc8-pr-cvs1:/tmp/cvs-serv23952/templates/flydesign Modified Files: menu.default.tpl Added Files: gallery.default.tpl Removed Files: guestbook.tpl Log Message: * Image gallery added * Several small updates in base system --- NEW FILE: gallery.default.tpl --- <byfly-action name="view_gallery"> <table class="borders" width="100%" style="border-collapse: collapse;"> <byfly-exe function="listalbums"> <tr> <td><a href="index.php?pid={pid}&album={album_id}&gallery_action=view_album">{name}</a></td> <td>{description}</td> </tr> </byfly-exe> </table> </byfly-action> <byfly-action name="view_album"> <div align="center"> <hr> <byfly-exe function="back_button"> <a href="index.php?pid={pid}&start={start}"><< page {page_id}</a> </byfly-exe> ||| <byfly-exe function="page_links"> <template name="page"><a href="index.php?pid={pid}&start={start}">{page_id}</a></template> <spacer> | </spacer> </byfly-exe> ||| <byfly-exe function="next_button"> <a href="index.php?pid={pid}&start={start}">page {page_id} >></a> </byfly-exe> </div> <hr> <table style="border-collapse: collapse;"> <byfly-exe function="picture"> <td style="border: 1px solid lightgrey; padding: 7px; text-align: center;"> <b>{name}</b><br> <a href="index.php?pid={pid}&picture_id={id}&gallery_action=view_picture"> <img src="{picture}" alt="{description}" border="0" /> </a> </td> </byfly-exe> </table> </byfly-action> <byfly-action name="view_picture"> <div align="center"> <b>{name}</b><br> <br> <img src="{picture}" alt="{description}" border="0" /> <br><br> <i>{description}</i> </div> </byfly-action> Index: menu.default.tpl =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/templates/flydesign/menu.default.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** menu.default.tpl 8 Nov 2003 19:35:54 -0000 1.2 --- menu.default.tpl 21 Nov 2003 18:59:13 -0000 1.3 *************** *** 4,21 **** <style>1</style> </settings> - <vars> - <var name="name">TEXT</var> - <var name="url">LINK</var> - </vars> <levels> <level id="1"> <template><a href="{url}">{name}</a></template> <spacer> :: </spacer> ! <break number="10"><br></break> </level> <level id="2"> <template><a href="{url}">{name}</a></template> <spacer> :: </spacer> ! <break number="10"><br></break> </level> </levels> --- 4,17 ---- <style>1</style> </settings> <levels> <level id="1"> <template><a href="{url}">{name}</a></template> <spacer> :: </spacer> ! <break number="6" showspacer="0"><br></break> </level> <level id="2"> <template><a href="{url}">{name}</a></template> <spacer> :: </spacer> ! <break number="6" showspacer="0"><br></break> </level> </levels> --- guestbook.tpl DELETED --- |
From: <fly...@us...> - 2003-11-21 18:59:16
|
Update of /cvsroot/byfly/byfly-0.6.0b/classes In directory sc8-pr-cvs1:/tmp/cvs-serv23952/classes Modified Files: class.DB.php class.template.php Log Message: * Image gallery added * Several small updates in base system Index: class.DB.php =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/classes/class.DB.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** class.DB.php 8 Nov 2003 19:35:53 -0000 1.3 --- class.DB.php 21 Nov 2003 18:59:12 -0000 1.4 *************** *** 73,77 **** } ! function query($sql = "", $clean = 0){ if(is_null($this->connection)){ $this->connect(); --- 73,77 ---- } ! function query($sql = "", $clean = 0, $num_rows = 0){ if(is_null($this->connection)){ $this->connect(); *************** *** 83,87 **** } if($clean){ ! if(mysql_num_rows($data) == 1){ return mysql_fetch_array($data); } elseif(mysql_num_rows($data) > 0){ --- 83,87 ---- } if($clean){ ! if((mysql_num_rows($data) == 1) AND ($num_rows == 1)){ return mysql_fetch_array($data); } elseif(mysql_num_rows($data) > 0){ Index: class.template.php =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/classes/class.template.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** class.template.php 8 Nov 2003 19:35:53 -0000 1.9 --- class.template.php 21 Nov 2003 18:59:13 -0000 1.10 *************** *** 350,354 **** preg_match_all('/<byfly-exe function="(.+?)">(.*?)<\/byfly-exe>/s',$str,$match); #print_r($match); - while(list($id, $action) = each($match[1])){ if((in_array(strtolower('_exe_'.$action), get_class_methods($object)))){ --- 350,353 ---- |
From: <fly...@us...> - 2003-11-21 18:59:16
|
Update of /cvsroot/byfly/byfly-0.6.0b In directory sc8-pr-cvs1:/tmp/cvs-serv23952 Modified Files: index.php Log Message: * Image gallery added * Several small updates in base system Index: index.php =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/index.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** index.php 8 Nov 2003 19:35:53 -0000 1.10 --- index.php 21 Nov 2003 18:59:12 -0000 1.11 *************** *** 172,176 **** if(DEBUG_FILE){ $fp = fopen ("DEBUG.txt", "a"); ! fwrite ($fp, $str . " "); fclose ($fp); --- 172,176 ---- if(DEBUG_FILE){ $fp = fopen ("DEBUG.txt", "a"); ! fwrite ($fp, date("[d-m-Y H:i:s]") ." ".$str . " "); fclose ($fp); *************** *** 180,182 **** } ! ?> --- 180,182 ---- } ! ?> \ No newline at end of file |
From: <fly...@us...> - 2003-11-08 19:35:59
|
Update of /cvsroot/byfly/byfly-0.6.0b/files/new In directory sc8-pr-cvs1:/tmp/cvs-serv31123/files/new Modified Files: config.tpl page.tpl Log Message: Small updates: - config bug fixed - menu module improved Index: config.tpl =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/files/new/config.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** config.tpl 3 Oct 2003 19:21:58 -0000 1.1 --- config.tpl 8 Nov 2003 19:35:53 -0000 1.2 *************** *** 64,76 **** { ! if (($current != "..") && ($current != ".") && ($current != "editor.php")){ ! $name = substr($current, 0, strpos($current,".")); ! $check = ''; ! if($name == "{lang}"){ ! $check = ' selected="selected"'; ! } ! echo '<option value="'.$name.'"'.$check.'>'.$name.'</option>'; ! ! } --- 64,76 ---- { ! if (($current != "..") && ($current != ".") && ($current != "editor.php") && ($current != '')){ ! $name = substr($current, 0, strpos($current,".")); ! if($name != ''){ ! $check = ''; ! if($name == "{lang}"){ ! $check = ' selected="selected"'; ! } ! echo '<option value="'.$name.'"'.$check.'>'.$name.'</option>'; ! } } Index: page.tpl =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/files/new/page.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** page.tpl 3 Oct 2003 19:21:58 -0000 1.1 --- page.tpl 8 Nov 2003 19:35:53 -0000 1.2 *************** *** 10,13 **** --- 10,28 ---- </style> <script> + + function el(id){ + + if (document.getElementById) { // standards compliant + obj = document.getElementById(id); + } else if ((document.all) && (!document.getElementById)) { // ie4 + eval("obj = document.all."+id); + + } else if (document.layers) { // ns4 + obj = document.layers[id]; + } // endif ns4/document.layers + + return obj; + } + function change(id){ |
From: <fly...@us...> - 2003-11-08 19:35:59
|
Update of /cvsroot/byfly/byfly-0.6.0b/modules/guestbook/lang In directory sc8-pr-cvs1:/tmp/cvs-serv31123/modules/guestbook/lang Modified Files: english.php Log Message: Small updates: - config bug fixed - menu module improved Index: english.php =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/modules/guestbook/lang/english.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** english.php 14 Oct 2003 19:46:28 -0000 1.3 --- english.php 8 Nov 2003 19:35:53 -0000 1.4 *************** *** 8,12 **** $lang = Array( ! 'LANGUAGE_FILE_LAST_UPDATE' => '01:10:58 10-10-2003', 'BACK_TO_PAGE' => 'Back to page', 'BADWORDS' => 'Badwords', --- 8,12 ---- $lang = Array( ! 'LANGUAGE_FILE_LAST_UPDATE' => '15:10:58 24-10-2003', 'BACK_TO_PAGE' => 'Back to page', 'BADWORDS' => 'Badwords', *************** *** 14,17 **** --- 14,18 ---- 'CLOSE' => 'Close', 'CONFIG_ERROR_MESSAGES_ON_PAGE' => 'Configuration error: there can`t be zero messages on one page!', + 'CONFIRM_DELETE_POST' => 'Are you sure to delete this post?', 'DATE' => 'Date and time', 'DELETE_MESSAGE' => 'Message for deleted posts', *************** *** 28,33 **** 'SETTINGS' => 'Settings', 'SHOW_EMAIL' => 'Show e-mail', 'TRANSLATED_LANGUAGE' => 'English', ! 'URL' => 'Web-site', ! 'SHOW_NO_EMAIL' => 'Message to show when user doesn\'t want to show his e-mail'); ?> --- 29,34 ---- 'SETTINGS' => 'Settings', 'SHOW_EMAIL' => 'Show e-mail', + 'SHOW_NO_EMAIL' => 'Message to show when user does not want to show his own e-mailaddress', 'TRANSLATED_LANGUAGE' => 'English', ! 'URL' => 'Web-site'); ?> |
From: <fly...@us...> - 2003-11-08 19:35:58
|
Update of /cvsroot/byfly/byfly-0.6.0b/modules/menu In directory sc8-pr-cvs1:/tmp/cvs-serv31123/modules/menu Modified Files: class.menu.php Log Message: Small updates: - config bug fixed - menu module improved Index: class.menu.php =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/modules/menu/class.menu.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** class.menu.php 14 Oct 2003 19:46:28 -0000 1.6 --- class.menu.php 8 Nov 2003 19:35:53 -0000 1.7 *************** *** 1,4 **** --- 1,23 ---- <? + /******************************************** + * byFly.net + * Smart Content Managment System + ********************************************* + * Copyright (C) July 2003 Edwin Vlieg + ********************************************* + * Licensed under the terms of the GNU General + * Public License (GPL) Version 2, Juni 1991 + * (http://opensource.org/licenses/gpl-license.php) + ********************************************* + * Email: in...@by... + * More info: www.byfly.net + *********************************************/ + + /********************************************* + * class.menu.php: menu module + * Author: Edwin Vlieg + *********************************************/ + class menu { *************** *** 10,16 **** // only called at the start of a new session $this->settings = Array( ! 'edit_in_new_screen' => TRUE, ! 'screen_height' => 600, ! 'screen_width' => 800 ); } --- 29,34 ---- // only called at the start of a new session $this->settings = Array( ! 'need_template' => TRUE, ! 'default_action' => 'view' ); } *************** *** 20,30 **** } ! function parse($data = Array()){ ! $this->data = $data; ! $objectTemplate = $_SESSION['template']->readTemplateFile($data['template']); ! return $_SESSION['template']->parseActions($objectTemplate, $this); ! /* $this->content = ''; $this->buildItem(0, 0); if($this->content != ''){ --- 38,98 ---- } ! function parse($object_id, $template_id){ ! $this->objectInfo = $_SESSION['object']->getInfo($object_id); ! $this->ID = $this->objectInfo['object_id']; ! $objectTemplate = $_SESSION['template']->readTemplateFile($template_id); ! return $_SESSION['template']->parseActions($objectTemplate, $this, 'menu'); ! } ! ! function add(){ ! $_SESSION['DB']->query("INSERT INTO `fly_module_menu` (`ID`) VALUES ('')"); ! return mysql_insert_id(); ! } ! ! function _view($template){ ! $data = $_SESSION['common']->xml2array($template, Array( ! 'settings' => array('style', 'break', 'break-number'), ! 'vars' => array('var'), ! 'levels' => array('level' => array('template', 'spacer', 'break')) ! )); ! ! $this->levels = Array(); ! if(!isset($data['levels']['level']['template'])){ ! foreach($data['levels']['level'] as $id => $level){ ! $this->levels[$level['_ATTR']['id']]['template'] = $level['template']['_VALUE']; ! $this->levels[$level['_ATTR']['id']]['spacer'] = $level['spacer']['_VALUE']; ! if(isset($level['break']['_ATTR']['number'])){ ! $this->levels[$level['_ATTR']['id']]['break'][$level['break']['_ATTR']['number']] = $level['break']['_VALUE']; ! } else { ! foreach($level['break'] as $nr => $breakstr){ ! $this->levels[$level['_ATTR']['id']]['break'][$level['break'][$nr]['_ATTR']['number']] = $level['break'][$nr]['_VALUE']; ! } ! } ! } ! } else { ! $this->levels[1]['template'] = $data['levels']['level']['template']['_VALUE']; ! $this->levels[1]['spacer'] = $data['levels']['level']['spacer']['_VALUE']; ! if(isset($data['levels']['level']['break']['_ATTR']['number'])){ ! $this->levels[1]['break'][$data['levels']['level']['break']['_ATTR']['number']] = $data['levels']['level']['break']['_VALUE']; ! } else { ! foreach($data['levels']['level']['break'] as $nr => $breakstr){ ! $this->levels[1]['break'][$data['levels']['level']['break'][$nr]['_ATTR']['number']] = $data['levels']['level']['break'][$nr]['_VALUE']; ! } ! } ! ! } ! ! $this->vars = Array(); ! if(!isset($data['vars']['var']['_VALUE'])){ ! foreach($data['vars']['var'] as $id => $level){ ! $this->vars[$level['_ATTR']['name']] = $level['_VALUE']; ! } ! } else { ! $this->vars[$data['vars']['var']['_ATTR']['name']] = $data['vars']['var']['_VALUE']; ! } $this->content = ''; + + $this->ID; $this->buildItem(0, 0); if($this->content != ''){ *************** *** 33,55 **** return 'no menu found'; } - */ - } - - function add(){ - - } - - function _view($template){ } function buildItem($parent, $level){ ! $menu_items = $_SESSION['DB']->query("SELECT * FROM `fly_module_menu` WHERE `menu_id` = '".$this->data['value']."' && parent = '".$parent."' ORDER BY `item_id`"); if(mysql_num_rows($menu_items) <= 0){ return false; } while($line = mysql_fetch_array($menu_items)){ ! $str = $this->levels[($level+1)]; $i = 0; foreach($this->vars as $key => $val){ $str = str_replace('{'.$key.'}', $line['var_'.($i+1)], $str); --- 101,118 ---- return 'no menu found'; } } function buildItem($parent, $level){ ! $menu_items = $_SESSION['DB']->query("SELECT * FROM `fly_module_menu_items` WHERE `menu_id` = '".$this->ID."' && parent = '".$parent."' ORDER BY `item_id`"); if(mysql_num_rows($menu_items) <= 0){ return false; } while($line = mysql_fetch_array($menu_items)){ ! $str = $this->levels[($level+1)]['template']; $i = 0; + if(($line['item_id'] != 1) AND (isset($this->levels[($level+1)]['spacer']))){ + $str = $this->levels[($level+1)]['spacer'] . $str; + } foreach($this->vars as $key => $val){ $str = str_replace('{'.$key.'}', $line['var_'.($i+1)], $str); *************** *** 57,85 **** } $this->content .= $str; $this->buildItem($line['ID'], $level+1); } } ! function edit($vid = 0, $media = 0, $object_call = 0){ - # print_r($_SESSION); ! if(($vid == 0) && (isset($GLOBALS['vid']))){ ! $this->vid = $GLOBALS['vid']; ! } ! if(($media == 0) && (isset($GLOBALS['media']))){ ! $this->media = $GLOBALS['media']; ! } ! #echo $_SESSION['menu']->media; ! $this->aVarInfo = $_SESSION[$_SESSION['menu']->media]->getVarInfo($_SESSION['menu']->vid); ! eval($this->aVarInfo['sheet']); ! $this->levels = $levels; ! $this->vars = $vars; $this->content = '<tr><td colspan="4"><a href="index.php?module=menu&function=add_item">Add item</a></td><td>ID</td>'; ! foreach($this->vars as $key => $val){ ! $this->content .= "<td>".$key."</td>"; } $this->content .= '</tr>'; --- 120,158 ---- } $this->content .= $str; + if(isset($this->levels[($level+1)]['break'][$line['item_id']])){ + $this->content .= $this->levels[($level+1)]['break'][$line['item_id']]; + } + + $this->buildItem($line['ID'], $level+1); } } ! function getMenuInfo($ID){ ! $settings = $_SESSION['DB']->query("SELECT * FROM `fly_module_menu` WHERE `ID` = $ID",1); ! if(false !== ($vars = $_SESSION['DB']->query("SELECT * FROM `fly_module_menu_vars` WHERE `menu_id` = $ID ORDER BY `var_id`", 1))){ ! foreach($vars as $varData){ ! $data['vars'][] = $varData; ! } ! } ! return $data; ! } ! function edit($object_id = 0){ ! if((isset($GLOBALS['object_id'])) AND ($object_id == 0)){ ! $this->object_id = $GLOBALS['object_id']; ! } ! if(!isset($this->ID)){ ! $this->objectInfo = $_SESSION['object']->getInfo($this->object_id); ! $this->ID = $this->objectInfo['object_id']; ! } + $this->menuInfo = $this->getMenuInfo($this->ID); $this->content = '<tr><td colspan="4"><a href="index.php?module=menu&function=add_item">Add item</a></td><td>ID</td>'; ! foreach($this->menuInfo['vars'] as $key => $val){ ! $this->content .= "<td>".$val['name']."</td>"; } $this->content .= '</tr>'; *************** *** 94,102 **** function editItem($parent, $level){ ! $menu_items = $_SESSION['DB']->query("SELECT * FROM `fly_module_menu` WHERE `menu_id` = '".$this->data['value']."' && parent = '".$parent."' ORDER BY `item_id`"); if(mysql_num_rows($menu_items) <= 0){ return false; } ! $item_id = $_SESSION['DB']->query("SELECT MAX(`item_id`) FROM `fly_module_menu` WHERE `parent` = '".$parent."'"); $item_id = mysql_fetch_array($item_id); $max = $item_id[0]; --- 167,175 ---- function editItem($parent, $level){ ! $menu_items = $_SESSION['DB']->query("SELECT * FROM `fly_module_menu_items` WHERE `menu_id` = '".$this->ID."' && parent = '".$parent."' ORDER BY `item_id`"); if(mysql_num_rows($menu_items) <= 0){ return false; } ! $item_id = $_SESSION['DB']->query("SELECT MAX(`item_id`) FROM `fly_module_menu_items` WHERE `parent` = '".$parent."'"); $item_id = mysql_fetch_array($item_id); $max = $item_id[0]; *************** *** 124,128 **** $str .= '<td class="l'.($level+1).'">'.$sp.$line['item_id'].'</td>'; $i = 0; ! foreach($this->vars as $key => $val){ $str .= '<td class="l'.($level+1).'">'.$sp.$line['var_'.($i+1)].'</td>'; $i++; --- 197,201 ---- $str .= '<td class="l'.($level+1).'">'.$sp.$line['item_id'].'</td>'; $i = 0; ! foreach($this->menuInfo['vars'] as $val){ $str .= '<td class="l'.($level+1).'">'.$sp.$line['var_'.($i+1)].'</td>'; $i++; *************** *** 135,139 **** function selectItem($parent, $level, $id = 0){ ! $menu_items = $_SESSION['DB']->query("SELECT * FROM `fly_module_menu` WHERE `menu_id` = '".$this->data['value']."' && parent = '".$parent."' ORDER BY `item_id`"); if(mysql_num_rows($menu_items) <= 0){ return false; --- 208,212 ---- function selectItem($parent, $level, $id = 0){ ! $menu_items = $_SESSION['DB']->query("SELECT * FROM `fly_module_menu_items` WHERE `menu_id` = '".$this->data['value']."' && parent = '".$parent."' ORDER BY `item_id`"); if(mysql_num_rows($menu_items) <= 0){ return false; *************** *** 157,161 **** function getInfo($mid){ ! $data = $_SESSION['DB']->query("SELECT * FROM `fly_module_menu` WHERE `menu_id` = '$mid'"); if($data){ return mysql_fetch_array($data); --- 230,234 ---- function getInfo($mid){ ! $data = $_SESSION['DB']->query("SELECT * FROM `fly_module_menu_items` WHERE `menu_id` = '$mid'"); if($data){ return mysql_fetch_array($data); *************** *** 242,251 **** function up(){ $id = $_GET['id']; ! $current_id = $_SESSION['DB']->query("SELECT * FROM `fly_module_menu` WHERE `ID` = '$id'"); $current_id = mysql_fetch_array($current_id); $current_id = $current_id['item_id']; ! $_SESSION['DB']->query("UPDATE `fly_module_menu` SET `item_id` = '".$current_id."' WHERE `item_id` = '".($current_id - 1)."' AND `parent` = '".$_GET['parent']."'"); ! $_SESSION['DB']->query("UPDATE `fly_module_menu` SET `item_id` = '".($current_id - 1)."' WHERE `ID` = '".$_GET['id']."'"); $this->edit(); --- 315,324 ---- function up(){ $id = $_GET['id']; ! $current_id = $_SESSION['DB']->query("SELECT * FROM `fly_module_menu_items` WHERE `ID` = '$id'"); $current_id = mysql_fetch_array($current_id); $current_id = $current_id['item_id']; ! $_SESSION['DB']->query("UPDATE `fly_module_menu_items` SET `item_id` = '".$current_id."' WHERE `item_id` = '".($current_id - 1)."' AND `parent` = '".$_GET['parent']."'"); ! $_SESSION['DB']->query("UPDATE `fly_module_menu_items` SET `item_id` = '".($current_id - 1)."' WHERE `ID` = '".$_GET['id']."'"); $this->edit(); *************** *** 254,263 **** function down(){ $id = $_GET['id']; ! $current_id = $_SESSION['DB']->query("SELECT * FROM `fly_module_menu` WHERE `ID` = '$id'"); $current_id = mysql_fetch_array($current_id); $current_id = $current_id['item_id']; ! $_SESSION['DB']->query("UPDATE `fly_module_menu` SET `item_id` = '".$current_id."' WHERE `item_id` = '".($current_id + 1)."' AND `parent` = '".$_GET['parent']."'"); ! $_SESSION['DB']->query("UPDATE `fly_module_menu` SET `item_id` = '".($current_id + 1)."' WHERE `ID` = '".$_GET['id']."'"); $this->edit(); --- 327,336 ---- function down(){ $id = $_GET['id']; ! $current_id = $_SESSION['DB']->query("SELECT * FROM `fly_module_menu_items` WHERE `ID` = '$id'"); $current_id = mysql_fetch_array($current_id); $current_id = $current_id['item_id']; ! $_SESSION['DB']->query("UPDATE `fly_module_menu_items` SET `item_id` = '".$current_id."' WHERE `item_id` = '".($current_id + 1)."' AND `parent` = '".$_GET['parent']."'"); ! $_SESSION['DB']->query("UPDATE `fly_module_menu_items` SET `item_id` = '".($current_id + 1)."' WHERE `ID` = '".$_GET['id']."'"); $this->edit(); *************** *** 266,270 **** function editmenuitem(){ ! $item_data = $_SESSION['DB']->query("SELECT * FROM `fly_module_menu` WHERE `ID` = '".$GLOBALS['id']."'"); $item_data = mysql_fetch_array($item_data); $this->content = ''; --- 339,343 ---- function editmenuitem(){ ! $item_data = $_SESSION['DB']->query("SELECT * FROM `fly_module_menu_items` WHERE `ID` = '".$GLOBALS['id']."'"); $item_data = mysql_fetch_array($item_data); $this->content = ''; *************** *** 298,305 **** for($i = 1; $i <= 10; $i++){ if(isset($GLOBALS['vars'][$i])){ ! $_SESSION['DB']->query("UPDATE `fly_module_menu` SET `var_".$i."` = '".$GLOBALS['vars'][$i]."' WHERE `ID` = '".$GLOBALS['id']."'"); } } ! $_SESSION['DB']->query("UPDATE `fly_module_menu` SET `parent` = '".$GLOBALS['parent']."' WHERE `ID` = '".$GLOBALS['id']."'"); $this->edit(); --- 371,378 ---- for($i = 1; $i <= 10; $i++){ if(isset($GLOBALS['vars'][$i])){ ! $_SESSION['DB']->query("UPDATE `fly_module_menu_items` SET `var_".$i."` = '".$GLOBALS['vars'][$i]."' WHERE `ID` = '".$GLOBALS['id']."'"); } } ! $_SESSION['DB']->query("UPDATE `fly_module_menu_items` SET `parent` = '".$GLOBALS['parent']."' WHERE `ID` = '".$GLOBALS['id']."'"); $this->edit(); *************** *** 308,311 **** --- 381,388 ---- } + + + + ?> |
From: <fly...@us...> - 2003-11-08 19:35:58
|
Update of /cvsroot/byfly/byfly-0.6.0b In directory sc8-pr-cvs1:/tmp/cvs-serv31123 Modified Files: index.php Log Message: Small updates: - config bug fixed - menu module improved Index: index.php =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/index.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** index.php 22 Oct 2003 08:04:58 -0000 1.9 --- index.php 8 Nov 2003 19:35:53 -0000 1.10 *************** *** 109,121 **** $_SESSION['GET'] =& $_GET; ! if(isset($GLOBALS['sid'])){ ! $_SESSION['DATA']['sid'] = $GLOBALS['sid']; ! } ! if(isset($GLOBALS['vid'])){ ! $_SESSION['DATA']['vid'] = $GLOBALS['vid']; ! } ! if(isset($GLOBALS['pid'])){ ! $_SESSION['DATA']['pid'] = $GLOBALS['pid']; ! } #print_r($_SESSION); --- 109,113 ---- $_SESSION['GET'] =& $_GET; ! #print_r($_SESSION); *************** *** 188,190 **** } ! ?> \ No newline at end of file --- 180,182 ---- } ! ?> |
Update of /cvsroot/byfly/byfly-0.6.0b/classes In directory sc8-pr-cvs1:/tmp/cvs-serv31123/classes Modified Files: class.DB.php class.common.php class.main.php class.object.php class.output.php class.page.php class.template.php Log Message: Small updates: - config bug fixed - menu module improved Index: class.DB.php =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/classes/class.DB.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** class.DB.php 19 Oct 2003 08:43:46 -0000 1.2 --- class.DB.php 8 Nov 2003 19:35:53 -0000 1.3 *************** *** 16,20 **** /********************************************* ! * DB.php: database connections * Author: Edwin Vlieg *********************************************/ --- 16,20 ---- /********************************************* ! * class.DB.php: database connections * Author: Edwin Vlieg *********************************************/ *************** *** 62,76 **** $this->connection = @mysql_connect($this->mysql_server, $this->mysql_login, ! $this->mysql_password) or exit('Can\'t connect to database: '.mysql_error()); ! @mysql_select_db($this->mysql_database,$this->connection) or exit('Database error: '.mysql_error()); } ! function query($sql = ""){ if(is_null($this->connection)){ $this->connect(); } ! $data = @mysql_query($sql,$this->connection) or die('Query error: '.mysql_error()); ! if(!$data){ ! return false; } else { return $data; --- 62,97 ---- $this->connection = @mysql_connect($this->mysql_server, $this->mysql_login, ! $this->mysql_password); ! if(mysql_error()){ ! exit('Can\'t connect to MySQL server: '.mysql_error()); ! } ! mysql_select_db($this->mysql_database,$this->connection); ! if(mysql_error()){ ! exit('Can\'t connect to database: '.mysql_error()); ! } ! } ! function query($sql = "", $clean = 0){ if(is_null($this->connection)){ $this->connect(); } ! $data = mysql_query($sql,$this->connection); ! if(mysql_error()){ ! echo 'Query error: '.mysql_error(); ! return false; ! } ! if($clean){ ! if(mysql_num_rows($data) == 1){ ! return mysql_fetch_array($data); ! } elseif(mysql_num_rows($data) > 0){ ! $arr = array(); ! while($line = mysql_fetch_array($data)){ ! $arr[] = $line; ! } ! return $arr; ! } else { ! return false; ! } } else { return $data; Index: class.common.php =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/classes/class.common.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** class.common.php 22 Oct 2003 08:04:58 -0000 1.10 --- class.common.php 8 Nov 2003 19:35:53 -0000 1.11 *************** *** 167,170 **** --- 167,188 ---- if(preg_match_all('/<'.$name.'(.*?)>(.*?)<\/'.$name.'>/s',$str,$match)){ + if(count($match[0]) > 1){ + foreach($match[1] as $id => $item){ + + if($item != ''){ + if(preg_match_all('/(.+?)="(.+?)"/i',$item,$data)){ + foreach($data[1] as $nr => $value){ + $ret[$name][$id]['_ATTR'][trim($value)] = trim($data[2][$nr]); + } + } + + if($sub_items){ + $ret[$name] = $this->xml2array($match[2][$id], $row); + } else { + $ret[$name][$id]['_VALUE'] = $match[2][$id]; + } + } + } + } else { if($match[1][0] != ''){ if(preg_match_all('/(.+?)="(.+?)"/i',$match[1][0],$data)){ *************** *** 179,182 **** --- 197,201 ---- $ret[$name]['_VALUE'] = $match[2][0]; } + } } } Index: class.main.php =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/classes/class.main.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** class.main.php 22 Oct 2003 08:04:58 -0000 1.13 --- class.main.php 8 Nov 2003 19:35:53 -0000 1.14 *************** *** 16,26 **** /********************************************* ! * main.php: main class for system * Author: Edwin Vlieg *********************************************/ - /************* - * First set some information - **************/ /** --- 16,23 ---- /********************************************* ! * class.main.php: main class for system * Author: Edwin Vlieg *********************************************/ /** *************** *** 31,35 **** // main function function init(){ ! // connect to database $_SESSION['DB']->connect(); --- 28,32 ---- // main function function init(){ ! #session_destroy(); // connect to database $_SESSION['DB']->connect(); *************** *** 55,62 **** $GLOBALS['pid'] = $pid; } ! } } } ! $_SESSION['DATA']->dirStructure = $dirStruc; } --- 52,65 ---- $GLOBALS['pid'] = $pid; } ! } } } ! $_SESSION['DATA']['dirStructure'] = $dirStruc; ! foreach($dirStruc as $key => $val){ ! if($key % 2 == FALSE){ ! $_SESSION['DATA']['dir'][$val] = (isset($dirStruc[$key+1]))? $dirStruc[$key+1] : ''; ! } ! } ! #print_r($_SESSION['DATA']['dir']); } *************** *** 93,96 **** --- 96,104 ---- } $_SESSION['output']->send2screen($_SESSION['output']->parse_site()); + + $parseTime = round($_SESSION['common']->stopTiming(), 5); + $fp = fopen ("parsetimes.txt", "a+"); + fwrite ($fp, $parseTime."\n"); + fclose ($fp); } *************** *** 477,485 **** if(!$object){ $object['type'] = $_SESSION['main']->lang('NO_OBJECT'); } if((isset($_SESSION[$object['type']])) && (class_exists($object['type'])) && in_array(strtolower('edit'), get_class_methods($object['type']))){ ! $editor = '<a href="index.php?module='.$object['type'].'&function=edit&media=page&vid='.$val['ID'].'">'.$_SESSION['main']->lang('OPEN_EDITOR').'</a>'; } else { ! $editor = $_SESSION['main']->lang('ERROR_LOADING_EDITOR'); } $varsettings = '<a href="index.php?action=var_settings&media=page&vid='.$val['ID'].'">'.$_SESSION['main']->lang('SETTINGS').'</a>'; --- 485,494 ---- if(!$object){ $object['type'] = $_SESSION['main']->lang('NO_OBJECT'); + $object['ID'] = 0; } if((isset($_SESSION[$object['type']])) && (class_exists($object['type'])) && in_array(strtolower('edit'), get_class_methods($object['type']))){ ! $editor = '<a href="index.php?module='.$object['type'].'&function=edit&media=page&vid='.$val['ID'].'">'.$_SESSION['main']->lang('EDIT').'</a>'; } else { ! $editor = ' '; } $varsettings = '<a href="index.php?action=var_settings&media=page&vid='.$val['ID'].'">'.$_SESSION['main']->lang('SETTINGS').'</a>'; *************** *** 488,492 **** 'editor' => $editor, 'link' => $varsettings, ! 'type' => $object['type'] )); --- 497,502 ---- 'editor' => $editor, 'link' => $varsettings, ! 'type' => $_SESSION['object']->dynamicSelectBox($val['ID'],$page_info['site_id'],$val['object_id'],$val['template']) ! )); Index: class.object.php =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/classes/class.object.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** class.object.php 22 Oct 2003 08:06:40 -0000 1.1 --- class.object.php 8 Nov 2003 19:35:53 -0000 1.2 *************** *** 79,82 **** --- 79,190 ---- } + function dynamicSelectBox($ID, $sid, $object_id, $template){ + $str = ''; + $objects = $this->getObjects($sid, 1); + $type = ''; + if($objects){ + $str .= "<select name=\"edit[".$ID."][object_id]\" id=\"object_id\" onChange=\"swap_object_".$ID."(this.options[this.selectedIndex].value)\">"; + $str .= '<option value="0"><'.$_SESSION['main']->lang('NO_OBJECT').'></option>'; + $current_type = ''; + foreach($objects as $line){ + if($current_type != $line['type']){ + $str .= '<option value="0" class="marked_option">'.$line['type'].'</option>'; + $current_type = $line['type']; + } + $check = ''; + if($line['ID'] == $object_id){ $check = ' selected="selected"'; $type = $line['type'];} + $str .= '<option value="'.$line['ID'].'"'.$check.'> '.$line['name'].'</option>'; + } + $str .= "</select>"; + $str .= " + <script> + object_".$ID." = Array(); + "; + foreach($objects as $object){ + $action = 0; + $need_template = 0; + $need_template = $_SESSION[$object['type']]->settings['need_template']; + if(isset($_SESSION[$object['type']]->settings['actions'])){ + $action = 1; + } + $str .= " + object_".$ID."[".$object['ID']."] = Array('".$need_template."','".$action."'); + "; + } + + $str .= " + function swap_object_".$ID."(a){ + if(a != 0){ + if(object_".$ID."[a][0] == 1){ + obj = el('template_".$ID."'); + obj.style.display = 'inline'; + } else { + obj = el('template_".$ID."'); + obj.style.display = 'none'; + obj.options[0].selected = 1; + } + } else { + obj = el('template_".$ID."'); + obj.style.display = 'none'; + obj.options[0].selected = 1; + } + } + </script> + "; + } else { + $str .= $_SESSION['main']->lang('NO_OBJECT_FOUND'); + } + $styles = $_SESSION['DB']->query("SELECT * FROM `".$_SESSION['DB']->table['styles']."` WHERE `users` = 'all' OR `users` LIKE '%".$_SESSION['security']->getData('usercode')."%' OR `users` LIKE '%".$_SESSION['security']->getData('usergroup')."%'"); + if(mysql_num_rows($styles)){ + $str .= "<select name=\"edit[".$ID."][template]\" id=\"template_".$ID."\" style=\"display: "; + if((isset($_SESSION[$type]->settings['need_template'])) AND ($_SESSION[$type]->settings['need_template'])){ + $str .= 'inline'; + } else { + $str .= 'none'; + } + $str .= ";\">"; + $str .= '<option value="0"><'.$_SESSION['main']->lang('NO_TEMPLATE').'></option>'; + while($line = mysql_fetch_array($styles)){ + $str .= "<option class=\"marked_option\" value=\"0\">".$line['name']."</option>"; + $templates = $_SESSION['DB']->query("SELECT * FROM `".$_SESSION['DB']->table['templates']."` WHERE style_id = '$line[ID]'"); + while($lines = mysql_fetch_array($templates)){ + $name = $line['ID'].'.'.$lines['ID']; + $check = ''; + if($name == $template){ $check = ' selected="selected"'; } + $str .= '<option value="'.$name.'"'.$check.'> '.$lines['name'].'</option>'; + } + } + $str .= "</select>"; + } else { + $str .= $_SESSION['main']->lang('NO_TEMPLATES'); + } + + return $str; + } + + function moduleTemplateSelectBox($usercode, $value = ""){ + + $str = ''; + $styles = $_SESSION['DB']->query("SELECT * FROM `".$_SESSION['DB']->table['styles']."` WHERE `users` = 'all' OR `users` LIKE '%".$_SESSION['security']->getData('usercode')."%' OR `users` LIKE '%".$_SESSION['security']->getData('usergroup')."%'"); + if(mysql_num_rows($styles)){ + $str .= "<select name=\"edit[template]\" id=\"template\">"; + $str .= '<option value="0"><'.$_SESSION['main']->lang('NO_TEMPLATE').'></option>'; + while($line = mysql_fetch_array($styles)){ + $str .= "<option class=\"marked_option\" value=\"0\">".$line['name']."</option>"; + $templates = $_SESSION['DB']->query("SELECT * FROM `".$_SESSION['DB']->table['templates']."` WHERE style_id = '$line[ID]'"); + while($lines = mysql_fetch_array($templates)){ + $name = $line['ID'].'.'.$lines['ID']; + $check = ''; + if($name == $value){ $check = ' selected="selected"'; } + $str .= '<option value="'.$name.'"'.$check.'> '.$lines['name'].'</option>'; + } + } + $str .= "</select>"; + return $str; + } else { + return $_SESSION['main']->lang('NO_TEMPLATES'); + } + } + function getObjects($sid, $sort = FALSE, $show = FALSE){ if($sort){ Index: class.output.php =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/classes/class.output.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** class.output.php 19 Oct 2003 08:43:46 -0000 1.7 --- class.output.php 8 Nov 2003 19:35:53 -0000 1.8 *************** *** 125,130 **** */ ! if(!$site){ $_SESSION['error']->make_error($_SESSION['main']->lang('SITE_NOT_FOUND')); exit(); } ! if(!$page){ $_SESSION['error']->make_error($_SESSION['main']->lang('PAGE_NOT_FOUND')); exit(); } # $_SESSION['DATA']['pid'] = $sid; --- 125,130 ---- */ ! if(!$site){ $_SESSION['error']->make_error($_SESSION['main']->lang('SITE_NOT_FOUND').": ".$sid); exit(); } ! if(!$page){ $_SESSION['error']->make_error($_SESSION['main']->lang('PAGE_NOT_FOUND').": ".$pid); exit(); } # $_SESSION['DATA']['pid'] = $sid; Index: class.page.php =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/classes/class.page.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** class.page.php 22 Oct 2003 08:04:58 -0000 1.7 --- class.page.php 8 Nov 2003 19:35:53 -0000 1.8 *************** *** 156,163 **** --- 156,169 ---- foreach($data as $key => $val){ + if((is_int($key)) AND (is_array($val))){ + foreach($val as $item => $value){ + $_SESSION['DB']->query("UPDATE `".$_SESSION['DB']->table['vars']."` SET `".$item."` = '".$value."' WHERE `ID` = ".$key.""); + } + } else { if($key == 'url_name'){ $val = $_SESSION['common']->urlName($val, 'page', $_GET['sid']); } $_SESSION['DB']->query("UPDATE `".$_SESSION['DB']->table['page']."` SET `".$key."` = '".$val."' WHERE `ID` = ".$pid); + } } } Index: class.template.php =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/classes/class.template.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** class.template.php 19 Oct 2003 08:43:46 -0000 1.8 --- class.template.php 8 Nov 2003 19:35:53 -0000 1.9 *************** *** 312,331 **** } ! function parseActions($str, $object){ preg_match_all('/<byfly-action name="(.+?)">(.*?)<\/byfly-action>/s',$str,$match); ! #print_r($match); while(list($id, $action) = each($match[1])){ if((in_array(strtolower('_'.$action), get_class_methods($object)))){ ! if(((isset($GLOBALS['page_action'])) AND ($GLOBALS['page_action'] == $action))){ $str = str_replace('<byfly-action name="'.$action.'">'.$match[2][$id].'</byfly-action>', $object->{'_'.$action}($match[2][$id]), $str); } else { ! if(($object->settings['default_action'] == $action) AND (!isset($GLOBALS['page_action']))) { $str = str_replace('<byfly-action name="'.$action.'">'.$match[2][$id].'</byfly-action>', $object->{'_'.$action}($match[2][$id]), $str); } else { $str = str_replace('<byfly-action name="'.$action.'">'.$match[2][$id].'</byfly-action>', '', --- 312,337 ---- } ! function parseActions($str, $object, $name = 'page'){ ! ! ! preg_match_all('/<byfly-action name="(.+?)">(.*?)<\/byfly-action>/s',$str,$match); ! while(list($id, $action) = each($match[1])){ if((in_array(strtolower('_'.$action), get_class_methods($object)))){ ! if(((isset($GLOBALS[$name.'_action'])) AND ($GLOBALS[$name.'_action'] == $action))){ ! $str = str_replace('<byfly-action name="'.$action.'">'.$match[2][$id].'</byfly-action>', $object->{'_'.$action}($match[2][$id]), $str); } else { ! if(($object->settings['default_action'] == $action) AND (!isset($GLOBALS[$name.'_action']))) { ! $str = str_replace('<byfly-action name="'.$action.'">'.$match[2][$id].'</byfly-action>', $object->{'_'.$action}($match[2][$id]), $str); } else { + $str = str_replace('<byfly-action name="'.$action.'">'.$match[2][$id].'</byfly-action>', '', |
From: <fly...@us...> - 2003-11-08 19:35:58
|
Update of /cvsroot/byfly/byfly-0.6.0b/templates/flydesign In directory sc8-pr-cvs1:/tmp/cvs-serv31123/templates/flydesign Modified Files: guestbook.default.tpl menu.default.tpl Log Message: Small updates: - config bug fixed - menu module improved Index: guestbook.default.tpl =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/templates/flydesign/guestbook.default.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** guestbook.default.tpl 22 Oct 2003 08:04:59 -0000 1.3 --- guestbook.default.tpl 8 Nov 2003 19:35:54 -0000 1.4 *************** *** 77,81 **** <div style="font-size: 8pt; text-align: center;"> ! || <byfly-exe function="add_link"><a href="index.php?pid={pid}&page_action=add_form">Nieuw bericht toevoegen</a></byfly-exe> || </div> --- 77,81 ---- <div style="font-size: 8pt; text-align: center;"> ! || <byfly-exe function="add_link"><a href="index.php?pid={pid}&guestbook_action=add_form">Nieuw bericht toevoegen</a></byfly-exe> || </div> Index: menu.default.tpl =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/templates/flydesign/menu.default.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** menu.default.tpl 3 Oct 2003 19:22:00 -0000 1.1 --- menu.default.tpl 8 Nov 2003 19:35:54 -0000 1.2 *************** *** 1,6 **** ! <action name="view"> ! <var> ! ! </var> ! ! </action> \ No newline at end of file --- 1,23 ---- ! <div align="center"> ! <byfly-action name="view"> ! <settings> ! <style>1</style> ! </settings> ! <vars> ! <var name="name">TEXT</var> ! <var name="url">LINK</var> ! </vars> ! <levels> ! <level id="1"> ! <template><a href="{url}">{name}</a></template> ! <spacer> :: </spacer> ! <break number="10"><br></break> ! </level> ! <level id="2"> ! <template><a href="{url}">{name}</a></template> ! <spacer> :: </spacer> ! <break number="10"><br></break> ! </level> ! </levels> ! </byfly-action> ! </div> \ No newline at end of file |
From: <fly...@us...> - 2003-11-08 19:35:58
|
Update of /cvsroot/byfly/byfly-0.6.0b/modules/guestbook In directory sc8-pr-cvs1:/tmp/cvs-serv31123/modules/guestbook Modified Files: class.guestbook.php Log Message: Small updates: - config bug fixed - menu module improved Index: class.guestbook.php =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/modules/guestbook/class.guestbook.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** class.guestbook.php 22 Oct 2003 19:29:17 -0000 1.6 --- class.guestbook.php 8 Nov 2003 19:35:53 -0000 1.7 *************** *** 7,11 **** $this->settings = Array( 'default_action' => 'view', ! 'need_template' => TRUE ); --- 7,14 ---- $this->settings = Array( 'default_action' => 'view', ! 'need_template' => TRUE, ! 'actions' => array( ! 'view', 'add_form' ! ) ); *************** *** 70,78 **** $this->start = $_GET['start']; } ! $objectTemplate = $_SESSION['template']->readTemplateFile($template_id); ! return $_SESSION['template']->parseActions($objectTemplate, $this); } --- 73,83 ---- $this->start = $_GET['start']; } ! if((isset($_SESSION['DATA']['dir']['guestbook_start'])) AND ($_SESSION['DATA']['dir']['guestbook_start'] != '')){ ! $this->start = $_SESSION['DATA']['dir']['guestbook_start']; ! } $objectTemplate = $_SESSION['template']->readTemplateFile($template_id); ! return $_SESSION['template']->parseActions($objectTemplate, $this, 'guestbook'); } *************** *** 88,92 **** } if((isset($_GET['pid'])) AND (isset($_GET['del']))){ ! $_SESSION['DB']->query("DELETE FROM `fly_module_guestbook_items` WHERE `ID` = '".$object_id."'"); } --- 93,97 ---- } if((isset($_GET['pid'])) AND (isset($_GET['del']))){ ! $_SESSION['DB']->query("DELETE FROM `fly_module_guestbook_items` WHERE `ID` = '".$_GET['pid']."'"); } *************** *** 106,110 **** if((!isset($_GET['view'])) OR ($_GET['view'] == 'posts')){ ! $posts = $_SESSION['DB']->query("SELECT * FROM `fly_module_guestbook_items` WHERE `book_id` = '".$this->ID."' ORDER BY `ID` DESC"); if(mysql_num_rows($posts) < 1){ $post_rows = $_SESSION['main']->lang('NO_DATA'); --- 111,115 ---- if((!isset($_GET['view'])) OR ($_GET['view'] == 'posts')){ ! $posts = $_SESSION['DB']->query("SELECT *, UNIX_TIMESTAMP(`date`) AS `date` FROM `fly_module_guestbook_items` WHERE `book_id` = '".$this->ID."' ORDER BY `ID` DESC"); if(mysql_num_rows($posts) < 1){ $post_rows = $_SESSION['main']->lang('NO_DATA'); *************** *** 113,116 **** --- 118,123 ---- while($post = mysql_fetch_array($posts)){ $post['message'] = nl2br($post['message']); + $post['time'] = date('H:i:s', $post['date']); + $post['date'] = date('d-m-Y', $post['date']); $post_rows .= $_SESSION['output']->parse('post_row.tpl', $post, 'guestbook'); } *************** *** 209,213 **** } ! $_SESSION['DB']->query("INSERT INTO `fly_module_guestbook_items` (`name`, `date`, `url`, `email`, `message`, `ip`, `view_email`, `book_id`) VALUES ('$data[name]', NOW(),'$data[url]', '$data[email]','".str_replace('"',"\\\"",nl2br($data['message']))."', '$ip', '$data[view_email]', '".$this->ID."') "); # $message = "Hi, \nOp $date @ $time heeft ".$data['name']." een bericht toegevoegt aan het gastboek.\n----------------\n\n ".$data['message']."\n\n----------------\nWeb-site: ".$data['url']."\nIP-adres: $ip\n$mes"; # mail('ed...@fl...', 'Nieuw bericht in gastboek', $message, 'From: '.$data['name'].' <'.$data['email'].'>'); --- 216,220 ---- } ! $_SESSION['DB']->query("INSERT INTO `fly_module_guestbook_items` (`name`, `date`, `url`, `email`, `message`, `ip`, `view_email`, `book_id`) VALUES ('$data[name]', NOW(),'$data[url]', '$data[email]','".addslashes($data['message'])."', '$ip', '$data[view_email]', '".$this->ID."') "); # $message = "Hi, \nOp $date @ $time heeft ".$data['name']." een bericht toegevoegt aan het gastboek.\n----------------\n\n ".$data['message']."\n\n----------------\nWeb-site: ".$data['url']."\nIP-adres: $ip\n$mes"; # mail('ed...@fl...', 'Nieuw bericht in gastboek', $message, 'From: '.$data['name'].' <'.$data['email'].'>'); *************** *** 266,269 **** --- 273,277 ---- } } + $line['message'] = nl2br(stripslashes($line['message'])); foreach($line as $key => $val){ if(is_string($key)){ *************** *** 311,315 **** } ! $temp = $_SESSION['DB']->query("SELECT * FROM `fly_module_guestbook_items` WHERE `ID` = '".$this->post_id."'"); if(mysql_num_rows($temp) < 1){ die($_SESSION['main']->lang("ITEM_NOT_FOUND", 'guestbook')); --- 319,323 ---- } ! $temp = $_SESSION['DB']->query("SELECT *, UNIX_TIMESTAMP(`date`) AS `date` FROM `fly_module_guestbook_items` WHERE `ID` = '".$this->post_id."'"); if(mysql_num_rows($temp) < 1){ die($_SESSION['main']->lang("ITEM_NOT_FOUND", 'guestbook')); *************** *** 317,320 **** --- 325,330 ---- $this->post = mysql_fetch_array($temp); $this->post['view_email'] = $_SESSION['common']->ynradiobox($this->post['view_email'], 'data[view_email]'); + $this->post['time'] = date('H:i:s', $this->post['date']); + $this->post['date'] = date('d-m-Y', $this->post['date']); $_SESSION['output']->send2screen($_SESSION['output']->parse('page.tpl', Array( 'content' => $_SESSION['output']->parse('edit_post.tpl', $this->post, 'guestbook') |
From: <fly...@us...> - 2003-11-08 19:35:58
|
Update of /cvsroot/byfly/byfly-0.6.0b/modules/menu/files In directory sc8-pr-cvs1:/tmp/cvs-serv31123/modules/menu/files Modified Files: admin.tpl Log Message: Small updates: - config bug fixed - menu module improved Index: admin.tpl =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/modules/menu/files/admin.tpl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** admin.tpl 22 Aug 2003 11:15:47 -0000 1.1.1.1 --- admin.tpl 8 Nov 2003 19:35:53 -0000 1.2 *************** *** 2,22 **** <head> <title>Menu editor</title> <style> - body, table { - font-family: Verdana; - font-size: 10pt; - } - td { - border: 1px solid lightgrey; - } - a { - color: black; - font-size: 9pt; - font-weight: bold; - text-decoration: none; - } - a:hover { - text-decoration: underline; - } .l1 { background: rgb(250, 250, 250); color: black; --- 2,7 ---- <head> <title>Menu editor</title> + <link rel="stylesheet" type="text/css" href="files/{skin}/style.css" /> <style> .l1 { background: rgb(250, 250, 250); color: black; *************** *** 40,47 **** </head> <body> ! <div align="center"> ! <a href="javascript:self.close(); opener.location.reload();">{CLOSE}</a> ! </div> ! <table width="100%"> {rows} </table> --- 25,35 ---- </head> <body> ! <table width="100%" style="border-collapse: collapse;" class="borders-black"> ! <tr> ! <td style="text-align: center"><a href="index.php?module=menu&function=edit&view=posts" style="color: black">{MENU_ITEMS}</a></td> ! <td style="text-align: center"><a href="index.php?module=menu&function=edit&view=settings" style="color: black">{SETTINGS}</a></td> ! </tr> ! </table> ! <table width="100%" style="border-collapse: collapse;" class="borders-black"> {rows} </table> |
From: <fly...@us...> - 2003-10-22 20:24:52
|
Update of /cvsroot/byfly/byfly-0.6.0b/modules/html In directory sc8-pr-cvs1:/tmp/cvs-serv11947/modules/html Modified Files: class.html.php Log Message: Stylesheets in WYSIWYG editor enabled Index: class.html.php =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/modules/html/class.html.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** class.html.php 19 Oct 2003 08:43:46 -0000 1.5 --- class.html.php 22 Oct 2003 19:29:17 -0000 1.6 *************** *** 96,101 **** --- 96,129 ---- function style(){ + /* + # First load all unique templates: + $data = $_SESSION['DB']->query("SELECT DISTINCT `page_id` FROM `".$_SESSION['DB']->table['vars']."` WHERE `object_id` = '".$this->objectInfo['ID']."'"); + $arr = array(); + while($line = mysql_fetch_array($data)){ + $page = $_SESSION['DB']->query("SELECT DISTINCT `template` FROM `".$_SESSION['DB']->table['page']."` WHERE `ID` = ".$line['page_id']." AND `site_id` = ".$this->objectInfo['site_id']); + $page = mysql_fetch_array($page); + $arr[] = $page['template']; + } + */ + $arr = array(); + $data = $_SESSION['DB']->query("SELECT ".$_SESSION['DB']->table['page'].".template FROM `".$_SESSION['DB']->table['page']."` LEFT JOIN ".$_SESSION['DB']->table['vars']." ON ".$_SESSION['DB']->table['page'].".ID = ".$_SESSION['DB']->table['vars'].".page_id WHERE ".$_SESSION['DB']->table['vars'].".object_id = '".$this->objectInfo['ID']."'"); + # $data = $_SESSION['DB']->query("SELECT `template` FROM `".$_SESSION['DB']->table['page']."` WHERE `ID` IN (SELECT `page_id` FROM `".$_SESSION['DB']->table['vars']."` WHERE `object_id` = '".$this->objectInfo['ID']."')"); + while($line = mysql_fetch_array($data)){ + $arr[] = $line['template']; + } + foreach($arr as $key => $val){ + $settings = $_SESSION['common']->split($val); + $style = $settings[0]; + $template = $settings[1]; + $style = $_SESSION['style']->getInfo($style); + $template = $_SESSION['template']->getInfo($template); + + $this->readTemplateStyles($_SESSION['config']->read('template_dir')."/".$style['dir']."/".$template['template']); + + } + + return; if($this->media == "site"){ *************** *** 116,120 **** --- 144,151 ---- echo $line['value']; } + } + } + function readTemplateStyles($file){ $loop = 0; $begin = -1; *************** *** 122,126 **** $string = ''; $stylesheet = ''; ! $lines = file($_SESSION['config']->read('template_dir')."/".$this->aStyleInfo['dir']."/".$this->aTemplateInfo['template']); for($x=0; $x<count($lines); $x++) { if(strstr(strtolower($lines[$x]), "<link")){ --- 153,157 ---- $string = ''; $stylesheet = ''; ! $lines = file($file); for($x=0; $x<count($lines); $x++) { if(strstr(strtolower($lines[$x]), "<link")){ *************** *** 168,172 **** } ! } } --- 199,203 ---- } ! } |
From: <fly...@us...> - 2003-10-22 19:57:56
|
Update of /cvsroot/byfly/byfly-0.6.0b/modules/html/files In directory sc8-pr-cvs1:/tmp/cvs-serv11947/modules/html/files Modified Files: editor.tpl Log Message: Stylesheets in WYSIWYG editor enabled Index: editor.tpl =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/modules/html/files/editor.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** editor.tpl 14 Oct 2003 19:46:28 -0000 1.2 --- editor.tpl 22 Oct 2003 19:29:17 -0000 1.3 *************** *** 24,28 **** </tr> <tr> ! <td style="background: lightgrey;"> <div align="center"> <script> function doit(a){ --- 24,28 ---- </tr> <tr> ! <td style="background: darkblue;"> <div align="center"> <script> function doit(a){ |
From: <fly...@us...> - 2003-10-22 19:55:34
|
Update of /cvsroot/byfly/byfly-0.6.0b/modules/guestbook In directory sc8-pr-cvs1:/tmp/cvs-serv11947/modules/guestbook Modified Files: class.guestbook.php Log Message: Stylesheets in WYSIWYG editor enabled Index: class.guestbook.php =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/modules/guestbook/class.guestbook.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** class.guestbook.php 22 Oct 2003 08:04:58 -0000 1.5 --- class.guestbook.php 22 Oct 2003 19:29:17 -0000 1.6 *************** *** 295,300 **** } $this->count++; ! return eregi_replace(" ".$word." ", ' <span style="font-size: 6pt; color: red;">'.$n.'</span> ', $str); ! } --- 295,302 ---- } $this->count++; ! $str = eregi_replace(" ".$word." ", ' <span style="font-size: 6pt; color: red;">'.$n.'</span> ', $str); ! $str = eregi_replace(" ".$word."", ' <span style="font-size: 6pt; color: red;">'.$n.'</span>', $str); ! $str = eregi_replace("".$word." ", '<span style="font-size: 6pt; color: red;">'.$n.'</span> ', $str); ! return $str; } |
From: <fly...@us...> - 2003-10-22 08:11:58
|
Update of /cvsroot/byfly/byfly-0.6.0b/classes In directory sc8-pr-cvs1:/tmp/cvs-serv26012/classes Added Files: class.object.php Removed Files: class.plugin.php Log Message: Guestbook module updated Added url control, with htaccess option overview --- NEW FILE: class.object.php --- <? /******************************************** * byFly.net * Smart Content Managment System ********************************************* * Copyright (C) July 2003 Edwin Vlieg ********************************************* * Licensed under the terms of the GNU General * Public License (GPL) Version 2, Juni 1991 * (http://opensource.org/licenses/gpl-license.php) ********************************************* * Email: in...@by... * More info: www.byfly.net *********************************************/ /********************************************* * class.object.php: controling objects * Author: Edwin Vlieg *********************************************/ class object { function object(){ } function getInfo($object_id){ $data = $_SESSION['DB']->query("SELECT * FROM `fly_site_objects` WHERE `ID` = '".$object_id."'"); if($data){ return mysql_fetch_array($data); } else { return false; } } function parseObject($data = Array()){ if(empty($data['object_id'])){ return $_SESSION['main']->lang('NO_OBJECT_DEFINED'); } $object = $this->getInfo($data['object_id']); if($object){ if((isset($_SESSION[$object['type']])) && (class_exists($object['type'])) && in_array(strtolower('parse'), get_class_methods($object['type']))){ if(($_SESSION[$object['type']]->settings['need_template']) AND (empty($data['template']))){ return $_SESSION['main']->lang('OBJECT_NEEDS_TEMPLATE'); } else { return $_SESSION[$object['type']]->parse($object['ID'], $data['template']); } } } else { return $_SESSION['main']->lang('NO_OBJECT_DEFINED'); } } function selectbox($sid, $value){ $str = ''; $objects = $this->getObjects($sid, 1); if($objects){ $str .= "<select name=\"edit[object_id]\" id=\"object_id\">"; $str .= '<option value="0"><'.$_SESSION['main']->lang('NO_OBJECT').'></option>'; $current_type = ''; foreach($objects as $line){ if($current_type != $line['type']){ $str .= '<option value="0" class="marked_option">'.$line['type'].'</option>'; $current_type = $line['type']; } $check = ''; if($line['ID'] == $value){ $check = ' selected="selected"'; } $str .= '<option value="'.$line['ID'].'"'.$check.'> '.$line['name'].'</option>'; } $str .= "</select>"; return $str; } else { return $_SESSION['main']->lang('NO_OBJECT_FOUND'); } } function getObjects($sid, $sort = FALSE, $show = FALSE){ if($sort){ if($show){ $data = $_SESSION['DB']->query("SELECT * FROM `fly_site_objects` WHERE (`site_id` = '".$sid."' AND `show_frontpage` = '1') AND (`users` = 'all' OR `users` LIKE '%".$_SESSION['security']->getData('usercode')."%' OR `users` LIKE '%".$_SESSION['security']->getData('usergroup')."%') ORDER BY `type`"); } else { $data = $_SESSION['DB']->query("SELECT * FROM `fly_site_objects` WHERE `site_id` = '".$sid."' AND (`users` = 'all' OR `users` LIKE '%".$_SESSION['security']->getData('usercode')."%' OR `users` LIKE '%".$_SESSION['security']->getData('usergroup')."%') ORDER BY `type`"); } } else { if($show){ $data = $_SESSION['DB']->query("SELECT * FROM `fly_site_objects` WHERE (`site_id` = '".$sid."' AND `show_frontpage` = '1') AND (`users` = 'all' OR `users` LIKE '%".$_SESSION['security']->getData('usercode')."%' OR `users` LIKE '%".$_SESSION['security']->getData('usergroup')."%')"); } else { $data = $_SESSION['DB']->query("SELECT * FROM `fly_site_objects` WHERE `site_id` = '".$sid."' AND (`users` = 'all' OR `users` LIKE '%".$_SESSION['security']->getData('usercode')."%' OR `users` LIKE '%".$_SESSION['security']->getData('usergroup')."%')"); } } if(mysql_num_rows($data) > 0){ $arr = Array(); while($line = mysql_fetch_array($data)){ $arr[] = $line; } return $arr; } else { return FALSE; } } function changeObject($data = Array()){ foreach($data as $key => $val){ $_SESSION['DB']->query("UPDATE `fly_site_objects` SET `".$key."` = '".$val."' WHERE `ID` = '".$GLOBALS['object_id']."'"); } } function moduleSelectBox($value = ""){ $string = ''; $path = $_SESSION['config']->read('base_dir').'/modules'; $style_dirs = dir($path) or $_SESSION['error']->make_error($_SESSION['main']->lang('CANNOT_READ_DIR')); $string .= "<select name=\"edit[type]\" id=\"type\">"; while ($current = $style_dirs->read()) { if (($current != "..") && ($current != ".") && ($current != "CVS") && (is_dir($path . '/'. $current))){ $check = ''; if($current == $value){ $check = ' selected="selected"'; } $string .= "<option value=\"".$current."\" ".$check.">".ucfirst($current)."</option>"; } } $string .= "</select>"; return $string; } function addNew($data){ $object_id = $_SESSION[$data['type']]->add(); $_SESSION['DB']->query("INSERT INTO `fly_site_objects` (`ID`, `site_id`, `object_id`, `type`, `name`, `users`, `show_frontpage`) VALUES ('','".$_GET['sid']."','".$object_id."','".$data['type']."','".$data['name']."','".$data['users']."','".$data['show_frontpage']."')"); if(isset($_GET['vid'])){ } return 'objects&sid='.$_GET['sid']; } } ?> --- class.plugin.php DELETED --- |
From: <fly...@us...> - 2003-10-22 08:09:27
|
Update of /cvsroot/byfly/byfly-0.6.0b/classes In directory sc8-pr-cvs1:/tmp/cvs-serv25662/classes Modified Files: class.common.php class.main.php class.page.php class.site.php Log Message: Guestbook module updated Added url control, with htaccess option overview Index: class.common.php =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/classes/class.common.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** class.common.php 14 Oct 2003 19:46:27 -0000 1.9 --- class.common.php 22 Oct 2003 08:04:58 -0000 1.10 *************** *** 183,186 **** --- 183,201 ---- return $ret; } + + function urlName($str, $type, $sid = 0){ + $i = 1; + $url_name_start = $str; + $url_name = $str; + while($_SESSION[$type]->getUrlName($url_name, $sid) != false){ + $url_name = $url_name_start . $i; + $i++; + } + $url_name = strtoupper($url_name); + $search = array(' ', '?', '!', '.', ':'); + $replace = array('_', '', '', '', '', ''); + return str_replace($search,$replace,$url_name); + } + } Index: class.main.php =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/classes/class.main.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** class.main.php 19 Oct 2003 08:43:46 -0000 1.12 --- class.main.php 22 Oct 2003 08:04:58 -0000 1.13 *************** *** 41,44 **** --- 41,64 ---- $_SESSION['common']->startTiming(); + $totalURL = "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; + $large = $_SESSION['config']->read('base_url') . 'index.php'; + if(($totalURL != $_SESSION['config']->read('base_url')) AND ($totalURL != $large)){ + $extra = str_replace($_SESSION['config']->read('base_url'), '', $totalURL); + $dirStruc = explode("/",$extra); + if(count($dirStruc) > 0){ + $sid = $_SESSION['site']->getUrlname($dirStruc[0]); + if($sid){ + $GLOBALS['sid'] = $sid; + if(count($dirStruc) > 1){ + $pid = $_SESSION['page']->getUrlname($dirStruc[1], $sid); + if($pid){ + $GLOBALS['pid'] = $pid; + } + } + } + } + $_SESSION['DATA']->dirStructure = $dirStruc; + } + if((isset($_GET['ERROR'])) AND ($_GET['ERROR'] == '404')){ $totalURL = "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; *************** *** 709,713 **** 'quota' => $site['quota'], 'disk_use' => $disk_use, ! 'active_string' => $active )); break; --- 729,734 ---- 'quota' => $site['quota'], 'disk_use' => $disk_use, ! 'active_string' => $active, ! 'url_name' => $site['url_name'] )); break; Index: class.page.php =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/classes/class.page.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** class.page.php 19 Oct 2003 08:43:46 -0000 1.6 --- class.page.php 22 Oct 2003 08:04:58 -0000 1.7 *************** *** 91,95 **** // INSERT ROW IN DATABASE ! $_SESSION['DB']->query("INSERT INTO `".$_SESSION['DB']->table['page']."` ( `ID` , `site_id` , `template` , `name`, `users`, `modify_date`, `parent`, `modify_user` ) VALUES ( '', '$sid', '$data[template]', '$data[name]', '$data[users]', '".date("d-m-Y @ H:i:s")."', '$data[parent]', '".$_SESSION['BYFLY_USER']."' );"); $pid = mysql_insert_id(); # LOAD ALL DATA FROM DB --- 91,96 ---- // INSERT ROW IN DATABASE ! $url_name = $_SESSION['common']->urlName($data['name'], 'page', $sid); ! $_SESSION['DB']->query("INSERT INTO `".$_SESSION['DB']->table['page']."` ( `ID` , `site_id` , `template` , `name`, `users`, `modify_date`, `parent`, `modify_user`, `url_name` ) VALUES ( '', '$sid', '$data[template]', '$data[name]', '$data[users]', '".date("d-m-Y @ H:i:s")."', '$data[parent]', '".$_SESSION['BYFLY_USER']."', '".$url_name."' );"); $pid = mysql_insert_id(); # LOAD ALL DATA FROM DB *************** *** 131,139 **** function delete($pid){ ! $_SESSION['DB']->query("DELETE FROM `".$_SESSION['DB']->table['vars']."` WHERE `page_id`=$pid"); $_SESSION['DB']->query("DELETE FROM `".$_SESSION['DB']->table['page']."` WHERE `ID`=$pid"); ! ! } --- 132,148 ---- function delete($pid){ ! echo "deleting $pid<BR>"; ! $info = $this->getInfo($pid); ! $sub_pages = $this->getPages($pid, $info['ID']); ! print_r($sub_pages); ! if($sub_pages){ ! foreach($sub_pages as $page){ ! $this->delete($page['ID']); ! } ! } ! /* $_SESSION['DB']->query("DELETE FROM `".$_SESSION['DB']->table['vars']."` WHERE `page_id`=$pid"); $_SESSION['DB']->query("DELETE FROM `".$_SESSION['DB']->table['page']."` WHERE `ID`=$pid"); ! */ } *************** *** 147,150 **** --- 156,162 ---- foreach($data as $key => $val){ + if($key == 'url_name'){ + $val = $_SESSION['common']->urlName($val, 'page', $_GET['sid']); + } $_SESSION['DB']->query("UPDATE `".$_SESSION['DB']->table['page']."` SET `".$key."` = '".$val."' WHERE `ID` = ".$pid); } *************** *** 152,156 **** function mod_date($pid){ - # $date = date("d-m-Y @ H:i:s"); $_SESSION['DB']->query("UPDATE `".$_SESSION['DB']->table['page']."` SET `modify_date` = NOW() WHERE `ID` = $pid"); $_SESSION['DB']->query("UPDATE `".$_SESSION['DB']->table['page']."` SET `modify_user` = '".$_SESSION['BYFLY_USER']."' WHERE `ID` = $pid"); --- 164,167 ---- *************** *** 204,207 **** --- 215,228 ---- } + function getUrlname($str, $sid){ + $str = strtoupper($str); + $data = $_SESSION['DB']->query("SELECT * FROM `".$_SESSION['DB']->table['page']."` WHERE `url_name` = '$str' AND `site_id` = '".$sid."'"); + if(mysql_num_rows($data) > 0){ + $data = mysql_fetch_array($data); + return $data['ID']; + } else { + return false; + } + } } Index: class.site.php =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/classes/class.site.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** class.site.php 19 Oct 2003 08:43:46 -0000 1.5 --- class.site.php 22 Oct 2003 08:04:58 -0000 1.6 *************** *** 84,87 **** --- 84,90 ---- function editData($sid,$data){ foreach($data as $key => $val){ + if($key == 'url_name'){ + $val = $_SESSION['common']->urlName($data['name'], 'site'); + } $_SESSION['DB']->query("UPDATE `".$_SESSION['DB']->table['site']."` SET `".$key."` = '".$val."' WHERE ID = $sid"); } *************** *** 112,116 **** function getUrlname($str){ ! $str = strtolower($str); $data = $_SESSION['DB']->query("SELECT * FROM `".$_SESSION['DB']->table['site']."` WHERE `url_name` = '$str'"); if(mysql_num_rows($data) > 0){ --- 115,119 ---- function getUrlname($str){ ! $str = strtoupper($str); $data = $_SESSION['DB']->query("SELECT * FROM `".$_SESSION['DB']->table['site']."` WHERE `url_name` = '$str'"); if(mysql_num_rows($data) > 0){ |
From: <fly...@us...> - 2003-10-22 08:09:25
|
Update of /cvsroot/byfly/byfly-0.6.0b/modules/guestbook In directory sc8-pr-cvs1:/tmp/cvs-serv25662/modules/guestbook Modified Files: class.guestbook.php Log Message: Guestbook module updated Added url control, with htaccess option overview Index: class.guestbook.php =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/modules/guestbook/class.guestbook.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** class.guestbook.php 19 Oct 2003 08:43:46 -0000 1.4 --- class.guestbook.php 22 Oct 2003 08:04:58 -0000 1.5 *************** *** 179,184 **** function add_post($data){ - $date = date("d-m-Y"); - $time = date("H:i"); $ip = $_SERVER["REMOTE_ADDR"]; if($data['view_email']){ --- 179,182 ---- *************** *** 211,215 **** } ! $_SESSION['DB']->query("INSERT INTO `fly_module_guestbook_items` (`name`, `date`, `time`, `url`, `email`, `message`, `ip`, `view_email`, `book_id`) VALUES ('$data[name]', '$date', '$time','$data[url]', '$data[email]','".str_replace('"',"\\\"",nl2br($data['message']))."', '$ip', '$data[view_email]', '".$this->ID."') "); # $message = "Hi, \nOp $date @ $time heeft ".$data['name']." een bericht toegevoegt aan het gastboek.\n----------------\n\n ".$data['message']."\n\n----------------\nWeb-site: ".$data['url']."\nIP-adres: $ip\n$mes"; # mail('ed...@fl...', 'Nieuw bericht in gastboek', $message, 'From: '.$data['name'].' <'.$data['email'].'>'); --- 209,213 ---- } ! $_SESSION['DB']->query("INSERT INTO `fly_module_guestbook_items` (`name`, `date`, `url`, `email`, `message`, `ip`, `view_email`, `book_id`) VALUES ('$data[name]', NOW(),'$data[url]', '$data[email]','".str_replace('"',"\\\"",nl2br($data['message']))."', '$ip', '$data[view_email]', '".$this->ID."') "); # $message = "Hi, \nOp $date @ $time heeft ".$data['name']." een bericht toegevoegt aan het gastboek.\n----------------\n\n ".$data['message']."\n\n----------------\nWeb-site: ".$data['url']."\nIP-adres: $ip\n$mes"; # mail('ed...@fl...', 'Nieuw bericht in gastboek', $message, 'From: '.$data['name'].' <'.$data['email'].'>'); *************** *** 228,234 **** $str = ''; ! $temp = $_SESSION['DB']->query("SELECT * FROM `fly_module_guestbook_items` WHERE `book_id` = '".$this->ID."' ORDER BY `ID` DESC LIMIT ".$this->start.",".$this->booksettings['messages_on_page']); while($line = mysql_fetch_array($temp)){ ! $data = $template; if($line['url'] != ''){ --- 226,233 ---- $str = ''; ! $temp = $_SESSION['DB']->query("SELECT *, UNIX_TIMESTAMP(`date`) AS `date` FROM `fly_module_guestbook_items` WHERE `book_id` = '".$this->ID."' ORDER BY `ID` DESC LIMIT ".$this->start.",".$this->booksettings['messages_on_page']); while($line = mysql_fetch_array($temp)){ ! $line['time'] = date('H:i:s', $line['date']); ! $line['date'] = date('d-m-Y', $line['date']); $data = $template; if($line['url'] != ''){ *************** *** 296,300 **** } $this->count++; ! return eregi_replace($word, '<span style="font-size: 6pt; color: red;">'.$n.'</span>', $str); } --- 295,299 ---- } $this->count++; ! return eregi_replace(" ".$word." ", ' <span style="font-size: 6pt; color: red;">'.$n.'</span> ', $str); } |
From: <fly...@us...> - 2003-10-22 08:09:18
|
Update of /cvsroot/byfly/byfly-0.6.0b In directory sc8-pr-cvs1:/tmp/cvs-serv25662 Modified Files: .htaccess index.php Log Message: Guestbook module updated Added url control, with htaccess option overview Index: .htaccess =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/.htaccess,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** .htaccess 19 Oct 2003 08:43:45 -0000 1.2 --- .htaccess 22 Oct 2003 08:04:58 -0000 1.3 *************** *** 1,5 **** ErrorDocument 400 /byfly/byfly-0.6.0b/index.php?ERROR=400 ErrorDocument 401 /byfly/byfly-0.6.0b/index.php?ERROR=401 ErrorDocument 403 /byfly/byfly-0.6.0b/index.php?ERROR=403 ErrorDocument 404 /byfly/byfly-0.6.0b/index.php?ERROR=404 ! ErrorDocument 500 /byfly/byfly-0.6.0b/index.php?ERROR=500 --- 1,6 ---- + Options +Multiviews ErrorDocument 400 /byfly/byfly-0.6.0b/index.php?ERROR=400 ErrorDocument 401 /byfly/byfly-0.6.0b/index.php?ERROR=401 ErrorDocument 403 /byfly/byfly-0.6.0b/index.php?ERROR=403 ErrorDocument 404 /byfly/byfly-0.6.0b/index.php?ERROR=404 ! ErrorDocument 500 /byfly/byfly-0.6.0b/index.php?ERROR=500 \ No newline at end of file Index: index.php =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/index.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** index.php 19 Oct 2003 08:43:45 -0000 1.8 --- index.php 22 Oct 2003 08:04:58 -0000 1.9 *************** *** 115,119 **** $_SESSION['DATA']['vid'] = $GLOBALS['vid']; } ! if(isset($GLOBALS['sid'])){ $_SESSION['DATA']['pid'] = $GLOBALS['pid']; } --- 115,119 ---- $_SESSION['DATA']['vid'] = $GLOBALS['vid']; } ! if(isset($GLOBALS['pid'])){ $_SESSION['DATA']['pid'] = $GLOBALS['pid']; } |
From: <fly...@us...> - 2003-10-22 08:09:18
|
Update of /cvsroot/byfly/byfly-0.6.0b/templates/flydesign In directory sc8-pr-cvs1:/tmp/cvs-serv25662/templates/flydesign Modified Files: guestbook.default.tpl right.tpl Log Message: Guestbook module updated Added url control, with htaccess option overview Index: guestbook.default.tpl =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/templates/flydesign/guestbook.default.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** guestbook.default.tpl 14 Oct 2003 19:46:28 -0000 1.2 --- guestbook.default.tpl 22 Oct 2003 08:04:59 -0000 1.3 *************** *** 59,66 **** </div> <hr> ! <table> <byfly-exe function="view"> <tr> ! <td> <b>{name}</b><BR> {date} @ {time}<BR> --- 59,66 ---- </div> <hr> ! <table style="border-collapse: collapse;"> <byfly-exe function="view"> <tr> ! <td style="border: 1px solid lightgrey; padding: 7px;"> <b>{name}</b><BR> {date} @ {time}<BR> *************** *** 68,72 **** <a href="{url}">{url}</a> </td> ! <td> {message} --- 68,72 ---- <a href="{url}">{url}</a> </td> ! <td style="border: 1px solid lightgrey; padding: 7px;"> {message} Index: right.tpl =================================================================== RCS file: /cvsroot/byfly/byfly-0.6.0b/templates/flydesign/right.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** right.tpl 19 Oct 2003 08:43:46 -0000 1.3 --- right.tpl 22 Oct 2003 08:04:59 -0000 1.4 *************** *** 26,30 **** <td class="right"><div class="tekst"> ! <fly insert="menu.tpl"></fly> <fly name="content" /> --- 26,30 ---- <td class="right"><div class="tekst"> ! <fly name="menu" /> <fly name="content" /> |