You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
(48) |
Apr
(45) |
May
(11) |
Jun
(7) |
Jul
|
Aug
(11) |
Sep
(75) |
Oct
(38) |
Nov
|
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(17) |
Feb
|
Mar
(22) |
Apr
|
May
(1) |
Jun
|
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2006 |
Jan
(5) |
Feb
(29) |
Mar
(22) |
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Don S. <ri...@us...> - 2004-08-13 21:32:50
|
Update of /cvsroot/phpwsbb/phpwsbb/imglib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17107/imglib Added Files: ImgLibrary.php ImgLibrary_view_gallery.tpl ImgLibrary_view_row.tpl README Log Message: Patch #1002850, Eloi's changes. Need to be tested and examined. --- NEW FILE: README --- This module uses a new core library that allows you to choose images from an image gallery. For it to work, you will have to move the included file ImgLibrary.php to directory "/core", file "Image_Library.txt" to directory /docs/developers and files ImgLibrary_view_gallery.tpl & ImgLibrary_view_gallery.tpl to directory "/templates". --- NEW FILE: ImgLibrary.php --- <?php // Must require classes being used in this class require_once(PHPWS_SOURCE_DIR.'core/Form.php'); require_once(PHPWS_SOURCE_DIR.'core/File.php'); require_once(PHPWS_SOURCE_DIR.'core/Pager.php'); require_once(PHPWS_SOURCE_DIR.'core/WizardBag.php'); require_once(PHPWS_SOURCE_DIR.'core/Template.php'); require_once(PHPWS_SOURCE_DIR.'core/Error.php'); /** * Maintains & retrieves selected URLs from an image library * * This class allows you to easily create & manage a library of images for * your module and allow the user to select a desired image. * * See /docs/developer/Image_Library.txt for usage instructions. * * @version $Id: ImgLibrary.php,v 1.1 2004/08/13 21:32:38 rizzo Exp $ * @author Eloi George <el...@NO...> * @package Core */ class PHPWS_IMGLib { /** * Name of module this image library belongs to. * Changing this allows you to have more than 1 library per module. * @var string * @access public */ var $_module; /** * Image Library base directory's name. Defaults to "library" * Changing this allows you to have more than 1 library per module. * @var string * @access public */ var $_base_dir; /** * File Path of the library that's being accessed. * @var string * @access public */ var $_library_path; /** * What to call the image ex:"avatar", "mugshot". * @var string * @access public */ var $_image_type; /** * Data to send on exit from the gallery. * @var string * @access public */ var $_return_data; /** * Content_Var to use for displaying data. * @var string * @access public */ var $_block; /** * Denotes that the user can add or delete images. * @var boolean * @access private */ var $_can_manage_images; /** * Denotes that the user can add or delete galleries. * @var boolean * @access private */ var $_can_manage_galleries; /** * Denotes that the user can select images from the galleries. * @var boolean * @access private */ var $_can_select_images; /** * Display=>Directory names of all galleries. * @var array * @access private */ var $_galleries; /** * Currently selected image. * @var string * @access public */ var $_current_image; /** * Currently selected gallery. * @var string * @access public */ var $_current_gallery; /** * Maximum size of uploaded images. In kilobytes. * @var array * @access public */ var $_max_image_size; /** * Maximum height of uploaded images. * @var array * @access public */ var $_max_image_height; /** * Maximum width of uploaded images. * @var array * @access public */ var $_max_image_width; /** * The maximum number of images to show per page. * @var array * @access private */ var $_pager_limit; /** * This flag is set to true whenever an op is ready for external processing. * @var array * @access public */ var $_done; /** * This flag is set to true if a new image library was just created. * @var array * @access public */ var $_created; /** * Constructor for the PHPWS_IMGLib object. * * If all class data is not available as a $_POST variable, PHPWS_IMGLib * will read it from /images/<module name>/library/config.php * core is loaded, it passes the configuration file name * to this function to initialize it. Besides preparing the hub * it can be used to open a branch database as well. * * @author Eloi George <el...@NO...> * @param boolean $can_manage_images Calling module * @param boolean $can_manage_galleries Calling module * @param boolean $can_select_images Calling module * @param string $return_data Data to send on exit from the gallery. * @param string $current_gallery Currently selected gallery * @param string $current_image Currently selected image * @param string $module Calling module * @param string $base_dir Image Library base directory name. "library" * @param string $block Content_Var to use for displaying data. * @param string $image_type What to call the image ex:"avatar" * @param int $max_image_size Maximum size of uploaded images. In kilobytes. * @param int $max_image_height Maximum height of uploaded images. * @param int $max_image_width Maximum width of uploaded images. * @return none * @access public */ function PHPWS_IMGLib ($can_manage_images=false, $can_manage_galleries=false , $can_select_images=true, $return_data, $current_gallery=null, $current_image=null , $module=null, $base_dir='library', $block='CNT_user', $image_type='image' , $max_image_size=26, $max_image_height=400, $max_image_width=400) { $this->_done = $this->_created = false; $this->_galleries = array(); $this->_pager_limit=10; /* Assign parameters to class variables */ $this->_can_manage_images = $can_manage_images; $this->_can_manage_galleries = $can_manage_galleries; if (isset($_REQUEST['IMGLib_can_select_images'])) $this->_can_select_images = $_REQUEST['IMGLib_can_select_images']; else $this->_can_select_images = $can_select_images; if (isset($_REQUEST['IMGLib_return_data'])) /* Decode this string if necessary */ $this->_return_data = $_REQUEST['IMGLib_return_data']; else $this->_return_data = $return_data; if (isset($_REQUEST['IMGLib_current_image'])) $this->_current_image = stripslashes($_REQUEST['IMGLib_current_image']); else $this->_current_image = $current_image; if (isset($_REQUEST['IMGLib_current_gallery'])) $this->_current_gallery = stripslashes($_REQUEST['IMGLib_current_gallery']); else $this->_current_gallery = $current_gallery; if ($module) $this->_module = $module; else $this->_module = $GLOBALS['core']->current_mod; $this->_base_dir = $base_dir; $this->_block = $block; $this->_image_type = $image_type; $this->_max_image_size = $max_image_size; $this->_max_image_height = $max_image_height; $this->_max_image_width = $max_image_width; // PHPWS_HOME_DIR define has been deprecated because it needs to be able to change on the fly for branches and defines cannot do that $this->_library_path = $GLOBALS['core']->home_dir.'images/'.$this->_module.'/'.$this->_base_dir.'/'; /* Pull settings data from textfile */ $config_file = $this->_library_path.'config.php'; if (!file_exists($config_file) && !$this->create_library()) { exit('ERROR (PHPWS_IMGLib): No library settings file found or created!'); } include($config_file); /* Start processing any POSTed current gallery view data */ if (isset($_REQUEST['IMGLib_selected_view'])) $this->_current_view = $_REQUEST['IMGLib_selected_view']; /* If no current view was requested, use the current image's gallery */ elseif(!empty($this->_current_gallery)) { $g = $this->_current_gallery; /* Strip any trailing slashes */ if (substr($g,-1)=='/') $g = substr($g,0,-1); /* Strip any parent directory names & the trailing slash */ if (strrchr($g, '/')) $g = substr(strrchr($g, '/'), 1); /* Make sure that the supplied gallery exists */ if (array_key_exists($g, $this->_galleries)) $this->_current_view = $g; } /* otherwise, just pick the first gallery */ else { reset($this->_galleries); $this->_current_view = key($this->_galleries); } $this->_done = false; if (isset($_REQUEST['PAGER_limit'])) $this->_pager_limit = $_REQUEST['PAGER_limit']; }// END FUNC PHPWS_IMGLib() /** * Determines & performs the requested PHPWS_IMGLib operation. * * @author Eloi George <el...@NO...> * @param string $op Action to be performed * @return none * @access public */ function action ($op='view_gallery') { if ($op=='upload_image' && $this->_can_manage_images) $this->upload_image(); elseif ($op=='delete_image' && $this->_can_manage_images) $this->delete_image(); elseif ($op=='move_image' && $this->_can_manage_images) $this->move_image(); elseif ($op=='image_mgmt' && isset($_POST['IMGLib_delete']) && $this->_can_manage_images) $this->delete_image(); elseif ($op=='create_gallery' && $this->_can_manage_galleries) { if (!$this->update_settings(stripslashes($_POST['IMGLib_new_gallery'])) || !$this->_current_view = array_search(stripslashes($_POST['IMGLib_new_gallery']), $this->_galleries)) { reset($this->_galleries); $this->_current_view = key($this->_galleries); } $this->view_gallery(); } elseif ($op=='delete_gallery' && $this->_can_manage_galleries) $this->delete_gallery(); elseif ($op=='rename_gallery' && $this->_can_manage_galleries) $this->rename_gallery(); elseif ($op=='update_settings' && $this->_can_manage_galleries) $this->update_settings(); else $this->view_gallery(); }// END FUNC action() /** * Updates the library settings file. * * This is also used to create a new image gallery. * * @author Eloi George <el...@NO...> * @param string $new_gallery New gallery to be created * @return none * @access public */ function update_settings ($new_gallery=null) { /* If a new gallery is requested & is not a duplicate... */ $lastnum = true; if (!empty($new_gallery)) { if (array_search($new_gallery, $this->_galleries)!==false) { echo 'ERROR (PHPWS_IMGLib): A Gallery named "'.$new_gallery.'" already exists!<br />'; return false; } /* Determine the last directory id */ if ($dirlist = PHPWS_File::readDirectory($this->_library_path, true)) { asort($dirlist); $lastnum = array_pop($dirlist); } else $lastnum = 0; /* Create a new directory */ $dir = $this->_library_path . ++$lastnum.'/'; if (@mkdir($dir)) { chmod($dir, 0755); $this->_galleries[$lastnum] = $new_gallery; } else { /* exit with an error */ echo 'ERROR (PHPWS_IMGLib): Couldn\'t create directory '.$dir.'<br />'; return false; } } /* Create a new config.php file */ $config_info = "<?php\n"; ksort($this->_galleries); foreach ($this->_galleries as $loc => $name) $config_info .= '$this->_galleries["'.$loc.'"] = stripslashes("'.addslashes($name). "\");\n"; $config_info .= '?>'; if (!PHPWS_File::writeFile($this->_library_path.'config.php', $config_info, TRUE, TRUE)) { echo 'There was an error writing to the file'.$this->_library_path.'config.php <br />'.'Settings have not been changed!<br />'; return false; } return $lastnum; }// END FUNC update_settings() /** * Displays the current gallery and lets the user pick an image. * * @author Eloi George <el...@NO...> * @param none * @return none * @access public */ function view_gallery () { /* Set up persistent image row variables */ $vars = $this->post_class_vars(); if ($this->_can_select_images) $ops = array('select_image'=>'Select'); if ($this->_can_manage_images) { $ops['move_image'] = 'Move'; $ops['delete_image'] = 'Delete'; } /* Make a sorted list of all files in the currently selected gallery */ if (!$result = PHPWS_File::readDirectory($this->_library_path.$this->_current_view,false,true)) { $result = array(); } natcasesort($result); /* Set up paging information */ $pager = new PHPWS_Pager; $pager->makeArray(TRUE); $pager->limit = $this->_pager_limit; $pager->setlinkback('index.php?module='.$this->_module . '&IMGLib_op=view_gallery&IMGLib_can_select_images='.$this->_can_select_images . '&IMGLib_current_image='.$this->_current_image . '&IMGLib_current_gallery='.$this->_current_gallery . '&IMGLib_selected_view='.$this->_current_view . '&IMGLib_return_data='.$this->_return_data); $pager->setData($result); $pager->pageData(); $result = $pager->getData(); $tags['PAGE_BACKWARD_LINK'] = $pager->getBackLink(); $tags['SECTION_LINKS'] = $pager->getSectionLinks(); $tags['PAGE_FORWARD_LINK'] = $pager->getForwardLink(); $tags['SECTION_INFO'] = $pager->getSectionInfo() . ucfirst($this->_image_type); $tags['LIMIT_LINKS'] = $pager->getLimitLinks(); $tags['LIMIT_LINKS_LABEL'] = $_SESSION['translate']->it('Rows to show per page'); /* Get all image information & max H&W */ $maxh = $maxw = 90; $filelist = array(); foreach($result as $f) { $filelist[$f] = getimagesize($this->_library_path.$this->_current_view.'/'.$f); if ($filelist[$f][1] > $maxh) $maxh = $filelist[$f][1]; if ($filelist[$f][0] > $maxw) $maxw = $filelist[$f][0]; } /* Create image row HTML */ $row['IHEIGHT'] = $maxh; $row['HEIGHT'] = $maxh + 30; $row['WIDTH'] = $maxw + 20; $tags['IMAGE_SELECT_LST'] = ''; foreach($filelist as $fname=>$finfo) { $row['BG'] = $bg; // All image access should be relative, http:// was being hard-coded which would break in ssl sites (https://) $row['IMAGE'] = '<img src="./images/'.$this->_module.'/' . $this->_base_dir.'/'.$this->_current_view.'/'.$fname.'" alt="'.$fname.'" title="'.$fname.'" '.$finfo[3].' />'; $row['IMAGE_NAME'] = PHPWS_Form::formCheckBox('IMGLib_selected_image['.$fname.']', $fname) . preg_replace("/[^a-zA-Z0-9]/", ' ', str_replace(strrchr($fname, '.'), '', $fname)); if(strpos($this->_current_gallery, '/'.$this->_current_view) && $fname==$this->_current_image) $row['IMAGE_NAME'] .= '<br />'.$_SESSION['translate']->it('[Currently Selected]'); $tags['IMAGE_SELECT_LST'] .= PHPWS_Template::processTemplate($row,'core','ImgLibrary_view_row.tpl'); PHPWS_WizardBag::toggle($bg, ' class="bg_light"'); } if (empty($filelist)) $tags['IMAGE_SELECT_LST'] = '<br /><br />'.$_SESSION['translate']->it('This gallery is empty!').'<br /><br />'; else $tags['IMAGE_SELECT_DLG'] = $vars . PHPWS_Form::formHidden('IMGLib_selected_gallery', $this->_base_dir.'/'.$this->_current_view.'/') . $_SESSION['translate']->it('With selected [var1]',$this->_image_type).': ' . PHPWS_Form::formSelect('IMGLib_op', $ops) . PHPWS_Form::formSubmit($_SESSION['translate']->it('Go'), 'IMGLib_btn'); /* Populate the rest of the template tags */ $tags['IMAGE_SELECT_LBL'] = $_SESSION['translate']->it('Select An [var1]',ucfirst($this->_image_type)); $form[0] = $vars . PHPWS_Form::formHidden('IMGLib_op', 'view_gallery') . $_SESSION['translate']->it('Choose another [var1] gallery',$this->_image_type).': ' . PHPWS_Form::formSelect('IMGLib_selected_view', $this->_galleries, $this->_galleries[$this->_current_view]) . PHPWS_Form::formSubmit($_SESSION['translate']->it('Go!'), 'IMGLib_btn'); $tags['GALL_CHOOSE_DLG'] = PHPWS_Form::makeForm('IMGLib_choose_dlg', 'index.php', $form, 'post', 0, TRUE); $tags['GALL_EXIT_LNK'] = '[<a href="index.php?module='.$this->_module . '&IMGLib_op=exit&IMGLib_return_data='.$this->_return_data.'">' . $_SESSION['translate']->it('Exit The Gallery').'</a>]'; if ($this->_can_manage_images) { $tags['IMAGE_MGMT_TITLE'] = ucfirst($this->_image_type).' '.$_SESSION['translate']->it('Upload'); $tags['IMAGE_UPLOAD_LBL'] = $_SESSION['translate']->it('Your [var1] must be no bigger than [var2] pixels high by [var3] pixels wide.' , $this->_image_type, $this->_max_image_height, $this->_max_image_width) .'<br />' . $_SESSION['translate']->it('Maximum uploaded [var1] size is [var2]KB.' , $this->_image_type, $this->_max_image_size); $form[0] = PHPWS_Form::formFile('IMGLib_loaded_image', 33, 255) . ' '.$this->gallery_button($_SESSION['translate']->it('Save'), 'upload_image', true); $tags['IMAGE_UPLOAD_DLG'] = PHPWS_Form::makeForm('IMGLib_upload_image_dlg', 'index.php', $form, 'post', 0, TRUE); } if ($this->_can_manage_galleries) { $tags['GALL_MGMT_TITLE'] = $_SESSION['translate']->it('Gallery Management'); $tags['GALL_CREATE_LBL'] = $_SESSION['translate']->it('<b>Create A Gallery:</b> Give your new gallery a name as it will appear in the gallery selection box.'); $tags['GALL_DELETE_LBL'] = $_SESSION['translate']->it('<b>Delete:</b> Click the button below to delete this gallery and all images located inside it.'); $tags['GALL_RENAME_LBL'] = null; $form[0] = PHPWS_Form::formTextField('IMGLib_new_gallery', '', 35, 70) . ' '.$this->gallery_button($_SESSION['translate']->it('Create'), 'create_gallery', true); $tags['GALL_CREATE_DLG'] = PHPWS_Form::makeForm('IMGLib_create_gallery_dlg', 'index.php', $form, 'post', 0, TRUE); $form[0] = PHPWS_Form::formTextField('IMGLib_new_gallery', '', 35, 70, $_SESSION['translate']->it('<b>Rename:</b> Change this gallery\'s name to').': ') . ' '.$this->gallery_button($_SESSION['translate']->it('Rename'), 'rename_gallery', true); $tags['GALL_RENAME_DLG'] = PHPWS_Form::makeForm('IMGLib_rename_gallery_dlg', 'index.php', $form, 'post', 0, TRUE); $tags['GALL_DELETE_DLG'] = $this->gallery_button($_SESSION['translate']->it('Delete This Gallery'), 'delete_gallery'); } $GLOBALS[$this->_block]['title'] = $_SESSION['translate']->it('[var1] Gallery : [var2]', ucfirst($this->_image_type), str_replace('.','',$this->_galleries[$this->_current_view])); $GLOBALS[$this->_block]['content'] = PHPWS_Template::processTemplate($tags,'core','ImgLibrary_view_gallery.tpl'); }// END FUNC view_gallery() /** * Deletes an image gallery. * * @author Eloi George <el...@NO...> * @param none * @return none * @access public */ function delete_gallery () { if(isset($_POST['IMGLib_yes'])) { $g = $this->_galleries[$this->_current_view]; if (PHPWS_File::rmdir($this->_library_path.$this->_current_view.'/')) { unset($this->_galleries[$this->_current_view]); $this->update_settings(); $str1 = $_SESSION['translate']->it('Gallery Deleted'); $str2 = 'has successfully been'; } else { $str1 = $_SESSION['translate']->it('ERROR'); $str2 = 'could not be'; } $GLOBALS[$this->_block]['title'] = $_SESSION['translate']->it('Image Library').' - '. $str1 .'!'; $content = $_SESSION['translate']->it('The [var1] <b>"[var2]"</b> '.$str2.' [var3]' , $_SESSION['translate']->it('gallery'), $g , '<b>'.$_SESSION['translate']->it('deleted').'</b>!') . '<br /><br />'; $GLOBALS[$this->_block]['content'] = $content .'<br /><br /><center>'. $this->gallery_button().'</center>'; } elseif(isset($_POST['IMGLib_no'])) { $this->view_gallery(); } else { $myform[0] = $this->post_class_vars() . PHPWS_Form::formHidden('IMGLib_op', 'delete_gallery') . PHPWS_Form::formSubmit($_SESSION['translate']->it('Yes'), 'IMGLib_yes') . ' ' . PHPWS_Form::formSubmit($_SESSION['translate']->it('No'), 'IMGLib_no'); $GLOBALS[$this->_block]['title'] = $_SESSION['translate']->it('Image Library') .' - '. $_SESSION['translate']->it('Confirm Action').'!'; $GLOBALS[$this->_block]['content'] = '<br /><br />' . $_SESSION['translate']->it('Are you sure you want to <b>[var1] "[var2]"</b>?' , $_SESSION['translate']->it('delete'), $this->_galleries[$this->_current_view]) . PHPWS_Form::makeForm('IMGLib_confirm_delete', 'index.php', $myform, 'post', 0, 0) . '<br /><br />'; } }// END FUNC delete_gallery() /** * Renames an image gallery. * * @author Eloi George <el...@NO...> * @param none * @return none * @access public */ function rename_gallery () { $this->_galleries[$this->_current_view] = stripslashes($_POST['IMGLib_new_gallery']); if ($this->update_settings()) $this->view_gallery(); else { $GLOBALS[$this->_block]['title'] = $_SESSION['translate']->it('Image Library').' - '. $str1 .'!'; $GLOBALS[$this->_block]['content'] = $_SESSION['translate']->it('The [var1] <b>"[var2]"</b> could not be [var3]' , $_SESSION['translate']->it('gallery'), $this->_galleries[$this->_current_view] , '<b>'.$_SESSION['translate']->it('renamed').'</b>!') . '<br /><br /><center>'. $this->gallery_button().'</center>'; } }// END FUNC rename_gallery() /** * Uploads an image to the current image gallery. * * @author Eloi George <el...@NO...> * @param none * @return none * @access public */ function upload_image () { $image = EZform::saveImage('IMGLib_loaded_image' , $this->_library_path.$this->_current_view.'/' , $this->_max_image_width , $this->_max_image_height , $this->_max_image_size*1024); if (PHPWS_Error::isError($image)) $image->message($this->_block, $_SESSION['translate']->it('Image Upload Failed')); $this->view_gallery(); }// END FUNC upload_image() /** * Deletes an image from the current image gallery. * * @author Eloi George <el...@NO...> * @param none * @return none * @access public */ function delete_image () { if(isset($_POST['IMGLib_yes'])) { foreach($_POST['IMGLib_selected_image'] as $f) $status = @unlink($this->_library_path.$this->_current_view.'/'.$f); if ($status) { $str1 = $_SESSION['translate']->it('Gallery Deleted'); $str2 = 'has successfully been'; $this->_done = true; } else { $str1 = $_SESSION['translate']->it('ERROR'); $str2 = 'could not be'; } $GLOBALS[$this->_block]['title'] = $_SESSION['translate']->it('Image Library').' - '. $str1 .'!'; $content = $_SESSION['translate']->it('The [var1] <b>"[var2]"</b> '.$str2.' [var3]' , $this->_image_type, implode('" & "', $_POST['IMGLib_selected_image']) , '<b>'.$_SESSION['translate']->it('deleted').'</b>!') . '<br /><br />'; $GLOBALS[$this->_block]['content'] = $content .'<br /><br /><center>'. $this->gallery_button().'</center>'; } elseif(isset($_POST['IMGLib_no'])) { $this->view_gallery(); } else { $myform[0] = $this->post_class_vars() . PHPWS_Form::formHidden('IMGLib_op', 'delete_image') . $this->post_array('IMGLib_selected_image', $_POST['IMGLib_selected_image']) . PHPWS_Form::formSubmit($_SESSION['translate']->it('Yes'), 'IMGLib_yes') . ' ' . PHPWS_Form::formSubmit($_SESSION['translate']->it('No'), 'IMGLib_no'); $GLOBALS[$this->_block]['title'] = $_SESSION['translate']->it('Image Library') .' - '. $_SESSION['translate']->it('Confirm Action').'!'; $GLOBALS[$this->_block]['content'] = '<br /><br />' . $_SESSION['translate']->it('Are you sure you want to [var1] "[var2]"?' , $_SESSION['translate']->it('delete'), implode('" & "', $_POST['IMGLib_selected_image'])) . PHPWS_Form::makeForm('IMGLib_confirm_delete', 'index.php', $myform, 'post', 0, 0) . '<br /><br />'; } }// END FUNC delete_image() /** * Moves an image to another image gallery. * * @author Eloi George <el...@NO...> * @param none * @return none * @access public */ function move_image () { if(isset($_POST['IMGLib_yes'])) { if (!isset($_POST['IMGLib_selected_gallery'])) return; $status = true; $from = $this->_library_path.$this->_current_view.'/'; $to = $this->_library_path.$_POST['IMGLib_selected_gallery'].'/'; foreach($_POST['IMGLib_selected_image'] as $f) /* If file copies OK, erase it */ if ($status && $status = PHPWS_File::fileCopy($from.$f, $to, $f, true, true)) { $status = @unlink($from.$f); } if ($status) { $str1 = $_SESSION['translate']->it('File Move Complete'); $str2 = 'has successfully been'; $this->_done = true; } else { $str1 = $_SESSION['translate']->it('ERROR'); $str2 = 'could not be'; } $GLOBALS[$this->_block]['title'] = $_SESSION['translate']->it('Image Library').' - '. $str1 .'!'; $content = $_SESSION['translate']->it('The [var1] <b>"[var2]"</b> '.$str2.' [var3]' , $this->_image_type, implode('" & "', $_POST['IMGLib_selected_image']) , '<b>'.$_SESSION['translate']->it('moved').'</b>!') . '<br /><br />'; $GLOBALS[$this->_block]['content'] = $content .'<br /><br /><center>'. $this->gallery_button().'</center>'; } elseif(isset($_POST['IMGLib_no'])) { $this->view_gallery(); } else { $myform[0] = $this->post_class_vars() . PHPWS_Form::formHidden('IMGLib_op', 'move_image') . $this->post_array('IMGLib_selected_image', $_POST['IMGLib_selected_image']) . PHPWS_Form::formSelect('IMGLib_selected_gallery', $this->_galleries, $this->_galleries[$this->_current_view]) . PHPWS_Form::formSubmit($_SESSION['translate']->it('Move'), 'IMGLib_yes') . ' ' . PHPWS_Form::formSubmit($_SESSION['translate']->it('Cancel'), 'IMGLib_no'); $GLOBALS[$this->_block]['title'] = $_SESSION['translate']->it('Image Library') .' - '. $_SESSION['translate']->it('Confirm Action').'!'; $GLOBALS[$this->_block]['content'] = '<br /><br />' . $_SESSION['translate']->it('Where do you want to move "[var1]" to?' , implode('" & "', $_POST['IMGLib_selected_image'])) . '<br />' . PHPWS_Form::makeForm('IMGLib_confirm_move', 'index.php', $myform, 'post', 0, 0) . '<br /><br />'; } }// END FUNC move_image() /** * Prepares class variables to be passed via $_POST. * * @author Eloi George <el...@NO...> * @param none * @return string HTML for all class variables to be POSTed * @access private */ function post_class_vars () { return PHPWS_Form::formHidden('module', $this->_module) . PHPWS_Form::formHidden('IMGLib_can_select_images', $this->_can_select_images) . PHPWS_Form::formHidden('IMGLib_return_data', $this->_return_data) . PHPWS_Form::formHidden('IMGLib_current_image', $this->_current_image) . PHPWS_Form::formHidden('IMGLib_current_gallery', $this->_current_gallery) . PHPWS_Form::formHidden('PAGER_limit', $this->_pager_limit) . PHPWS_Form::formHidden('IMGLib_selected_view', $this->_current_view); }// END FUNC post_class_vars() /** * Prepares an array to be passed via $_POST. * * @author Eloi George <el...@NO...> * @param string $name Name to give POSTed variable * @param array Array of variables to post * @return string HTML for hidden array to be POSTed * @access private */ function post_array ($name, $array) { if (!is_array($array)) return; foreach($array as $key=>$value) $p .= PHPWS_Form::formHidden($name.'['.$key.']', $value); return $p; }// END FUNC post_class_vars() /** * Returns a form with a "View Gallery" button and class variables. * * @author Eloi George <el...@NO...> * @param string $label Button label text * @param string $action Operation to perform * @param string $in_form Whether this is included in a larger form * @return HTML for a centered button * @access private */ function gallery_button ($label=null, $action=null, $in_form=false) { if (!$label) $label = $_SESSION['translate']->it('View Gallery'); if (!$action) $action = 'view_gallery'; $myform[0] = $this->post_class_vars() . PHPWS_Form::formHidden('IMGLib_op', $action) . PHPWS_Form::formSubmit($label, 'IMGLib_btn'); if ($in_form) return $myform[0]; else return PHPWS_Form::makeForm('IMGLib_button', 'index.php', $myform, 'post', 0, 0); }// END FUNC gallery_button() /** * Creates all files needed for a module's image library. * * @author Eloi George <el...@NO...> * @param None. * @return bool Success or Failiure. * @access private */ function create_library () { /* Create the main library directory */ $the_path = substr($this->_library_path, 0, -1); if(!is_dir($the_path)) { $a=''; foreach(explode('/',$the_path) AS $k) { $a.=$k.'/'; if(!is_dir($a)) { mkdir($a); chmod($a, 0755); } } } if(!is_dir($the_path)) return false; else /* If the settings file & general gallery are successfully created.. */ if ($this->_created = $this->update_settings('.General Images')) { /* Copy any extraneous files that may be in the base directory to the general gallery */ if ($filelist = PHPWS_File::readDirectory($this->_library_path,false,true)) { foreach($filelist as $f) { if ($f != 'config.php' && PHPWS_File::fileCopy($this->_library_path.$f, $this->_library_path.$this->_created.'/', $f, true, true)) @unlink($this->_library_path.$f); } } return true; } }// END FUNC post_class_vars() }//END CLASS: PHPWS_IMGLib ?> --- NEW FILE: ImgLibrary_view_gallery.tpl --- {GALL_CHOOSE_DLG} <br /> {GALL_EXIT_LNK} <br /> <div align="center" class="bg_medium"> <b>{IMAGE_SELECT_LBL}</b> </div> <hr /> <form name="IMGLib_choose_dlg" action="index.php" method="post" enctype="multipart/form-data"> {IMAGE_SELECT_LST} <div style="clear:both"><br /> <hr /> <span class="smalltext" style="float:right" align="center"> {PAGE_BACKWARD_LINK} {SECTION_LINKS} {PAGE_FORWARD_LINK}<br /> {SECTION_INFO}<br /> {LIMIT_LINKS_LABEL}: {LIMIT_LINKS}<br /><br /> </span> {IMAGE_SELECT_DLG} <div class="smalltext" style="clear:both"><hr /></div> </div> </form> <br /> <br /> {GALL_EXIT_LNK} <!-- BEGIN IMAGES --> <div align="center" class="bg_medium"> <b>{IMAGE_MGMT_TITLE}</b> </div> <br /> {IMAGE_UPLOAD_LBL} <br /> {IMAGE_UPLOAD_DLG} <br /> <br /> {GALL_EXIT_LNK} <!-- END IMAGES --> <!-- BEGIN GALLERY --> <div align="center" class="bg_medium"> <b>{GALL_MGMT_TITLE}</b> </div> <br /> {GALL_CREATE_LBL} <br /> {GALL_CREATE_DLG} <br /><br /> {GALL_RENAME_DLG} <br /><br /> {GALL_DELETE_LBL} <br /> {GALL_DELETE_DLG} <br /> <br /> {GALL_EXIT_LNK} <!-- END GALLERY --> --- NEW FILE: ImgLibrary_view_row.tpl --- <div{BG} style="float:left; height:{HEIGHT}px; width:{WIDTH}px; " align="center"> <br /> {IMAGE} <br /> {IMAGE_NAME} </div> |
From: Don S. <ri...@us...> - 2004-08-13 21:31:01
|
Update of /cvsroot/phpwsbb/phpwsbb/imglib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16766/imglib Log Message: Directory /cvsroot/phpwsbb/phpwsbb/imglib added to the repository |
From: Don S. <ri...@us...> - 2004-08-11 02:20:15
|
Update of /cvsroot/phpwsbb/phpwsbb/boost In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20716/boost Modified Files: update.php Log Message: Only reason updates worked was because I _really_ suck. Index: update.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/boost/update.php,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** update.php 11 Aug 2004 02:10:24 -0000 1.32 --- update.php 11 Aug 2004 02:20:06 -0000 1.33 *************** *** 227,231 **** if($currentVersion < "0.9.1") { /* Create image directory */ ! mkdir($GLOBALS["core"]->home_dir . "images/phpwsbb"); if (is_dir($GLOBALS["core"]->home_dir . "images/phpwsbb")) { $content .= "phpwsBB image directory " . $GLOBALS["core"]->home_dir . "images/phpwsbb/ successfully created!<br />"; --- 227,231 ---- if($currentVersion < "0.9.1") { /* Create image directory */ ! PHPWS_File::makeDir($GLOBALS["core"]->home_dir . "images/phpwsbb"); if (is_dir($GLOBALS["core"]->home_dir . "images/phpwsbb")) { $content .= "phpwsBB image directory " . $GLOBALS["core"]->home_dir . "images/phpwsbb/ successfully created!<br />"; |
From: Don S. <ri...@us...> - 2004-08-11 02:10:34
|
Update of /cvsroot/phpwsbb/phpwsbb/boost In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19608/boost Modified Files: install.php update.php Log Message: Fixed bug #977804, PHPWS_File::makeDir() only exists in core >= 0.9.3-4. Need to put out a new version with right system requirements and pull 0.9.6 Index: install.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/boost/install.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** install.php 14 Jun 2004 21:19:54 -0000 1.18 --- install.php 11 Aug 2004 02:10:24 -0000 1.19 *************** *** 31,36 **** // Need to do core version check ! if($GLOBALS["core"]->version < "0.9.3-2") { ! $content .= "This module requires a phpWebSite core version of 0.9.3-2 or greater to install.<br />"; $content .= "<br />You are currently using phpWebSite core version " . $GLOBALS["core"]->version . ".<br />"; return; --- 31,36 ---- // Need to do core version check ! if($GLOBALS["core"]->version < "0.9.3-4") { ! $content .= "This module requires a phpWebSite core version of 0.9.3-4 or greater to install.<br />"; $content .= "<br />You are currently using phpWebSite core version " . $GLOBALS["core"]->version . ".<br />"; return; Index: update.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/boost/update.php,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** update.php 4 May 2004 00:25:14 -0000 1.31 --- update.php 11 Aug 2004 02:10:24 -0000 1.32 *************** *** 29,34 **** // Need to do core version check ! if($GLOBALS["core"]->version < "0.9.3-2") { ! $content .= "This module requires a phpWebSite core version of 0.9.3-2 or greater to install.<br />"; $content .= "<br />You are currently using phpWebSite core version " . $GLOBALS["core"]->version . ".<br />"; return; --- 29,34 ---- // Need to do core version check ! if($GLOBALS["core"]->version < "0.9.3-4") { ! $content .= "This module requires a phpWebSite core version of 0.9.3-4 or greater to install.<br />"; $content .= "<br />You are currently using phpWebSite core version " . $GLOBALS["core"]->version . ".<br />"; return; |
From: Don S. <ri...@us...> - 2004-08-11 02:10:33
|
Update of /cvsroot/phpwsbb/phpwsbb/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19608/docs Modified Files: ChangeLog Log Message: Fixed bug #977804, PHPWS_File::makeDir() only exists in core >= 0.9.3-4. Need to put out a new version with right system requirements and pull 0.9.6 Index: ChangeLog =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/docs/ChangeLog,v retrieving revision 1.111 retrieving revision 1.112 diff -C2 -d -r1.111 -r1.112 *** ChangeLog 21 Jun 2004 21:00:30 -0000 1.111 --- ChangeLog 11 Aug 2004 02:10:25 -0000 1.112 *************** *** 2,5 **** --- 2,12 ---- # $Id$ + *phpwsbb-0.9.7 (10 Aug 2004) + + 10 Aug 2004; Don Seiler <do...@NO...> + BUG #977804: PHPWS_File::makeDir() only exists in core >= 0.9.3-4, raised + requirements and putting out a new release so users don't get confused with + 0.9.6. + *phpwsbb-0.9.6 (21 Jun 2004) |
From: Don S. <ri...@us...> - 2004-08-11 02:10:33
|
Update of /cvsroot/phpwsbb/phpwsbb/conf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19608/conf Modified Files: boost.php Log Message: Fixed bug #977804, PHPWS_File::makeDir() only exists in core >= 0.9.3-4. Need to put out a new version with right system requirements and pull 0.9.6 Index: boost.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/conf/boost.php,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** boost.php 14 Jun 2004 04:16:43 -0000 1.33 --- boost.php 11 Aug 2004 02:10:24 -0000 1.34 *************** *** 31,35 **** $admin_mod = 1; $active = "on"; ! $version = "0.9.6"; $admin_op = "&PHPWSBB_MAN_OP=list"; $mod_class_files = array("Manager.php"); --- 31,35 ---- $admin_mod = 1; $active = "on"; ! $version = "0.9.7"; $admin_op = "&PHPWSBB_MAN_OP=list"; $mod_class_files = array("Manager.php"); |
From: Don S. <ri...@us...> - 2004-06-21 21:00:42
|
Update of /cvsroot/phpwsbb/phpwsbb/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29301/templates Modified Files: menu.tpl Log Message: Fixes for XHTML b0rkage. Index: menu.tpl =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/templates/menu.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** menu.tpl 8 Mar 2004 03:05:15 -0000 1.1 --- menu.tpl 21 Jun 2004 21:00:31 -0000 1.2 *************** *** 11,14 **** --- 11,15 ---- </b> <br /> + <!-- BEGIN FORUM_ADMIN --> <table border="0" width="100%" cellpadding="3" cellspacing="1"> <tr> *************** *** 22,24 **** --- 23,26 ---- </table> <br /> + <!-- END FORUM_ADMIN --> <b>{PHPWSBB_MESSAGE}</b> |
From: Don S. <ri...@us...> - 2004-06-21 21:00:42
|
Update of /cvsroot/phpwsbb/phpwsbb/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29301/docs Modified Files: ChangeLog Log Message: Fixes for XHTML b0rkage. Index: ChangeLog =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/docs/ChangeLog,v retrieving revision 1.110 retrieving revision 1.111 diff -C2 -d -r1.110 -r1.111 *** ChangeLog 19 May 2004 19:24:07 -0000 1.110 --- ChangeLog 21 Jun 2004 21:00:30 -0000 1.111 *************** *** 2,5 **** --- 2,13 ---- # $Id$ + *phpwsbb-0.9.6 (21 Jun 2004) + + 21 Jun 2004; Don Seiler <do...@NO...> + Fixed XHTML b0rkage. + + 14 Jun 2004; Don Seiler <do...@NO...> + Forgot to have uninstall remove image dirs. + *phpwsbb-0.9.5 (19 May 2004) |
From: Don S. <ri...@us...> - 2004-06-21 21:00:41
|
Update of /cvsroot/phpwsbb/phpwsbb/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29301/class Modified Files: Manager.php Log Message: Fixes for XHTML b0rkage. Index: Manager.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/class/Manager.php,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** Manager.php 11 May 2004 14:21:49 -0000 1.36 --- Manager.php 21 Jun 2004 21:00:29 -0000 1.37 *************** *** 187,192 **** --- 187,197 ---- $addForum = $_SESSION["translate"]->it("Add Forum"); $settings = $_SESSION["translate"]->it("Settings"); + $forumAdmin = NULL; $tags = array(); + if($_SESSION["OBJ_user"]->allow_access("phpwsbb", "edit_forums") || + $_SESSION["OBJ_user"]->allow_access("phpwsbb", "edit_settings")) { + $tags["FORUM_ADMIN"] = 1; + } if($_SESSION["OBJ_user"]->allow_access("phpwsbb", "edit_forums")) |
From: Don S. <ri...@us...> - 2004-06-14 21:20:04
|
Update of /cvsroot/phpwsbb/phpwsbb/boost In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8268/boost Modified Files: install.php uninstall.php Log Message: Using PHPWS_File::makeDir() Index: uninstall.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/boost/uninstall.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** uninstall.php 14 Jun 2004 04:16:43 -0000 1.8 --- uninstall.php 14 Jun 2004 21:19:54 -0000 1.9 *************** *** 23,26 **** --- 23,30 ---- */ + require_once(PHPWS_SOURCE_DIR . "core/File.php"); + require_once(PHPWS_SOURCE_DIR . "mod/language/class/Language.php"); + require_once(PHPWS_SOURCE_DIR . "mod/help/class/CLS_help.php"); + if(!$_SESSION["OBJ_user"]->isDeity()) { header("location:index.php"); *************** *** 37,45 **** // Remove help information - require_once(PHPWS_SOURCE_DIR . "mod/help/class/CLS_help.php"); CLS_help::uninstall_help("phpwsbb"); // Remove Language - require_once(PHPWS_SOURCE_DIR . "mod/language/class/Language.php"); PHPWS_Language::uninstallLanguages("phpwsbb"); --- 41,47 ---- Index: install.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/boost/install.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** install.php 9 Apr 2004 01:01:43 -0000 1.17 --- install.php 14 Jun 2004 21:19:54 -0000 1.18 *************** *** 23,26 **** --- 23,28 ---- */ + require_once(PHPWS_SOURCE_DIR . "core/File.php"); + if(!$_SESSION["OBJ_user"]->isDeity()) { header("location:index.php"); *************** *** 46,50 **** /* Create image directory */ ! mkdir($GLOBALS["core"]->home_dir . "images/phpwsbb"); if (is_dir($GLOBALS["core"]->home_dir . "images/phpwsbb")) { $content .= "phpwsBB image directory " . $GLOBALS["core"]->home_dir . "images/phpwsbb/ successfully created!<br />"; --- 48,52 ---- /* Create image directory */ ! PHPWS_File::makeDir($GLOBALS["core"]->home_dir . "images/phpwsbb"); if (is_dir($GLOBALS["core"]->home_dir . "images/phpwsbb")) { $content .= "phpwsBB image directory " . $GLOBALS["core"]->home_dir . "images/phpwsbb/ successfully created!<br />"; |
From: Don S. <ri...@us...> - 2004-06-14 04:16:52
|
Update of /cvsroot/phpwsbb/phpwsbb/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27153/class Modified Files: Message.php Log Message: Removing image dir on uninstall, bumping version for future fixes. Index: Message.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/class/Message.php,v retrieving revision 1.55 retrieving revision 1.56 diff -C2 -d -r1.55 -r1.56 *** Message.php 14 Apr 2004 19:39:38 -0000 1.55 --- Message.php 14 Jun 2004 04:16:43 -0000 1.56 *************** *** 340,343 **** --- 340,344 ---- $this->_body = PHPWS_Text::parseInput($_REQUEST["Message_body"]); + if (PHPWS_Error::isError($error)) { $message = $_SESSION["translate"]->it("You must have a subject for your message."); |
From: Don S. <ri...@us...> - 2004-06-14 04:16:52
|
Update of /cvsroot/phpwsbb/phpwsbb/conf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27153/conf Modified Files: boost.php Log Message: Removing image dir on uninstall, bumping version for future fixes. Index: boost.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/conf/boost.php,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** boost.php 19 May 2004 19:24:06 -0000 1.32 --- boost.php 14 Jun 2004 04:16:43 -0000 1.33 *************** *** 31,35 **** $admin_mod = 1; $active = "on"; ! $version = "0.9.5"; $admin_op = "&PHPWSBB_MAN_OP=list"; $mod_class_files = array("Manager.php"); --- 31,35 ---- $admin_mod = 1; $active = "on"; ! $version = "0.9.6"; $admin_op = "&PHPWSBB_MAN_OP=list"; $mod_class_files = array("Manager.php"); |
From: Don S. <ri...@us...> - 2004-06-14 04:16:51
|
Update of /cvsroot/phpwsbb/phpwsbb/boost In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27153/boost Modified Files: uninstall.php Log Message: Removing image dir on uninstall, bumping version for future fixes. Index: uninstall.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/boost/uninstall.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** uninstall.php 9 Apr 2004 01:01:43 -0000 1.7 --- uninstall.php 14 Jun 2004 04:16:43 -0000 1.8 *************** *** 47,50 **** --- 47,53 ---- $_SESSION["OBJ_user"]->dropUserModule("phpwsbb"); + // Remove image dir + PHPWS_File::rmdir(PHPWS_HOME_DIR . "images/phpwsbb/"); + } else { $content .= "There was a problem writing to the database.<br />"; |
From: Don S. <ri...@us...> - 2004-05-19 19:24:34
|
Update of /cvsroot/phpwsbb/phpwsbb/conf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14009/conf Modified Files: boost.php Log Message: Releasing 0.9.5 for phpws-0.9.3-3 inclusion Index: boost.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/conf/boost.php,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** boost.php 11 May 2004 14:21:49 -0000 1.31 --- boost.php 19 May 2004 19:24:06 -0000 1.32 *************** *** 31,35 **** $admin_mod = 1; $active = "on"; ! $version = "0.9.4"; $admin_op = "&PHPWSBB_MAN_OP=list"; $mod_class_files = array("Manager.php"); --- 31,35 ---- $admin_mod = 1; $active = "on"; ! $version = "0.9.5"; $admin_op = "&PHPWSBB_MAN_OP=list"; $mod_class_files = array("Manager.php"); |
From: Don S. <ri...@us...> - 2004-05-19 19:24:17
|
Update of /cvsroot/phpwsbb/phpwsbb/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14009/docs Modified Files: ChangeLog Log Message: Releasing 0.9.5 for phpws-0.9.3-3 inclusion Index: ChangeLog =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/docs/ChangeLog,v retrieving revision 1.109 retrieving revision 1.110 diff -C2 -d -r1.109 -r1.110 *** ChangeLog 17 May 2004 20:11:37 -0000 1.109 --- ChangeLog 19 May 2004 19:24:07 -0000 1.110 *************** *** 2,5 **** --- 2,7 ---- # $Id$ + *phpwsbb-0.9.5 (19 May 2004) + 17 May 2004; Don Seiler <do...@NO...> Fixed xhtml well-formed bug with HR noshade param. Thanks to Mike Noyes. |
From: Don S. <ri...@us...> - 2004-05-17 20:11:47
|
Update of /cvsroot/phpwsbb/phpwsbb/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20182/templates Modified Files: view.tpl Log Message: Fixing well-formed xhtml bugs in HR Index: view.tpl =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/templates/view.tpl,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** view.tpl 30 Mar 2004 22:50:55 -0000 1.11 --- view.tpl 17 May 2004 20:11:37 -0000 1.12 *************** *** 19,23 **** </span> <!-- END BAN_USERNAME --> ! <hr size="1" width="100%" noshade /> {BODY}<br /> <!-- BEGIN EDITED --> --- 19,23 ---- </span> <!-- END BAN_USERNAME --> ! <hr size="1" width="100%" noshade="noshade" /> {BODY}<br /> <!-- BEGIN EDITED --> |
From: Don S. <ri...@us...> - 2004-05-17 20:11:47
|
Update of /cvsroot/phpwsbb/phpwsbb/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20182/docs Modified Files: ChangeLog Log Message: Fixing well-formed xhtml bugs in HR Index: ChangeLog =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/docs/ChangeLog,v retrieving revision 1.108 retrieving revision 1.109 diff -C2 -d -r1.108 -r1.109 *** ChangeLog 11 May 2004 14:21:49 -0000 1.108 --- ChangeLog 17 May 2004 20:11:37 -0000 1.109 *************** *** 2,5 **** --- 2,8 ---- # $Id$ + 17 May 2004; Don Seiler <do...@NO...> + Fixed xhtml well-formed bug with HR noshade param. Thanks to Mike Noyes. + *phpwsbb-0.9.4 (11 May 2004) |
From: Don S. <ri...@us...> - 2004-05-14 01:27:08
|
Update of /cvsroot/phpwsbb/phpwsbb/conf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31849/conf Modified Files: manager.php Log Message: Correcting spelling Index: manager.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/conf/manager.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** manager.php 11 May 2004 14:21:49 -0000 1.9 --- manager.php 14 May 2004 01:26:58 -0000 1.10 *************** *** 59,63 **** $forumsPaging = array( "op"=>"PHPWSBB_MAN_OP=list", "limit"=>50, ! "secion"=>1, "limits"=>array(5,10,25,50), "back"=>"<<", --- 59,63 ---- $forumsPaging = array( "op"=>"PHPWSBB_MAN_OP=list", "limit"=>50, ! "section"=>1, "limits"=>array(5,10,25,50), "back"=>"<<", *************** *** 95,99 **** $threadsPaging = array( "op"=>"PHPWSBB_MAN_OP=viewforum", "limit"=>50, ! "secion"=>1, "limits"=>array(5,10,25,50), "back"=>"<<", --- 95,99 ---- $threadsPaging = array( "op"=>"PHPWSBB_MAN_OP=viewforum", "limit"=>50, ! "section"=>1, "limits"=>array(5,10,25,50), "back"=>"<<", |
From: Don S. <ri...@us...> - 2004-05-11 14:22:00
|
Update of /cvsroot/phpwsbb/phpwsbb/conf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7276/conf Modified Files: boost.php manager.php Log Message: Fixes for Bug 951537 in which Thread paging is seriously not working. It is now though. Updated version to 0.9.4 for impending bugfix release. Index: manager.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/conf/manager.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** manager.php 9 Apr 2004 01:01:43 -0000 1.8 --- manager.php 11 May 2004 14:21:49 -0000 1.9 *************** *** 93,97 **** /* The paging parameters for the list */ ! $threadsPaging = array( "op"=>"PHPWSBB_MAN_OP=listthreads", "limit"=>50, "secion"=>1, --- 93,97 ---- /* The paging parameters for the list */ ! $threadsPaging = array( "op"=>"PHPWSBB_MAN_OP=viewforum", "limit"=>50, "secion"=>1, Index: boost.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/conf/boost.php,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** boost.php 30 Apr 2004 02:52:58 -0000 1.30 --- boost.php 11 May 2004 14:21:49 -0000 1.31 *************** *** 31,35 **** $admin_mod = 1; $active = "on"; ! $version = "0.9.3"; $admin_op = "&PHPWSBB_MAN_OP=list"; $mod_class_files = array("Manager.php"); --- 31,35 ---- $admin_mod = 1; $active = "on"; ! $version = "0.9.4"; $admin_op = "&PHPWSBB_MAN_OP=list"; $mod_class_files = array("Manager.php"); |
From: Don S. <ri...@us...> - 2004-05-11 14:22:00
|
Update of /cvsroot/phpwsbb/phpwsbb/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7276/docs Modified Files: ChangeLog Log Message: Fixes for Bug 951537 in which Thread paging is seriously not working. It is now though. Updated version to 0.9.4 for impending bugfix release. Index: ChangeLog =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/docs/ChangeLog,v retrieving revision 1.107 retrieving revision 1.108 diff -C2 -d -r1.107 -r1.108 *** ChangeLog 4 May 2004 00:25:15 -0000 1.107 --- ChangeLog 11 May 2004 14:21:49 -0000 1.108 *************** *** 2,5 **** --- 2,10 ---- # $Id$ + *phpwsbb-0.9.4 (11 May 2004) + + 11 May 2004; Don Seiler <do...@NO...> + BUG #951537 Thread paging was seriously b0rked. + 03 May 2004; Don Seiler <do...@NO...> BUG #947328 All php files need to begin with "<?php" not "<?". |
From: Don S. <ri...@us...> - 2004-05-11 14:21:58
|
Update of /cvsroot/phpwsbb/phpwsbb/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7276/class Modified Files: Manager.php Log Message: Fixes for Bug 951537 in which Thread paging is seriously not working. It is now though. Updated version to 0.9.4 for impending bugfix release. Index: Manager.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/class/Manager.php,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** Manager.php 21 Apr 2004 17:40:28 -0000 1.35 --- Manager.php 11 May 2004 14:21:49 -0000 1.36 *************** *** 266,270 **** } ! $this->forum = new PHPWSBB_Forum($_REQUEST["PHPWS_MAN_ITEMS"][0]); $_REQUEST["PHPWSBB_FORUM_OP"] = "view"; }// END FUNC _viewForum --- 266,272 ---- } ! if(isset($_REQUEST["PHPWS_MAN_ITEMS"][0])) ! $this->forum = new PHPWSBB_Forum($_REQUEST["PHPWS_MAN_ITEMS"][0]); ! $_REQUEST["PHPWSBB_FORUM_OP"] = "view"; }// END FUNC _viewForum *************** *** 317,321 **** function _editForum() { ! $this->forum = new PHPWSBB_Forum($_REQUEST["PHPWS_MAN_ITEMS"][0]); $_REQUEST["PHPWSBB_FORUM_OP"] = "edit"; }// END FUNC _editForum --- 319,326 ---- function _editForum() { ! if (isset($_REQUEST["PHPWS_MAN_ITEMS"])) ! $this->forum = new PHPWSBB_Forum($_REQUEST["PHPWS_MAN_ITEMS"][0]); ! else ! $this->forum = new PHPWSBB_Forum(); $_REQUEST["PHPWSBB_FORUM_OP"] = "edit"; }// END FUNC _editForum |
From: Don S. <ri...@us...> - 2004-05-11 14:19:10
|
Update of /cvsroot/phpwsbb/phpwsbb/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5910/class Modified Files: Forum.php Log Message: Fixing php notice Index: Forum.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/class/Forum.php,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** Forum.php 9 Apr 2004 01:01:43 -0000 1.21 --- Forum.php 11 May 2004 14:18:59 -0000 1.22 *************** *** 343,347 **** case "edit": ! $title .= $_SESSION["translate"]->it("Add/Edit Forum"); $content = $_SESSION["PHPWSBB_Manager"]->_menu($this); $content .= $this->_edit(); --- 343,347 ---- case "edit": ! $title = $_SESSION["translate"]->it("Add/Edit Forum"); $content = $_SESSION["PHPWSBB_Manager"]->_menu($this); $content .= $this->_edit(); |
From: Don S. <ri...@us...> - 2004-05-04 00:25:23
|
Update of /cvsroot/phpwsbb/phpwsbb/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9524/docs Modified Files: ChangeLog Log Message: Bug #947328 all php files need to begin with <?php not just <? Index: ChangeLog =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/docs/ChangeLog,v retrieving revision 1.106 retrieving revision 1.107 diff -C2 -d -r1.106 -r1.107 *** ChangeLog 30 Apr 2004 02:52:58 -0000 1.106 --- ChangeLog 4 May 2004 00:25:15 -0000 1.107 *************** *** 2,5 **** --- 2,8 ---- # $Id$ + 03 May 2004; Don Seiler <do...@NO...> + BUG #947328 All php files need to begin with "<?php" not "<?". + *phpwsbb-0.9.3 (29 Apr 2004) |
From: Don S. <ri...@us...> - 2004-05-04 00:25:23
|
Update of /cvsroot/phpwsbb/phpwsbb/boost In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9524/boost Modified Files: update.php Log Message: Bug #947328 all php files need to begin with <?php not just <? Index: update.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/boost/update.php,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** update.php 9 Apr 2004 01:01:43 -0000 1.30 --- update.php 4 May 2004 00:25:14 -0000 1.31 *************** *** 1,3 **** ! <? /** * phpwsBB --- 1,3 ---- ! <?php /** * phpwsBB |
From: Don S. <ri...@us...> - 2004-04-30 02:53:06
|
Update of /cvsroot/phpwsbb/phpwsbb/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26117/docs Modified Files: ChangeLog Log Message: Releasing 0.9.3 for thread menu thing Index: ChangeLog =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/docs/ChangeLog,v retrieving revision 1.105 retrieving revision 1.106 diff -C2 -d -r1.105 -r1.106 *** ChangeLog 21 Apr 2004 17:40:29 -0000 1.105 --- ChangeLog 30 Apr 2004 02:52:58 -0000 1.106 *************** *** 2,5 **** --- 2,12 ---- # $Id$ + *phpwsbb-0.9.3 (29 Apr 2004) + + 29 Apr 2004; Don Seiler <do...@NO...> + Reinstating the bottom Thread menu since I really miss it. I'll + have to figure out how to make it template-based when I feel + like being smart. + *phpwsbb-0.9.2 (21 Apr 2004) |