|
From: Verdon V. <ve...@us...> - 2008-11-26 14:42:10
|
Update of /cvsroot/phpwebsite-comm/modules/finc/class In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv10782/class Modified Files: FINC_File.php FINC_Forms.php Log Message: 1.1.0 updates Index: FINC_File.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/finc/class/FINC_File.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** FINC_File.php 19 May 2008 23:36:26 -0000 1.1.1.1 --- FINC_File.php 26 Nov 2008 14:42:03 -0000 1.2 *************** *** 182,186 **** $vars['aop'] = 'delete_file'; $js['ADDRESS'] = PHPWS_Text::linkAddress('finc', $vars, true); ! $js['QUESTION'] = sprintf(dgettext('finc', 'Are you sure you want to delete the file %s?\n\nOnly the databse record will be destroyed. You will still have to physically remove "%s" from your file system.'), $this->getTitle(), $this->getPath()); $js['LINK'] = dgettext('finc', 'Delete'); $links[] = javascript('confirm', $js); --- 182,186 ---- $vars['aop'] = 'delete_file'; $js['ADDRESS'] = PHPWS_Text::linkAddress('finc', $vars, true); ! $js['QUESTION'] = sprintf(dgettext('finc', 'Are you sure you want to delete the file %s?\n\nOnly the databse record will be destroyed. You will still have to physically remove "%s" from your file system.'), $this->getTitle(true), $this->getPath()); $js['LINK'] = dgettext('finc', 'Delete'); $links[] = javascript('confirm', $js); *************** *** 224,234 **** $key->setItemName('file'); $key->setItemId($this->id); ! ! if (MOD_REWRITE_ENABLED) { ! $key->setUrl('finc/' . $this->id); ! } else { ! $key->setUrl('index.php?module=finc&id=' . $this->id); ! } ! $key->active = (int)$this->active; $key->setTitle($this->title); --- 224,228 ---- $key->setItemName('file'); $key->setItemId($this->id); ! $key->setUrl($this->viewLink(true)); $key->active = (int)$this->active; $key->setTitle($this->title); *************** *** 250,258 **** ! function viewLink() { ! return PHPWS_Text::rewriteLink($this->title, 'finc', $this->id); ! } --- 244,260 ---- ! function viewLink($bare=false) { ! PHPWS_Core::initCoreClass('Link.php'); ! $link = new PHPWS_Link($this->title, 'finc', array('id'=>$this->id)); ! $link->rewrite = MOD_REWRITE_ENABLED; ! ! if ($bare) { ! return $link->getAddress(); ! } else { ! return $link->get(); ! } + } Index: FINC_Forms.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/finc/class/FINC_Forms.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** FINC_Forms.php 19 May 2008 23:36:26 -0000 1.1.1.1 --- FINC_Forms.php 26 Nov 2008 14:42:03 -0000 1.2 *************** *** 165,179 **** { $tpl['TITLE'] = dgettext('finc', 'Important Information'); ! $tpl['INFO_1_LABEL'] = dgettext('finc', 'About this module:'); ! $tpl['INFO_1'] = dgettext('finc', 'This is the first release of finc for the new 1.x series phpwebsite. It\'s pretty simple and there may not be any further releases, unless bugs are found. I wrote this for a specific need I had and thought it may be of use to others also.'); ! $tpl['INFO_2_LABEL'] = dgettext('finc', 'Caution'); ! $tpl['INFO_2'] = dgettext('finc', 'This module could be dangerous. You are expected to have some idea of what you are doing, if you are going to use it. It could be used to do nasty or stupid things. I have intentionally not included file upload abilites to it. If you do not have access to the server, you should not be using this.'); ! $tpl['INFO_3_LABEL'] = null; ! $tpl['INFO_3'] = null; ! $tpl['INFO_4_LABEL'] = null; ! $tpl['INFO_4'] = null; ! $tpl['INFO_5_LABEL'] = null; ! $tpl['INFO_5'] = null; $tpl['DONATE'] = sprintf(dgettext('finc', 'If you would like to help out with the ongoing development of finc, or other modules by Verdon Vaillancourt, %s click here to donate %s (opens in new browser window).'), '<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=donations%40verdon%2eca&item_name=Finc%20Module%20Development&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=CA&bn=PP%2dDonationsBF&charset=UTF%2d8" target="new">', '</a>'); --- 165,179 ---- { + $filename = 'mod/finc/docs/README'; + if (@fopen($filename, "rb")) { + $handle = fopen($filename, "rb"); + $readme = fread($handle, filesize($filename)); + fclose($handle); + } else { + $readme = dgettext('finc', 'Sorry, the readme file does not exist.'); + } + $tpl['TITLE'] = dgettext('finc', 'Important Information'); ! $tpl['INFO'] = $readme; $tpl['DONATE'] = sprintf(dgettext('finc', 'If you would like to help out with the ongoing development of finc, or other modules by Verdon Vaillancourt, %s click here to donate %s (opens in new browser window).'), '<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=donations%40verdon%2eca&item_name=Finc%20Module%20Development&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=CA&bn=PP%2dDonationsBF&charset=UTF%2d8" target="new">', '</a>'); |