phpslash-commit Mailing List for phpSlash (Page 13)
Brought to you by:
joestewart,
nhruby
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(11) |
Nov
(59) |
Dec
(60) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(52) |
Feb
(77) |
Mar
(118) |
Apr
(76) |
May
(106) |
Jun
(145) |
Jul
(9) |
Aug
(15) |
Sep
(78) |
Oct
(83) |
Nov
(105) |
Dec
(51) |
2003 |
Jan
(105) |
Feb
(100) |
Mar
(111) |
Apr
(149) |
May
(95) |
Jun
(56) |
Jul
(8) |
Aug
(2) |
Sep
|
Oct
(22) |
Nov
(117) |
Dec
(6) |
2004 |
Jan
(1) |
Feb
|
Mar
(3) |
Apr
(25) |
May
|
Jun
(11) |
Jul
(26) |
Aug
(85) |
Sep
(119) |
Oct
(312) |
Nov
(271) |
Dec
(5) |
2005 |
Jan
(6) |
Feb
|
Mar
|
Apr
(12) |
May
(7) |
Jun
(8) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Joe S. <joe...@us...> - 2004-11-04 23:09:56
|
Update of /cvsroot/phpslash/phpslash-dev In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6350/phpslash-dev Modified Files: ChangeLog Log Message: allow template tags in story text and body. Also close bug #[ 797098 ] Eats Backslashes. Index: ChangeLog =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/ChangeLog,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** ChangeLog 29 Oct 2004 22:13:40 -0000 1.19 --- ChangeLog 4 Nov 2004 23:09:26 -0000 1.20 *************** *** 1,3142 **** ! 2004-10-29 18:12 lems1 * include/modules/auth/authtypes/slashAuthLDAP.class: works better. ! still double-login for newly registered users, but preauth works. ! seems like auth expired is set to a wrong number and this is why we ! have to relogin? ! 2004-10-29 17:57 lems1 * include/modules/auth/authtypes/slashAuthLDAP.class: attempts to [...6662 lines suppressed...] ! public_html/images/topics/topicredhat.gif, ! public_html/images/topics/topicscience.gif, ! public_html/images/topics/topicsgi.gif, ! public_html/images/topics/topicslashdot.gif, ! public_html/images/topics/topicspam.jpg, ! public_html/images/topics/topicstarwars.gif, ! public_html/images/topics/topicsun.gif, ! public_html/images/topics/topicsuse.gif, ! public_html/images/topics/topictech2.jpg, ! public_html/images/topics/topictv.jpg, ! public_html/images/topics/topicunix.jpg, ! public_html/images/topics/topicus.gif, ! public_html/images/topics/topicwine.gif, ! public_html/images/topics/topicx.jpg, ! public_html/images/topics/topicxmas.jpg, ! public_html/styles/basic.css, public_html/styles/xhtmlb.css, ! scripts/db_xfer.php3.disabled, scripts/url_test.php, ! tables/0.7/65_to_7.sql, tables/0.7/slash-all.sql: Initial ! revision |
From: Joe S. <joe...@us...> - 2004-11-04 23:02:08
|
Update of /cvsroot/phpslash/phpslash-dev/include/modules/story In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4674/phpslash-dev/include/modules/story Modified Files: Story_admin.class Story_base.class Log Message: allow template tags in story text and body. Also close bug #[ 797098 ] Eats Backslashes. Index: Story_admin.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/include/modules/story/Story_admin.class,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Story_admin.class 23 Oct 2004 17:20:02 -0000 1.7 --- Story_admin.class 4 Nov 2004 23:01:57 -0000 1.8 *************** *** 815,820 **** 'ORDER_NO' => stripslashes($this->db->Record['order_no']), 'DEPT' => stripslashes($this->db->Record['dept']), ! 'INTROTEXT' => htmlspecialchars(stripslashes($this->db->Record['intro_text'])), ! 'BODYTEXT' => htmlspecialchars(stripslashes($this->db->Record['body_text'])), 'TITLE' => stripslashes($this->db->Record['title']), 'TIME' => $this->db->Record['time'], --- 815,820 ---- 'ORDER_NO' => stripslashes($this->db->Record['order_no']), 'DEPT' => stripslashes($this->db->Record['dept']), ! 'INTROTEXT' => str_replace('}', '}',$this->db->Record['intro_text']), ! 'BODYTEXT' => str_replace('}', '}',$this->db->Record['body_text']), 'TITLE' => stripslashes($this->db->Record['title']), 'TIME' => $this->db->Record['time'], Index: Story_base.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/include/modules/story/Story_base.class,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** Story_base.class 29 Sep 2004 14:21:49 -0000 1.11 --- Story_base.class 4 Nov 2004 23:01:57 -0000 1.12 *************** *** 101,106 **** $order_no = stripslashes($this->db->Record["order_no"]); $dept = stripslashes($this->db->Record["dept"]); ! $intro_text = stripslashes($this->db->Record["intro_text"]); ! $body_text = stripslashes($this->db->Record["body_text"]); if ($mode == "full") { --- 101,108 ---- $order_no = stripslashes($this->db->Record["order_no"]); $dept = stripslashes($this->db->Record["dept"]); ! // $intro_text = stripslashes($this->db->Record["intro_text"]); ! // $body_text = stripslashes($this->db->Record["body_text"]); ! $intro_text = $this->db->Record["intro_text"]; ! $body_text = $this->db->Record["body_text"]; if ($mode == "full") { *************** *** 403,411 **** case 'story_id': case 'title': ! case 'intro_text': ! case 'body_text': case 'order_no': case 'dept': $value = stripslashes($value); default: $stories_ary[$i][$key] = $value; --- 405,415 ---- case 'story_id': case 'title': ! // case 'intro_text': ! // case 'body_text': case 'order_no': case 'dept': $value = stripslashes($value); + case 'intro_text': + case 'body_text': default: $stories_ary[$i][$key] = $value; *************** *** 524,530 **** $ary['dept'] = eregi_replace(' ','-',addslashes($ary['dept'])); $ary['order_no'] = eregi_replace(' ','-',addslashes($ary['order_no'])); ! $ary['intro_text'] = addslashes(trim($ary['intro_text'])); ! $ary['body_text'] = addslashes(trim($ary['body_text'])); ! // body_text_file comes from a file uploaded to us. // Make sure that your php.ini has the following enabled: --- 528,537 ---- $ary['dept'] = eregi_replace(' ','-',addslashes($ary['dept'])); $ary['order_no'] = eregi_replace(' ','-',addslashes($ary['order_no'])); ! $ary['intro_text'] = trim($ary['intro_text']); ! $ary['body_text'] = trim($ary['body_text']); ! if (!get_magic_quotes_gpc()) { ! $ary['intro_text'] = addslashes($ary['intro_text']); ! $ary['body_text'] = addslashes($ary['body_text']); ! } // body_text_file comes from a file uploaded to us. // Make sure that your php.ini has the following enabled: |
From: Joe S. <joe...@us...> - 2004-11-04 23:02:07
|
Update of /cvsroot/phpslash/phpslash-dev In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4674/phpslash-dev Modified Files: CHANGES Log Message: allow template tags in story text and body. Also close bug #[ 797098 ] Eats Backslashes. Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/CHANGES,v retrieving revision 1.136 retrieving revision 1.137 diff -C2 -d -r1.136 -r1.137 *** CHANGES 4 Nov 2004 20:17:03 -0000 1.136 --- CHANGES 4 Nov 2004 23:01:56 -0000 1.137 *************** *** 21,24 **** --- 21,26 ---- of html. If view is in url the entire page is displayed by the module. + Story_base.class, Story_admin.class - allow template tags + in story text and body. Also close bug #[ 797098 ] Eats Backslashes. 2004-November 1 Joe Stewart <joe...@us... |
From: Joe S. <joe...@us...> - 2004-11-04 20:17:13
|
Update of /cvsroot/phpslash/phpslash-dev/include/modules/block/blocktypes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29826/phpslash-dev/include/modules/block/blocktypes Modified Files: Block_render_html.class Block_render_page.class Block_render_template.class Log Message: html blocks accept template tags, index page accepts view argument like backend.php Index: Block_render_html.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/include/modules/block/blocktypes/Block_render_html.class,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Block_render_html.class 26 Nov 2003 17:26:53 -0000 1.2 --- Block_render_html.class 4 Nov 2004 20:17:04 -0000 1.3 *************** *** 18,37 **** $this->output = $block_info["cache_data"]; - return 1; ! /* ! $sl_q = pslNew("slashDB"); ! $query = "SELECT cache_data ! FROM psl_block ! WHERE id = " . $block_info["id"]; ! $sl_q->query($query); ! if ($sl_q->next_record()) { ! $this->output = $sl_q->f("cache_data"); ! return 1; ! } else { ! return 0; } ! unset($db); ! */ } --- 18,49 ---- $this->output = $block_info["cache_data"]; ! if(strpos($block_info["cache_data"], '{')){ ! if(array_key_exists('template', $GLOBALS) && is_object($GLOBALS['template'])) { ! $template = $GLOBALS['template']; ! } else { ! $template = pslNew("slashTemplate"); ! } ! $template->debug = 0; ! $template->set_var('template', $block_info["cache_data"]); ! ! $template->set_var(array( ! 'SKIN' => $this->psl['skin'], ! 'PHP_SELF' => $this->psl['phpself'], ! 'ROOTDIR' => $this->psl['rooturl'], ! 'IMAGEDIR' => $this->psl['imageurl'], ! 'ROOTURL' => $this->psl['rooturl'], ! 'IMAGEURL' => $this->psl['imageurl'], ! 'QUERY_STRING' => $_SERVER['QUERY_STRING'] ! )); ! ! foreach( $block_info["block_options"] as $key => $val) { ! $template->set_var(strtoupper($key), $block_info['block_options'][$key]); ! } ! ! $this->output = $template->parse('OUT','template'); } ! return true; ! } Index: Block_render_page.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/include/modules/block/blocktypes/Block_render_page.class,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Block_render_page.class 18 Oct 2004 17:14:00 -0000 1.6 --- Block_render_page.class 4 Nov 2004 20:17:04 -0000 1.7 *************** *** 59,65 **** $bottomblocks = $block->getBlocks($ary, "bottom"); if (empty($leftblocks)) { if (empty($rightblocks)) { - // $centerblocks = $block->getBlocks($ary); $tplfile = "index1col.tpl"; } else { --- 59,69 ---- $bottomblocks = $block->getBlocks($ary, "bottom"); + // If the view is let module control page + if(array_key_exists('view', $GLOBALS['ary'])) { + $this->output = $centerblocks; + return true; + } if (empty($leftblocks)) { if (empty($rightblocks)) { $tplfile = "index1col.tpl"; } else { *************** *** 94,97 **** --- 98,103 ---- 'ROOTDIR' => $this->psl['rooturl'], 'IMAGEDIR' => $this->psl['imageurl'], + 'ROOTURL' => $this->psl['rooturl'], + 'IMAGEURL' => $this->psl['imageurl'], 'BREADCRUMB' => $breadcrumb, // 'STORY_COLUMN' => $allstories, Index: Block_render_template.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/include/modules/block/blocktypes/Block_render_template.class,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Block_render_template.class 4 Jun 2003 20:02:45 -0000 1.2 --- Block_render_template.class 4 Nov 2004 20:17:04 -0000 1.3 *************** *** 37,44 **** $template->set_var(array( 'SKIN' => $this->psl['skin'], 'ROOTDIR' => $this->psl['rooturl'], ! 'IMAGEDIR' => $this->psl['imageurl'] )); $this->output = $template->parse('OUT','template'); return true; --- 37,52 ---- $template->set_var(array( 'SKIN' => $this->psl['skin'], + 'PHP_SELF' => $this->psl['phpself'], 'ROOTDIR' => $this->psl['rooturl'], ! 'IMAGEDIR' => $this->psl['imageurl'], ! 'ROOTURL' => $this->psl['rooturl'], ! 'IMAGEURL' => $this->psl['imageurl'], ! 'QUERY_STRING' => $_SERVER['QUERY_STRING'] )); + foreach( $block_info["block_options"] as $key => $val) { + $template->set_var(strtoupper($key), $block_info['block_options'][$key]); + } + $this->output = $template->parse('OUT','template'); return true; |
From: Joe S. <joe...@us...> - 2004-11-04 20:17:13
|
Update of /cvsroot/phpslash/phpslash-dev/include/modules/story In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29826/phpslash-dev/include/modules/story Modified Files: index.php Added Files: backend.php Log Message: html blocks accept template tags, index page accepts view argument like backend.php --- NEW FILE: backend.php --- <?php /* backend.php -> Methods for exporting information */ /* $Id: backend.php,v 1.1 2004/11/04 20:17:03 joestewart Exp $ */ /* * pass the query in the "Source Url" form field in the format of: * * option1=setting1&option2=setting2 * Available query options: * * section = section name * topic = topic name * author = author name * date = starting date in "to_days" format * start = "starting" point [0] * max = maximum returned [15] * order = [time], hits, title, etc. * asc = ASC, [DESC] ( Ascending or Descending) * query = urlencoded text string * * view = different export formats rss91 - RSS 0.91 rss92 - RSS 0.92 rss1 - RSS 1.0 [rss2] - RSS 2.0 - default atom - Atom 0.3 // html - fancybox txt - simple text output of title and intro block - text delimited by %% js - javascript jsdata - javascript array mozilla - for adding to Netscape 6 My Sidebar opml - OPML (http://radio.userland.com) wml - WML - for WAP phones xhtmlb - XHTML Basic * d = description - this is the intro text. [d] - include description - default [s] - site name [l] - site name plus description [0] - empty description Some of the template views and options are based on those contained in HPE (http://sourceforge.net/projects/hpe/). Thanks to Mike Krus. */ global $_PSL, $ary, $pagetitle; // Make sure we don't propagate errors out the feed :) if ($_PSL['debug']) { ini_set('error_reporting', 'E_ALL'); } else { ini_set('error_reporting', 'E_NONE'); } AddClassRequirement("story_base",$_PSL['moduledir'] . "/story/Story_base.class"); AddClassRequirement("story","story_base"); AddClassRequirement("story",$_PSL['moduledir'] . "/story/Story.class"); AddClassRequirement("story_plugin_i",$_PSL['moduledir'] ."/". $_PSL['module']['Story'] ."/Story_plugin_i.class"); // Object Creation $story = pslNew("Story"); $ary = array(); if(!empty($_GET)) { $ary = clean($_GET); } // Get those stories $stories = $story->extractStories($ary); // What to build for output switch( $ary['view']) { case 'avantgo': $viewtpl = 'backendAV.tpl'; break; case 'block': $viewtpl = 'backendBlock.tpl'; break; case 'html': $viewtpl = 'backendHTML.tpl'; break; case 'js': $viewtpl = 'backendJS.tpl'; header("Content-type: application/x-javascript"); break; case 'jsdata': $viewtpl = 'backendJSData.tpl'; header("Content-type: application/x-javascript"); break; case 'mozilla': $viewtpl = 'backendMozilla.tpl'; $ary['target'] = '_content'; break; case 'opml': $viewtpl = 'backendOpml.tpl'; header("Content-type: text/xml"); break; case 'rss91': $viewtpl = 'backendRSS91.tpl'; header("Content-type: text/xml"); break; case 'rss92': $viewtpl = 'backendRSS92.tpl'; header("Content-type: text/xml"); break; case 'txt': $viewtpl = 'backendTxt.tpl'; break; case 'wml': $viewtpl = 'backendWml.tpl'; header("Content-type: text/vnd.wap.wml"); break; case 'xhtmlb': $viewtpl = 'backendXHTMLb.tpl'; header("Content-type: text/html"); break; case 'rss': case 'rss1': default: $viewtpl = 'backendRSS1.tpl'; // RSS-1.0 needs a extra listing. $link_ary = array(); break; } // Make a target (only used by Mozilla,JS and JSdata) if(empty($ary['target'])) { $ary['target'] = '_self'; } // The date.. $date = date("H:i m:d:y T"); // Create the template object, and set some options for silent running $template = pslNew("slashTemplate"); $template->debug = 0; $template->set_unknowns('remove'); $template->halt_on_error = 'no'; // Set the template file we need to use $template->set_file('storiesbackend', $viewtpl); $count = count($stories); // Start giving placeholders, these aren't parsed till later so // placeholders that crop up during the following set_block loops // will be parsed with these variables. $template->set_var(array( 'SKIN' => $_PSL['skin'], 'SITE_NAME' => $_PSL['site_name'], 'SITE_TITLE' => $_PSL['site_title'], 'SITE_SLOGAN' => $_PSL['site_slogan'], 'SITE_OWNER' => $_PSL['site_owner'], 'SITE_HOST' => $_SERVER['HTTP_HOST'], 'DESCRIPTION' => $_PSL['metatags']['description'], 'PHP_SELF' => $_PSL['phpself'], 'ROOTDIR' => $_PSL['rooturl'], 'ROOTURL' => $_PSL['rooturl'], 'DATE' => $date, 'IMAGEDIR' => $_PSL['imageurl'], 'IMAGEURL' => $_PSL['imageurl'], 'TARGET' => $ary['target'], 'COUNT' => $count )); // Process the "each_story" block in the template $template->set_block("storiesbackend", "each_story", "stories"); for ($i = 0 ; $i < $count; $i++) { switch( $ary['d']) { case '0': $description = ''; break; case 's': $description = $_PSL['site_name'] ; break; case 'l': $description = $_PSL['site_name'] . ' - '; $description .= htmlspecialchars(strip_tags($stories[$i]["intro_text"])); // $description .= format_mail(eregi_replace("<([font][^>]*)>", "",$stories[$i]["intro_text"]),"80", "scrub"); break; case 'd': case '1': default: $description = htmlspecialchars(strip_tags($stories[$i]["intro_text"])); break; } $template->set_var(array( 'STORY_ID' => $stories[$i]['story_id'], 'TITLE' => htmlspecialchars(strip_tags($stories[$i]['title'])), 'TITLE_HTML' => $stories[$i]['title'], 'INTRO_TEXT' => $description, 'INTRO_TEXT_HTML' => $stories[$i]['intro_text'], 'IDX' => $i, 'DATEF' => $stories[$i]['datef'], 'LINK' => $_PSL['rooturl'] . '/article.php?story_id=' . $stories[$i][story_id] )); // Grab a copy of the link stuff we need for RSS-1.0 if ($ary['view'] == 'rss1') { $link_ary[] = array('storyid' => $stories[$i]['story_id']); } $template->parse('stories', 'each_story', true); } // RSS-1.0 requires a item listing in the <channel> tag if ($ary['view'] == 'rss1') { $template->set_block('storiesbackend', 'each_item', 'items'); $link_ary_cnt = count($link_ary); for ($i = 0; $i < $link_ary_cnt; $i++) { $template->set_var(array( 'STORY_ID' => $link_ary[$i]['storyid'] )); $template->parse('items', 'each_item', true); } } // Send this stuff to the client $content = $template->parse('OUT','storiesbackend'); return $content; ?> Index: index.php =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/include/modules/story/index.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** index.php 14 Oct 2004 17:55:32 -0000 1.9 --- index.php 4 Nov 2004 20:17:03 -0000 1.10 *************** *** 12,15 **** --- 12,19 ---- // $xsiteobject = pslgetText('Home Page'); // This Defines The META Tag Object Type + if(array_key_exists('view', $ary)) { + return include($_PSL['moduledir'] ."/". $_PSL['module']['Story'] ."/backend.php"); + } + $story = pslNew("Story"); |
From: Joe S. <joe...@us...> - 2004-11-04 20:17:13
|
Update of /cvsroot/phpslash/phpslash-dev/public_html In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29826/phpslash-dev/public_html Modified Files: backend.php Log Message: html blocks accept template tags, index page accepts view argument like backend.php Index: backend.php =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/backend.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** backend.php 1 Nov 2004 17:35:44 -0000 1.3 --- backend.php 4 Nov 2004 20:17:03 -0000 1.4 *************** *** 4,239 **** /* $Id$ */ ! /* ! * pass the query in the "Source Url" form field in the format of: ! * ! * option1=setting1&option2=setting2 ! * Available query options: ! * ! * section = section name ! * topic = topic name ! * author = author name ! * date = starting date in "to_days" format ! * start = "starting" point [0] ! * max = maximum returned [15] ! * order = [time], hits, title, etc. ! * asc = ASC, [DESC] ( Ascending or Descending) ! * query = urlencoded text string ! * ! * view = different export formats ! rss91 - RSS 0.91 ! rss92 - RSS 0.92 ! [rss1] - RSS 1.0 - default ! html - fancybox ! txt - simple text output of title and intro ! block - text delimited by %% ! js - javascript ! jsdata - javascript array ! mozilla - for adding to Netscape 6 My Sidebar ! opml - OPML (http://radio.userland.com) ! wml - WML - for WAP phones ! xhtmlb - XHTML Basic ! * d = description - this is the intro text. ! // TODO: nh asks: Do we really need this? ! [d] - include description - default ! [s] - site name ! [l] - site name plus description ! [0] - empty description ! ! Some of the template views and options are based on those contained in HPE ! (http://sourceforge.net/projects/hpe/). Thanks to Mike Krus. ! */ ! ! // Get our config ! require("config.php"); ! ! // Make sure we don't propagate errors out the feed :) ! if ($_PSL['debug']) { ! ini_set('error_reporting', 'E_ALL'); ! } else { ! ini_set('error_reporting', 'E_NONE'); ! } ! ! AddClassRequirement("story_base",$_PSL['moduledir'] . "/story/Story_base.class"); ! AddClassRequirement("story","story_base"); ! AddClassRequirement("story",$_PSL['moduledir'] . "/story/Story.class"); ! AddClassRequirement("story_plugin_i",$_PSL['moduledir'] ."/". $_PSL['module']['Story'] ."/Story_plugin_i.class"); ! // Object Creation ! $story = pslNew("Story"); ! // Parse cmd line variables into array ! $ary = array(); ! if(!empty($HTTP_GET_VARS)) { ! $ary = clean($HTTP_GET_VARS); } ! // Get those stories ! $stories = $story->extractStories($ary); ! ! // What to build for output ! switch( $ary['view']) { ! case 'atom': ! $viewtpl = 'backendAtom.tpl'; ! header("Content-type: text/xml"); ! break; ! case 'avantgo': ! $viewtpl = 'backendAV.tpl'; ! break; ! case 'block': ! $viewtpl = 'backendBlock.tpl'; ! break; ! case 'html': ! $viewtpl = 'backendHTML.tpl'; ! break; ! case 'js': ! $viewtpl = 'backendJS.tpl'; ! header("Content-type: application/x-javascript"); ! break; ! case 'jsdata': ! $viewtpl = 'backendJSData.tpl'; ! header("Content-type: application/x-javascript"); ! break; ! case 'mozilla': ! $viewtpl = 'backendMozilla.tpl'; ! $ary['target'] = '_content'; ! break; ! case 'opml': ! $viewtpl = 'backendOpml.tpl'; ! header("Content-type: text/xml"); ! break; ! case 'rss91': ! $viewtpl = 'backendRSS91.tpl'; ! header("Content-type: text/xml"); ! break; ! case 'rss92': ! $viewtpl = 'backendRSS92.tpl'; ! header("Content-type: text/xml"); ! break; ! case 'rss1': ! $viewtpl = 'backendRSS1.tpl'; ! // RSS-1.0 needs a extra listing. ! $link_ary = array(); ! header("Content-type: text/xml"); ! break; ! case 'txt': ! $viewtpl = 'backendTxt.tpl'; ! break; ! case 'wml': ! $viewtpl = 'backendWml.tpl'; ! header("Content-type: text/vnd.wap.wml"); ! break; ! case 'xhtmlb': ! $viewtpl = 'backendXHTMLb.tpl'; ! header("Content-type: text/html"); ! break; ! case 'rss': ! case 'rss2': ! default: ! $viewtpl = 'backendRSS2.tpl'; ! header("Content-type: text/xml"); ! break; ! } ! // Make a target (only used by Mozilla,JS and JSdata) ! if(empty($ary['target'])) { ! $ary['target'] = '_self'; } ! // The date.. ! $date = date("H:i m:d:y T"); ! ! // Create the template object, and set some options for silent running ! $template = pslNew("slashTemplate"); ! $template->debug = 0; ! $template->set_unknowns('remove'); ! $template->halt_on_error = 'no'; ! ! // Set the template file we need to use ! $template->set_file('storiesbackend', $viewtpl); ! ! $count = count($stories); ! ! // Start giving placeholders, these aren't parsed till later so ! // placeholders that crop up during the following set_block loops ! // will be parsed with these variables. ! $template->set_var(array( ! 'SKIN' => $_PSL['skin'], ! 'SITE_NAME' => $_PSL['site_name'], ! 'SITE_TITLE' => $_PSL['site_title'], ! 'SITE_SLOGAN' => $_PSL['site_slogan'], ! 'SITE_OWNER' => $_PSL['site_owner'], ! 'SITE_HOST' => $HTTP_HOST, // TODO: nh asks: Will this be around with register_globals=Off? ! 'DESCRIPTION' => $_PSL['metatags']['description'], ! 'PHP_SELF' => $_PSL['phpself'], ! 'ROOTDIR' => $_PSL['rooturl'], ! 'ROOTURL' => $_PSL['rooturl'], ! 'DATE' => $date, ! 'IMAGEDIR' => $_PSL['imageurl'], ! 'TARGET' => $ary['target'], ! 'COUNT' => $count ! )); ! ! // Process the "each_story" block in the template ! $template->set_block("storiesbackend", "each_story", "stories"); ! for ($i = 0 ; $i < $count; $i++) { ! switch( $ary['d']) { ! case '0': ! $description = ''; ! break; ! case 's': ! $description = $_PSL['site_name'] ; ! break; ! case 'l': ! $description = $_PSL['site_name'] . ' - '; ! $description .= htmlspecialchars(strip_tags($stories[$i]["intro_text"])); ! // $description .= format_mail(eregi_replace("<([font][^>]*)>", "",$stories[$i]["intro_text"]),"80", "scrub"); ! break; ! case 'd': ! case '1': ! default: ! $description = htmlspecialchars(strip_tags($stories[$i]["intro_text"])); ! // $description = format_mail(eregi_replace("<([font][^>]*)>", "",$stories[$i]["intro_text"]),"80", "scrub"); ! break; ! } ! ! $template->set_var(array( ! 'STORY_ID' => $stories[$i]['story_id'], ! 'NAME' => $stories[$i]['name'], ! 'URL' => $stories[$i]['url'], ! 'TITLE' => htmlspecialchars(strip_tags($stories[$i]['title'])), ! 'TITLE_HTML' => $stories[$i]['title'], ! 'INTRO_TEXT' => $description, ! 'INTRO_TEXT_HTML' => $stories[$i]['intro_text'], ! 'BODY_TEXT' => htmlspecialchars(strip_tags($stories[$i]['body_text'])), ! 'BODY_TEXT_HTML' => $stories[$i]['body_text'], ! 'IDX' => $i, ! 'DATEF' => $stories[$i]['datef'], ! 'LINK' => $_PSL['rooturl'] . '/article.php?story_id=' . $stories[$i][story_id] ! )); ! ! ! // Grab a copy of the link stuff we need for RSS-1.0 ! if ($ary['view'] = 'rss1') { ! $link_ary[] = array('storyid' => $stories[$i]['story_id']); ! } ! $template->parse('stories', 'each_story', true); ! } ! // RSS-1.0 requires a item listing in the <channel> tag ! if ($ary['view'] = 'rss1') { ! $template->set_block('storiesbackend', 'each_item', 'items'); ! $link_ary_cnt = count($link_ary); ! for ($i = 0; $i < $link_ary_cnt; $i++) { ! $template->set_var(array( ! 'STORY_ID' => $link_ary[$i]['storyid'] ! )); ! $template->parse('items', 'each_item', true); ! } ! } ! // Send this stuff to the client ! $template->parse('OUT','storiesbackend'); ! $template->p('OUT'); ?> --- 4,35 ---- /* $Id$ */ ! require('config.php'); ! $ary['module'] = 'Story'; ! $ary['page'] = 'backend'; ! if(!isset($ary['view'])) { ! $ary['view'] = 'rss2'; } ! $pagetitle = pslgetText($ary['module']); // The name to be displayed in the header ! $xsiteobject = pslgetText($ary['module'] .' Page'); // This Defines The META Tag Object Type ! // Show login form if requested ! if(!empty($HTTP_GET_VARS['login'])) { ! $auth->login_if($HTTP_GET_VARS['login']); } ! $_PSL['metatags']['object'] = $xsiteobject; ! // Is the page specified? - if not use module index.php ! $modulefilename = 'index.php'; ! // setup the block module ! $content = include($_PSL['moduledir'] ."/". $_PSL['module']['Block'] ."/". $modulefilename); ! // show page ! echo $content; + page_close(); ?> |
From: Joe S. <joe...@us...> - 2004-11-04 20:17:12
|
Update of /cvsroot/phpslash/phpslash-dev/include/modules/block In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29826/phpslash-dev/include/modules/block Modified Files: Block_admin.class Log Message: html blocks accept template tags, index page accepts view argument like backend.php Index: Block_admin.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/include/modules/block/Block_admin.class,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Block_admin.class 22 Oct 2004 20:12:56 -0000 1.6 --- Block_admin.class 4 Nov 2004 20:17:03 -0000 1.7 *************** *** 193,197 **** 'SOURCE_URL' => $this->block_info["source_url"], 'EXPIRE_LENGTH' => $this->block_info["expire_length"], ! 'CACHE_DATA' => $this->block_info["cache_data"], 'ORDERNUM' => $this->block_info["ordernum"], 'BLOCK_ID' => $id, --- 193,197 ---- 'SOURCE_URL' => $this->block_info["source_url"], 'EXPIRE_LENGTH' => $this->block_info["expire_length"], ! 'CACHE_DATA' => str_replace('}', '}', $this->block_info["cache_data"]), 'ORDERNUM' => $this->block_info["ordernum"], 'BLOCK_ID' => $id, |
From: Joe S. <joe...@us...> - 2004-11-04 20:17:12
|
Update of /cvsroot/phpslash/phpslash-dev In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29826/phpslash-dev Modified Files: CHANGES Log Message: html blocks accept template tags, index page accepts view argument like backend.php Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/CHANGES,v retrieving revision 1.135 retrieving revision 1.136 diff -C2 -d -r1.135 -r1.136 *** CHANGES 1 Nov 2004 17:35:42 -0000 1.135 --- CHANGES 4 Nov 2004 20:17:03 -0000 1.136 *************** *** 13,16 **** --- 13,25 ---- 9 - Removal of something (kill -9 :) + 2004-November 4 Joe Stewart <joe...@us... + [F] - Block_render_html.class, Block_render_template.class, + Block_admin.class - html blocks accept template tags. + backend.php - moved functionality to story/backend. + Block_render_page.class - index page accepts view argument + to trigger alternate outputs such as rss and atom instead + of html. If view is in url the entire page is displayed + by the module. + 2004-November 1 Joe Stewart <joe...@us... [FT] - backend.php, backendAtom.tpl, backendRSS2.tpl, backendRSS91.tpl, |
From: Joe S. <joe...@us...> - 2004-11-01 17:38:22
|
Update of /cvsroot/phpslash/phpslash-skins/include/templates/en/ShankZen In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9190/phpslash-skins/include/templates/en/ShankZen Modified Files: slashHead-fckeditor.tpl slashHead-htmlarea3.tpl slashHead.tpl Log Message: Added Atom auto discovery Index: slashHead-fckeditor.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-skins/include/templates/en/ShankZen/slashHead-fckeditor.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** slashHead-fckeditor.tpl 28 Oct 2004 20:16:45 -0000 1.1 --- slashHead-fckeditor.tpl 1 Nov 2004 17:38:10 -0000 1.2 *************** *** 14,18 **** <meta name="{METANAME}" content="{METADESCRIPTION}" /> <!-- END each_metatag --> ! <link rel="alternate" type="application/rss+xml" title="RSS" href="{ROOTDIR}/backend.php3" /> <link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/{SKIN}.css" /> <style type="text/css" media="screen">@import "{ROOTDIR}/styles/{SKIN}_ext.css";</style> --- 14,20 ---- <meta name="{METANAME}" content="{METADESCRIPTION}" /> <!-- END each_metatag --> ! <link rel="alternate" type="application/rss+xml" title="RSS" href="{ROOTDIR}/backend.php" /> ! <link rel="alternate" type="application/atom+xml" title="RSS" href="{ROOTDIR}/backend.php?view=atom" /> ! <link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/{SKIN}.css" /> <style type="text/css" media="screen">@import "{ROOTDIR}/styles/{SKIN}_ext.css";</style> Index: slashHead-htmlarea3.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-skins/include/templates/en/ShankZen/slashHead-htmlarea3.tpl,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** slashHead-htmlarea3.tpl 30 Oct 2004 15:17:36 -0000 1.10 --- slashHead-htmlarea3.tpl 1 Nov 2004 17:38:10 -0000 1.11 *************** *** 15,21 **** <!-- END each_metatag --> <link rel="alternate" type="application/rss+xml" title="RSS" href="{ROOTDIR}/backend.php" /> ! <link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/{SKIN}/{CSS}.css" /> ! <!-- <style type="text/css" media="screen">@import "{ROOTDIR}/styles/{SKIN}/{CSS}_ext.css";</style> --> ! <style type="text/css" media="print">@import "{ROOTDIR}/styles/{SKIN}/{SKIN}_print.css";</style> <!-- BEGIN HTMLAREA3 Javascript --> --- 15,21 ---- <!-- END each_metatag --> <link rel="alternate" type="application/rss+xml" title="RSS" href="{ROOTDIR}/backend.php" /> ! <link rel="alternate" type="application/atom+xml" title="RSS" href="{ROOTDIR}/backend.php?view=atom" /> ! ! <link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/{SKIN}.css" /> <!-- BEGIN HTMLAREA3 Javascript --> Index: slashHead.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-skins/include/templates/en/ShankZen/slashHead.tpl,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** slashHead.tpl 30 Oct 2004 15:17:36 -0000 1.5 --- slashHead.tpl 1 Nov 2004 17:38:10 -0000 1.6 *************** *** 15,21 **** <!-- END each_metatag --> <link rel="alternate" type="application/rss+xml" title="RSS" href="{ROOTDIR}/backend.php" /> ! <link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/{SKIN}/{CSS}.css" /> ! <style type="text/css" media="screen">@import "{ROOTDIR}/styles/{SKIN}/{CSS}_ext.css";</style> ! <style type="text/css" media="print">@import "{ROOTDIR}/styles/{SKIN}/{SKIN}_print.css";</style> </head> --- 15,19 ---- <!-- END each_metatag --> <link rel="alternate" type="application/rss+xml" title="RSS" href="{ROOTDIR}/backend.php" /> ! <link rel="alternate" type="application/atom+xml" title="RSS" href="{ROOTDIR}/backend.php?view=atom" /> </head> |
From: Joe S. <joe...@us...> - 2004-11-01 17:38:19
|
Update of /cvsroot/phpslash/phpslash-skins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9190/phpslash-skins Modified Files: CHANGES Log Message: Added Atom auto discovery Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-skins/CHANGES,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** CHANGES 19 Oct 2004 18:52:33 -0000 1.17 --- CHANGES 1 Nov 2004 17:38:09 -0000 1.18 *************** *** 13,16 **** --- 13,21 ---- 9 - Removal of something (kill -9 :) + 2004-November 1 Joe Stewart <joe...@us...> + [F] - ShankZen - add atom auto discovery. + + 2004-September 26 Joe Stewart <joe...@us...> + [B] - ShankZen - update comment links. 2004-September 21 Joe Stewart <joe...@us...> |
From: Joe S. <joe...@us...> - 2004-11-01 17:36:23
|
Update of /cvsroot/phpslash/phpslash-dev In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8704/phpslash-dev Modified Files: CHANGES Log Message: Added Atom and RSS2.0 feeds. Default changed to RSS2.0. Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/CHANGES,v retrieving revision 1.134 retrieving revision 1.135 diff -C2 -d -r1.134 -r1.135 *** CHANGES 29 Oct 2004 20:22:14 -0000 1.134 --- CHANGES 1 Nov 2004 17:35:42 -0000 1.135 *************** *** 13,16 **** --- 13,21 ---- 9 - Removal of something (kill -9 :) + 2004-November 1 Joe Stewart <joe...@us... + [FT] - backend.php, backendAtom.tpl, backendRSS2.tpl, backendRSS91.tpl, + slashHead-fckeditor, slashHead-htmlarea3.tpl, slashHead.tpl - + Added Atom and RSS2.0 feeds. Default changed to RSS2.0. + 2004-October 28 Joe Stewart <joe...@us... [B] - psl_core.sql, psl_example.sql - correct section_block_lut id's. |
Update of /cvsroot/phpslash/phpslash-dev/include/templates/en/basic In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8704/phpslash-dev/include/templates/en/basic Modified Files: backendRSS91.tpl slashHead-fckeditor.tpl slashHead-htmlarea3.tpl slashHead.tpl Added Files: backendAtom.tpl backendRSS2.tpl Log Message: Added Atom and RSS2.0 feeds. Default changed to RSS2.0. --- NEW FILE: backendAtom.tpl --- <?xml version="1.0" encoding="utf-8"?> <feed version="0.3" xmlns="http://purl.org/atom/ns#"> <title>{SITE_TITLE}</title> <link rel="alternate" type="text/html" href="{ROOTDIR}"/> <modified>{DATE}</modified> <author> <name>{SITE_NAME}</name> <url>http://www.php-slash.org</url> <email>{SITE_OWNER}</email> </author> <generator url="http://www.php-slash.org/" version="0.8"> phpSlash </generator> <!-- BEGIN each_story --> <entry> <title>{TITLE}</title> <link rel="alternate" type="text/html" href="{ROOTURL}/index.php?story_id={STORY_ID}"/> <author> <name>{NAME}</name> <url>{URL}</url> </author> <id>tag:{SITE_NAME}:{STORY_ID}</id> <issued>{DATEF}</issued> <modified>{DATEF}</modified> <summary type="text/plain" mode="escaped"> {INTRO_TEXT} </summary> <content type="text/plain" mode="escaped"> {INTRO_TEXT} {BODY_TEXT} </content> </entry> <!-- END each_story --> </feed> --- NEW FILE: backendRSS2.tpl --- <?xml version="1.0"?> <rss version="2.0"> <channel> <title>{SITE_TITLE}</title> <link>{ROOTDIR}</link> <description>{SITE_SLOGAN}</description> <language>en-us</language> <pubDate>{DATE}</pubDate> <lastBuildDate>{DATE}</lastBuildDate> <docs>http://blogs.law.harvard.edu/tech/rss</docs> <generator>phpSlash 0.8</generator> <managingEditor>{SITE_OWNER}</managingEditor> <webMaster>{SITE_OWNER}</webMaster> <!-- BEGIN each_story --> <item> <title>{TITLE}</title> <link>{ROOTURL}/index.php?story_id={STORY_ID}</link> <description>{INTRO_TEXT}</description> <pubDate>{DATEF}</pubDate> <guid>{ROOTURL}/index.php?story_id={STORY_ID}</guid> </item> <!-- END each_story --> </channel> </rss> Index: backendRSS91.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/include/templates/en/basic/backendRSS91.tpl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** backendRSS91.tpl 12 Mar 2003 16:12:52 -0000 1.1.1.1 --- backendRSS91.tpl 1 Nov 2004 17:35:48 -0000 1.2 *************** *** 24,28 **** <item> <title>{TITLE}</title> ! <link>{ROOTDIR}/article.php?story_id={STORY_ID}</link> <description>{INTRO_TEXT}</description> </item> --- 24,28 ---- <item> <title>{TITLE}</title> ! <link>{ROOTDIR}/index.php?story_id={STORY_ID}</link> <description>{INTRO_TEXT}</description> </item> Index: slashHead-fckeditor.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/include/templates/en/basic/slashHead-fckeditor.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** slashHead-fckeditor.tpl 30 Oct 2004 15:17:21 -0000 1.2 --- slashHead-fckeditor.tpl 1 Nov 2004 17:35:48 -0000 1.3 *************** *** 15,20 **** <!-- END each_metatag --> <link rel="alternate" type="application/rss+xml" title="RSS" href="{ROOTDIR}/backend.php" /> ! <link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/{CSS}.css" /> ! <link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/{CSS}_print.css" media="print"/> <!-- BEGIN FCKeditor Javascript --> --- 15,19 ---- <!-- END each_metatag --> <link rel="alternate" type="application/rss+xml" title="RSS" href="{ROOTDIR}/backend.php" /> ! <link rel="alternate" type="application/atom+xml" title="RSS" href="{ROOTDIR}/backend.php?view=atom" /> <!-- BEGIN FCKeditor Javascript --> Index: slashHead-htmlarea3.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/include/templates/en/basic/slashHead-htmlarea3.tpl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** slashHead-htmlarea3.tpl 23 Aug 2004 22:19:23 -0000 1.4 --- slashHead-htmlarea3.tpl 1 Nov 2004 17:35:48 -0000 1.5 *************** *** 15,18 **** --- 15,20 ---- <!-- END each_metatag --> <link rel="alternate" type="application/rss+xml" title="RSS" href="{ROOTDIR}/backend.php" /> + <link rel="alternate" type="application/atom+xml" title="RSS" href="{ROOTDIR}/backend.php?view=atom" /> + <link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/{SKIN}.css" /> <!-- BEGIN HTMLAREA3 Javascript --> Index: slashHead.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/include/templates/en/basic/slashHead.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** slashHead.tpl 19 Oct 2004 16:55:33 -0000 1.2 --- slashHead.tpl 1 Nov 2004 17:35:48 -0000 1.3 *************** *** 15,18 **** --- 15,19 ---- <!-- END each_metatag --> <link rel="alternate" type="application/rss+xml" title="RSS" href="{ROOTDIR}/backend.php" /> + <link rel="alternate" type="application/atom+xml" title="RSS" href="{ROOTDIR}/backend.php?view=atom" /> <link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/{CSS}.css" media="screen"/> |
From: Joe S. <joe...@us...> - 2004-11-01 17:36:00
|
Update of /cvsroot/phpslash/phpslash-dev/include/templates/en/basiccurves In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8704/phpslash-dev/include/templates/en/basiccurves Modified Files: slashHead-fckeditor.tpl slashHead-htmlarea3.tpl slashHead.tpl Log Message: Added Atom and RSS2.0 feeds. Default changed to RSS2.0. Index: slashHead-fckeditor.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/include/templates/en/basiccurves/slashHead-fckeditor.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** slashHead-fckeditor.tpl 30 Oct 2004 15:17:21 -0000 1.2 --- slashHead-fckeditor.tpl 1 Nov 2004 17:35:48 -0000 1.3 *************** *** 15,20 **** <!-- END each_metatag --> <link rel="alternate" type="application/rss+xml" title="RSS" href="{ROOTDIR}/backend.php" /> ! <link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/basic.css" /> ! <link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/basic_print.css" media="print"/> <!-- BEGIN FCKeditor Javascript --> <script type="text/javascript" src="{ROOTDIR}/scripts/fckeditor/fckeditor.js"></script> --- 15,22 ---- <!-- END each_metatag --> <link rel="alternate" type="application/rss+xml" title="RSS" href="{ROOTDIR}/backend.php" /> ! <link rel="alternate" type="application/atom+xml" title="RSS" href="{ROOTDIR}/backend.php?view=atom" /> ! ! <link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/{SKIN}.css" /> ! <!-- <style type="text/css" media="screen">@import "{ROOTDIR}/styles/{SKIN}_ext.css";</style> --> <!-- BEGIN FCKeditor Javascript --> <script type="text/javascript" src="{ROOTDIR}/scripts/fckeditor/fckeditor.js"></script> Index: slashHead-htmlarea3.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/include/templates/en/basiccurves/slashHead-htmlarea3.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** slashHead-htmlarea3.tpl 23 Aug 2004 16:29:04 -0000 1.2 --- slashHead-htmlarea3.tpl 1 Nov 2004 17:35:48 -0000 1.3 *************** *** 15,19 **** <!-- END each_metatag --> <link rel="alternate" type="application/rss+xml" title="RSS" href="{ROOTDIR}/backend.php" /> ! <link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/basic.css" /> <!-- BEGIN HTMLAREA3 Javascript --> --- 15,21 ---- <!-- END each_metatag --> <link rel="alternate" type="application/rss+xml" title="RSS" href="{ROOTDIR}/backend.php" /> ! <link rel="alternate" type="application/atom+xml" title="RSS" href="{ROOTDIR}/backend.php?view=atom" /> ! ! <link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/{SKIN}.css" /> <!-- BEGIN HTMLAREA3 Javascript --> Index: slashHead.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/include/templates/en/basiccurves/slashHead.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** slashHead.tpl 19 Oct 2004 16:55:33 -0000 1.2 --- slashHead.tpl 1 Nov 2004 17:35:48 -0000 1.3 *************** *** 15,18 **** --- 15,19 ---- <!-- END each_metatag --> <link rel="alternate" type="application/rss+xml" title="RSS" href="{ROOTDIR}/backend.php" /> + <link rel="alternate" type="application/atom+xml" title="RSS" href="{ROOTDIR}/backend.php?view=atom" /> <link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/basic.css" media="screen"/> |
From: Joe S. <joe...@us...> - 2004-11-01 17:35:58
|
Update of /cvsroot/phpslash/phpslash-dev/public_html In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8704/phpslash-dev/public_html Modified Files: backend.php Log Message: Added Atom and RSS2.0 feeds. Default changed to RSS2.0. Index: backend.php =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/backend.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** backend.php 13 Sep 2004 23:35:24 -0000 1.2 --- backend.php 1 Nov 2004 17:35:44 -0000 1.3 *************** *** 73,76 **** --- 73,80 ---- // What to build for output switch( $ary['view']) { + case 'atom': + $viewtpl = 'backendAtom.tpl'; + header("Content-type: text/xml"); + break; case 'avantgo': $viewtpl = 'backendAV.tpl'; *************** *** 106,109 **** --- 110,119 ---- header("Content-type: text/xml"); break; + case 'rss1': + $viewtpl = 'backendRSS1.tpl'; + // RSS-1.0 needs a extra listing. + $link_ary = array(); + header("Content-type: text/xml"); + break; case 'txt': $viewtpl = 'backendTxt.tpl'; *************** *** 118,126 **** break; case 'rss': ! case 'rss1': default: ! $viewtpl = 'backendRSS1.tpl'; ! // RSS-1.0 needs a extra listing. ! $link_ary = array(); break; } --- 128,135 ---- break; case 'rss': ! case 'rss2': default: ! $viewtpl = 'backendRSS2.tpl'; ! header("Content-type: text/xml"); break; } *************** *** 135,139 **** // Create the template object, and set some options for silent running ! $template = pslNew("slashTemplate",$_PSL['templatedir']); $template->debug = 0; $template->set_unknowns('remove'); --- 144,148 ---- // Create the template object, and set some options for silent running ! $template = pslNew("slashTemplate"); $template->debug = 0; $template->set_unknowns('remove'); *************** *** 158,161 **** --- 167,171 ---- 'PHP_SELF' => $_PSL['phpself'], 'ROOTDIR' => $_PSL['rooturl'], + 'ROOTURL' => $_PSL['rooturl'], 'DATE' => $date, 'IMAGEDIR' => $_PSL['imageurl'], *************** *** 189,196 **** --- 199,210 ---- $template->set_var(array( 'STORY_ID' => $stories[$i]['story_id'], + 'NAME' => $stories[$i]['name'], + 'URL' => $stories[$i]['url'], 'TITLE' => htmlspecialchars(strip_tags($stories[$i]['title'])), 'TITLE_HTML' => $stories[$i]['title'], 'INTRO_TEXT' => $description, 'INTRO_TEXT_HTML' => $stories[$i]['intro_text'], + 'BODY_TEXT' => htmlspecialchars(strip_tags($stories[$i]['body_text'])), + 'BODY_TEXT_HTML' => $stories[$i]['body_text'], 'IDX' => $i, 'DATEF' => $stories[$i]['datef'], |
From: Joe S. <joe...@us...> - 2004-10-30 15:49:55
|
Update of /cvsroot/phpslash/phpslash-dev/include/templates/en/basic In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30234/phpslash-dev/include/templates/en/basic Modified Files: queryblock.tpl Log Message: complete fckeditor addition Index: queryblock.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/include/templates/en/basic/queryblock.tpl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** queryblock.tpl 12 Mar 2003 16:12:52 -0000 1.1.1.1 --- queryblock.tpl 30 Oct 2004 15:49:47 -0000 1.2 *************** *** 1,6 **** <!-- queryblock.tpl begin--> ! <!-- BEGIN each_query --> <li><a href="{ROOTDIR}/article.php?story_id={STORY_ID}">{TITLE}</a></li> <!-- END each_query --> <!-- queryblock.tpl end--> --- 1,8 ---- <!-- queryblock.tpl begin--> ! <ul> ! <!-- BEGIN each_query --> <li><a href="{ROOTDIR}/article.php?story_id={STORY_ID}">{TITLE}</a></li> <!-- END each_query --> + </ul> <!-- queryblock.tpl end--> |
From: Joe S. <joe...@us...> - 2004-10-30 15:43:12
|
Update of /cvsroot/phpslash/phpslash-dev/include/modules/auth In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28898/phpslash-dev/include/modules/auth Modified Files: slashAuth.class Log Message: remember me preauth fix Index: slashAuth.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/include/modules/auth/slashAuth.class,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** slashAuth.class 29 Oct 2004 20:47:18 -0000 1.8 --- slashAuth.class 30 Oct 2004 15:43:00 -0000 1.9 *************** *** 381,389 **** // success - authenticated - // set Remember Me cookie - if(!empty($setcookie)){ - $this->set_preauth_cookie($user_info); - } - // apply user's preferences $temparray=unserialize($user_info['author_options']); --- 381,384 ---- *************** *** 411,414 **** --- 406,414 ---- $this->clear_session_vars(); + // set Remember Me cookie + if(!empty($setcookie)){ + $this->set_preauth_cookie($user_info); + } + // expire cache for this session if(function_exists('jpcache_gc')) { |
From: Joe S. <joe...@us...> - 2004-10-30 15:17:53
|
Update of /cvsroot/phpslash/phpslash-skins/include/templates/en/ShankZen In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23726/phpslash-skins/include/templates/en/ShankZen Modified Files: commentSubmitForm.tpl slashHead-htmlarea3.tpl slashHead.tpl Log Message: complete fckeditor addition Index: commentSubmitForm.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-skins/include/templates/en/ShankZen/commentSubmitForm.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** commentSubmitForm.tpl 28 Oct 2004 20:16:45 -0000 1.2 --- commentSubmitForm.tpl 30 Oct 2004 15:17:36 -0000 1.3 *************** *** 15,27 **** <input type="hidden" name="parent_id" value="{PARENT_ID}" /> ! ! <td> ! <input type="radio" checked name="content_type" value="yes" onClick="PSL_chooseEditor(1);" /> Yes ! <br /> ! <input type="radio" name="content_type" value="no" onClick="PSL_chooseEditor(1);" /> No ! </td> ! </tr> ! <tr> <td class="psl-descr">Name</td> --- 15,21 ---- <input type="hidden" name="parent_id" value="{PARENT_ID}" /> + <table border="0" cellpadding="1"> ! <tr> <td class="psl-descr">Name</td> *************** *** 52,58 **** <td><textarea wrap="virtual" id="comment_text" name="comment_text" rows="10" cols="50">{COMMENT}</textarea></td> - </tr> ! <tr> --- 46,59 ---- <td><textarea wrap="virtual" id="comment_text" name="comment_text" rows="10" cols="50">{COMMENT}</textarea></td> </tr> ! <tr> ! <td class="psl-descr">WYSIWYG Editor<br /> ! </td> ! <td> ! <input type="radio" checked name="content_type" value="yes" onClick="PSL_chooseEditor(1);" /> Yes ! <br /> ! <input type="radio" name="content_type" value="no" onClick="PSL_chooseEditor(1);" /> No ! </td> ! </tr> <tr> Index: slashHead-htmlarea3.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-skins/include/templates/en/ShankZen/slashHead-htmlarea3.tpl,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** slashHead-htmlarea3.tpl 19 Oct 2004 18:52:33 -0000 1.9 --- slashHead-htmlarea3.tpl 30 Oct 2004 15:17:36 -0000 1.10 *************** *** 17,20 **** --- 17,21 ---- <link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/{SKIN}/{CSS}.css" /> <!-- <style type="text/css" media="screen">@import "{ROOTDIR}/styles/{SKIN}/{CSS}_ext.css";</style> --> + <style type="text/css" media="print">@import "{ROOTDIR}/styles/{SKIN}/{SKIN}_print.css";</style> <!-- BEGIN HTMLAREA3 Javascript --> Index: slashHead.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-skins/include/templates/en/ShankZen/slashHead.tpl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** slashHead.tpl 19 Oct 2004 18:52:33 -0000 1.4 --- slashHead.tpl 30 Oct 2004 15:17:36 -0000 1.5 *************** *** 14,18 **** <meta name="{METANAME}" content="{METADESCRIPTION}" /> <!-- END each_metatag --> ! <link rel="alternate" type="application/rss+xml" title="RSS" href="{ROOTDIR}/backend.php3" /> <link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/{SKIN}/{CSS}.css" /> <style type="text/css" media="screen">@import "{ROOTDIR}/styles/{SKIN}/{CSS}_ext.css";</style> --- 14,18 ---- <meta name="{METANAME}" content="{METADESCRIPTION}" /> <!-- END each_metatag --> ! <link rel="alternate" type="application/rss+xml" title="RSS" href="{ROOTDIR}/backend.php" /> <link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/{SKIN}/{CSS}.css" /> <style type="text/css" media="screen">@import "{ROOTDIR}/styles/{SKIN}/{CSS}_ext.css";</style> |
From: Joe S. <joe...@us...> - 2004-10-30 15:17:41
|
Update of /cvsroot/phpslash/phpslash-dev/include/templates/en/basiccurves In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23679/phpslash-dev/include/templates/en/basiccurves Modified Files: slashHead-fckeditor.tpl Log Message: complete fckeditor addition Index: slashHead-fckeditor.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/include/templates/en/basiccurves/slashHead-fckeditor.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** slashHead-fckeditor.tpl 28 Oct 2004 20:15:18 -0000 1.1 --- slashHead-fckeditor.tpl 30 Oct 2004 15:17:21 -0000 1.2 *************** *** 16,19 **** --- 16,20 ---- <link rel="alternate" type="application/rss+xml" title="RSS" href="{ROOTDIR}/backend.php" /> <link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/basic.css" /> + <link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/basic_print.css" media="print"/> <!-- BEGIN FCKeditor Javascript --> <script type="text/javascript" src="{ROOTDIR}/scripts/fckeditor/fckeditor.js"></script> |
From: Joe S. <joe...@us...> - 2004-10-30 15:17:41
|
Update of /cvsroot/phpslash/phpslash-dev/include/templates/en/basic In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23679/phpslash-dev/include/templates/en/basic Modified Files: slashHead-fckeditor.tpl Log Message: complete fckeditor addition Index: slashHead-fckeditor.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/include/templates/en/basic/slashHead-fckeditor.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** slashHead-fckeditor.tpl 28 Oct 2004 20:15:17 -0000 1.1 --- slashHead-fckeditor.tpl 30 Oct 2004 15:17:21 -0000 1.2 *************** *** 15,20 **** <!-- END each_metatag --> <link rel="alternate" type="application/rss+xml" title="RSS" href="{ROOTDIR}/backend.php" /> ! <link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/{SKIN}.css" /> ! <!-- <style type="text/css" media="screen">@import "{ROOTDIR}/styles/{SKIN}_ext.css";</style> --> <!-- BEGIN FCKeditor Javascript --> <script type="text/javascript" src="{ROOTDIR}/scripts/fckeditor/fckeditor.js"></script> --- 15,21 ---- <!-- END each_metatag --> <link rel="alternate" type="application/rss+xml" title="RSS" href="{ROOTDIR}/backend.php" /> ! <link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/{CSS}.css" /> ! <link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/{CSS}_print.css" media="print"/> ! <!-- BEGIN FCKeditor Javascript --> <script type="text/javascript" src="{ROOTDIR}/scripts/fckeditor/fckeditor.js"></script> |
From: Joe S. <joe...@us...> - 2004-10-30 14:19:23
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/lang In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12486/phpslash-dev/public_html/scripts/fckeditor/editor/lang Added Files: pt-br.js Log Message: complete fckeditor addition --- NEW FILE: pt-br.js --- /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: * http://www.opensource.org/licenses/lgpl-license.php * * For further information visit: * http://www.fckeditor.net/ * * File Name: pt-br.js * Portuguese language file. * * Version: 2.0 Beta 2 * Modified: 2004-06-04 09:28:44 * * File Authors: * Alexandre Mendonça Lima (am...@un...) */ var FCKLang = { // Language direction : "ltr" (left to right) or "rtl" (right to left). "Dir" : "ltr", // Toolbar Items and Context Menu "Cut" : "Recortar" , "Copy" : "Copiar" , "Paste" : "Colar" , "PasteText" : "Colar como Texto Puro" , "PasteWord" : "Colar do Microsoft Word" , "Find" : "Localizar" , "SelectAll" : "Selecionar Tudo" , "RemoveFormat" : "Remover Formatação" , "InsertLink" : "Inserir/Editar Link" , "RemoveLink" : "Remover Link" , "InsertImage" : "Inserir/Editar Imagem" , "InsertTable" : "Inserir/Editar Tabela" , "InsertLine" : "Inserir Linha Horizontal" , "InsertSpecialChar" : "Inserir Caracter Especial" , "InsertSmiley" : "Inserir Carinha" , "About" : "About FCKeditor" , "Bold" : "Negrito" , "Italic" : "Itálico" , "Underline" : "Sublinhado" , "StrikeThrough" : "Riscado" , "Subscript" : "Subscrito" , "Superscript" : "Superscrito" , "LeftJustify" : "Alinhamento à Esquerda" , "CenterJustify" : "Alinhamento ao Centro" , "RightJustify" : "Alinhamento à Direita" , "BlockJustify" : "Alinhamento Justificado" , "DecreaseIndent" : "Diminuir Identação" , "IncreaseIndent" : "Aumentar Identação" , "Undo" : "Desfazer" , "Redo" : "Refazer" , "NumberedList" : "Lista Numerada" , "BulletedList" : "Lista Marcada" , "ShowTableBorders" : "Exibir Bordas da Tabela" , "ShowDetails" : "Exibir Detalhes" , "FontStyle" : "Estilo da Fonte" , "FontFormat" : "Formatação da Fonte" , "Font" : "Fonte" , "FontSize" : "Tamanho da Fonte" , "TextColor" : "Cor do Texto" , "BGColor" : "Cor do Fundo do Texto" , "Source" : "Código-Fonte" , // Context Menu "EditLink" : "Editar Link" , "InsertRow" : "Inserir Linha" , "DeleteRows" : "Apagar Linhas" , "InsertColumn" : "Inserir Coluna" , "DeleteColumns" : "Apagar Colunas" , "InsertCell" : "Inserir células" , "DeleteCells" : "Apagar células" , "MergeCells" : "Mesclar células" , "SplitCell" : "Dividir célula" , "CellProperties" : "Propriedades da Célula" , "TableProperties" : "Propriedades da Tabela" , "ImageProperties" : "Propriedades da Imagem" , // Alerts and Messages "ProcessingXHTML" : "Processando XHTML. Por favor, aguarde..." , "Done" : "ConcluÃdo" , "PasteWordConfirm" : "O texto que você quer colar parece ser copiado do Microsoft Word. Deseja limpar formatação antes de colar?" , "NotCompatiblePaste": "Este comando está disponÃvel para Internet Explorer 5.5 ou superior. Deseja colar sem formatação?" , // Dialogs "DlgBtnOK" : "OK" , "DlgBtnCancel" : "Cancelar" , "DlgBtnClose" : "Fechar" , // Image Dialog "DlgImgTitleInsert" : "Inserir Imagem" , "DlgImgTitleEdit" : "Editar Imagem" , "DlgImgBtnUpload" : "Enviar para o servidor" , "DlgImgURL" : "URL" , "DlgImgUpload" : "Enviar" , "DlgImgBtnBrowse" : "Navegar no Servidor" , "DlgImgAlt" : "Texto Alternativo" , "DlgImgWidth" : "Largura" , "DlgImgHeight" : "Altura" , "DlgImgLockRatio" : "Travar Proporção" , "DlgBtnResetSize" : "Tamanho Padrão" , "DlgImgBorder" : "Borda" , "DlgImgHSpace" : "Espaçamento Horizontal" , "DlgImgVSpace" : "Espaçamento Vertical" , "DlgImgAlign" : "Alinhamento" , "DlgImgAlignLeft" : "Esquerda" , "DlgImgAlignAbsBottom" : "Abaixo Absoluto" , "DlgImgAlignAbsMiddle" : "Meio Absoluto" , "DlgImgAlignBaseline" : "Linha de Base" , "DlgImgAlignBottom" : "Abaixo" , "DlgImgAlignMiddle" : "Meio" , "DlgImgAlignRight" : "Direita" , "DlgImgAlignTextTop": "Topo do Texto" , "DlgImgAlignTop" : "Topo" , "DlgImgPreview" : "Prever Imagem" , "DlgImgMsgWrongExt" : "Infelizmente, somente o envio dos seguintes tipos de arquivos são permitidos:\n\n" + FCKConfig.ImageUploadAllowedExtensions + "\n\nOperação cancelada." , "DlgImgAlertSelect" : "Por favor, selecione uma imagem para enviar." , // Link Dialog "DlgLnkWindowTitle" : "Link" , "DlgLnkURL" : "URL" , "DlgLnkUpload" : "Enviar" , "DlgLnkTarget" : "Alvo" , "DlgLnkTargetNotSet": "<nenhum>" , "DlgLnkTargetBlank" : "Nova Janela (_blank)" , "DlgLnkTargetParent": "Janela Pai (_parent)" , "DlgLnkTargetSelf" : "Mesma Janela (_self)" , "DlgLnkTargetTop" : "Janela superiora (_top)" , "DlgLnkTitle" : "TÃtulo" , "DlgLnkBtnUpload" : "Enviar para o Servidor" , "DlgLnkBtnBrowse" : "Navegar no Servidor" , "DlgLnkMsgWrongExtA": "Infelizmente, somente o envio dos seguintes tipos de arquivos são permitidos:\n\n" + FCKConfig.LinkUploadAllowedExtensions + "\n\nOperação cancelada." , "DlgLnkMsgWrongExtD": "Infelizmente, somente o envio dos seguintes tipos de arquivos são permitidos:\n\n" + FCKConfig.LinkUploadDeniedExtensions + "\n\nOperação cancelada." , // Color Dialog "DlgColorTitle" : "Selecionar Cor" , "DlgColorBtnClear" : "Limpar" , "DlgColorHighlight" : "Destacar" , "DlgColorSelected" : "Selecionado" , // Smiley Dialog "DlgSmileyTitle" : "Inserir uma Carinha" , // Special Character Dialog "DlgSpecialCharTitle" : "Inserir Caracter Especial" , // Table Dialog "DlgTableTitleInsert" : "Inserir Tabela" , "DlgTableTitleEdit" : "Editar Tabela" , "DlgTableRows" : "Linhas" , "DlgTableColumns" : "Colunas" , "DlgTableBorder" : "Tamanho da Borda" , "DlgTableAlign" : "Alinhamento" , "DlgTableAlignNotSet" : "<nenhum>" , "DlgTableAlignLeft" : "Esquerda" , "DlgTableAlignCenter" : "Centro" , "DlgTableAlignRight" : "Direita" , "DlgTableWidth" : "Largura" , "DlgTableWidthPx" : "pixels" , "DlgTableWidthPc" : "porcentagem" , "DlgTableHeight" : "Altura" , "DlgTableCellSpace" : "Espaçamento da Célula" , "DlgTableCellPad" : "Padding da Célula" , "DlgTableCaption" : "Cabeçalho" , // Table Cell Dialog "DlgCellTitle" : "Propriedades da Célula" , "DlgCellWidth" : "Largura" , "DlgCellWidthPx" : "pixels" , "DlgCellWidthPc" : "porcentagem" , "DlgCellHeight" : "Altura" , "DlgCellWordWrap" : "Quebrar Texto" , "DlgCellWordWrapNotSet" : "<nenhum>" , "DlgCellWordWrapYes" : "Sim" , "DlgCellWordWrapNo" : "Não" , "DlgCellHorAlign" : "Alinhamento Horizontal" , "DlgCellHorAlignNotSet" : "<nenhum>" , "DlgCellHorAlignLeft" : "Esquerda" , "DlgCellHorAlignCenter" : "Centro" , "DlgCellHorAlignRight" : "Direita" , "DlgCellVerAlign" : "Alinhamento Vertical" , "DlgCellVerAlignNotSet" : "<nenhum>" , "DlgCellVerAlignTop" : "Topo" , "DlgCellVerAlignMiddle" : "Meio" , "DlgCellVerAlignBottom" : "Abaixo" , "DlgCellVerAlignBaseline" : "Linha de Base" , "DlgCellRowSpan" : "Rows Span" , "DlgCellCollSpan" : "Columns Span" , "DlgCellBackColor" : "Cor do Fundo da Célula" , "DlgCellBorderColor" : "Cor da Borda" , "DlgCellBtnSelect" : "Selecionar..." , // About Dialog "DlgAboutVersion" : "versão" , "DlgAboutLicense" : "Licenciado sob os termos da Licença Geral Pública GNU" , "DlgAboutInfo" : "Para maiores informações, vá para " } |
From: Joe S. <joe...@us...> - 2004-10-30 14:19:23
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/dialog/js In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12486/phpslash-dev/public_html/scripts/fckeditor/editor/dialog/js Added Files: fck_image.js Log Message: complete fckeditor addition --- NEW FILE: fck_image.js --- /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: * http://www.opensource.org/licenses/lgpl-license.php * * For further information visit: * http://www.fckeditor.net/ * * File Name: fck_image.js * Scripts related to the Link dialog window (see fck_link.html). * * Version: 2.0 Beta 2 * Modified: 2004-09-10 01:59:57 * * File Authors: * Frederico Caldeira Knabben (fr...@fc...) */ var oEditor = window.parent.InnerDialogLoaded() ; var FCK = oEditor.FCK ; // Set the language direction. window.document.dir = oEditor.FCKLang.Dir ; // Set the Skin CSS. document.write( '<link href="' + oEditor.FCKConfig.SkinPath + 'fck_dialog.css" type="text/css" rel="stylesheet">' ) ; //#### Dialog Tabs // Set the dialog tabs. window.parent.AddTab( 'Info', 'Image Info' ) ; // TODO : Enable File Upload (1/3). //window.parent.AddTab( 'Upload', 'Upload', true ) ; window.parent.AddTab( 'Advanced', 'Advanced' ) ; // Function called when a dialog tag is selected. function OnDialogTabChange( tabCode ) { ShowE('divInfo' , ( tabCode == 'Info' ) ) ; // TODO : Enable File Upload (2/3). // ShowE('divUpload' , ( tabCode == 'Upload' ) ) ; ShowE('divAdvanced' , ( tabCode == 'Advanced' ) ) ; } // Get the selected image (if available). var oImage = FCK.Selection.GetSelectedElement( 'IMG' ) ; var oImageOriginal ; function UpdateOriginal() { oImageOriginal = new Image() ; oImageOriginal.src = GetE('imgPreview').src ; } window.onload = function() { // Translate the dialog box texts. oEditor.FCKLanguageManager.TranslatePage(document) ; // Load the selected element information (if any). LoadSelection() ; // Show/Hide the "Browse Server" button. GetE('tdBrowse').style.display = oEditor.FCKConfig.ImageBrowser ? '' : 'none' ; UpdateOriginal() ; // Activate the "OK" button. window.parent.SetOkButton( true ) ; } function LoadSelection() { if ( ! oImage ) return ; GetE('txtURL').value = GetAttribute( oImage, 'src', '' ) ; GetE('txtAlt').value = GetAttribute( oImage, 'alt', '' ) ; GetE('txtVSpace').value = GetAttribute( oImage, 'vspace', '' ) ; GetE('txtHSpace').value = GetAttribute( oImage, 'hspace', '' ) ; GetE('txtBorder').value = GetAttribute( oImage, 'border', '' ) ; GetE('cmbAlign').value = GetAttribute( oImage, 'align', '' ) ; if ( oImage.style.pixelWidth > 0 ) GetE('txtWidth').value = oImage.style.pixelWidth ; else GetE('txtWidth').value = GetAttribute( oImage, "width", '' ) ; if ( oImage.style.pixelHeight > 0 ) GetE('txtHeight').value = oImage.style.pixelHeight ; else GetE('txtHeight').value = GetAttribute( oImage, "height", '' ) ; // Get Advances Attributes GetE('txtAttId').value = oImage.id ; GetE('cmbAttLangDir').value = oImage.dir ; GetE('txtAttLangCode').value = oImage.lang ; GetE('txtAttTitle').value = oImage.title ; GetE('txtAttClasses').value = oImage.getAttribute('class',2) || '' ; GetE('txtLongDesc').value = oImage.longDesc ; if ( oEditor.FCKBrowserInfo.IsIE ) GetE('txtAttStyle').value = oImage.style.cssText ; else GetE('txtAttStyle').value = oImage.getAttribute('style',2) ; UpdatePreview() ; } //#### The OK button was hit. function Ok() { if ( GetE('txtURL').value.length == 0 ) { window.parent.SetSelectedTab( 'Info' ) ; GetE('txtURL').focus() ; alert( 'Please type the image URL' ) ; return false ; } var e = ( oImage || FCK.EditorDocument.createElement( 'IMG' ) ) ; UpdateImage( e ) ; if ( ! oImage ) FCK.InsertElement( e ) ; return true ; } function UpdateImage( e, skipId ) { e.src = GetE('txtURL').value ; SetAttribute( e, "alt" , GetE('txtAlt').value ) ; SetAttribute( e, "width" , GetE('txtWidth').value ) ; SetAttribute( e, "height", GetE('txtHeight').value ) ; SetAttribute( e, "vspace", GetE('txtVSpace').value ) ; SetAttribute( e, "hspace", GetE('txtHSpace').value ) ; SetAttribute( e, "border", GetE('txtBorder').value ) ; SetAttribute( e, "align" , GetE('cmbAlign').value ) ; // Advances Attributes if ( ! skipId ) SetAttribute( e, 'id', GetE('txtAttId').value ) ; SetAttribute( e, 'dir' , GetE('cmbAttLangDir').value ) ; SetAttribute( e, 'lang' , GetE('txtAttLangCode').value ) ; SetAttribute( e, 'title' , GetE('txtAttTitle').value ) ; SetAttribute( e, 'class' , GetE('txtAttClasses').value ) ; SetAttribute( e, 'longDesc' , GetE('txtLongDesc').value ) ; if ( oEditor.FCKBrowserInfo.IsIE ) e.style.cssText = GetE('txtAttStyle').value ; else SetAttribute( e, 'style', GetE('txtAttStyle').value ) ; } function UpdatePreview() { if ( GetE('txtURL').value.length == 0 ) GetE('imgPreview').style.display = 'none' ; else UpdateImage( GetE('imgPreview'), true ) ; } var bLockRatio = true ; function SwitchLock( lockButton ) { bLockRatio = !bLockRatio ; lockButton.className = bLockRatio ? 'BtnLocked' : 'BtnUnlocked' ; lockButton.title = bLockRatio ? 'Lock sizes' : 'Unlock sizes' ; if ( bLockRatio ) { if ( GetE('txtWidth').value.length > 0 ) OnSizeChanged( 'Width', GetE('txtWidth').value ) ; else OnSizeChanged( 'Height', GetE('txtHeight').value ) ; } } // Fired when the width or height input texts change function OnSizeChanged( dimension, value ) { // Verifies if the aspect ration has to be mantained if ( oImageOriginal && bLockRatio ) { if ( value.length == 0 || isNaN( value ) ) { GetE('txtHeight').value = GetE('txtWidth').value = '' ; return ; } if ( dimension == 'Width' ) GetE('txtHeight').value = Math.round( oImageOriginal.height * ( value / oImageOriginal.width ) ) ; else GetE('txtWidth').value = Math.round( oImageOriginal.width * ( value / oImageOriginal.height ) ) ; } UpdatePreview() ; } // Fired when the Reset Size button is clicked function ResetSizes() { if ( ! oImageOriginal ) return ; GetE('txtWidth').value = oImageOriginal.width ; GetE('txtHeight').value = oImageOriginal.height ; UpdatePreview() ; } function BrowseServer() { // Set the browser window feature. var iWidth = oEditor.FCKConfig.ImageBrowserWindowWidth ; var iHeight = oEditor.FCKConfig.ImageBrowserWindowHeight ; var iLeft = (screen.width - iWidth) / 2 ; var iTop = (screen.height - iHeight) / 2 ; var sOptions = "toolbar=no,status=no,resizable=yes,dependent=yes" ; sOptions += ",width=" + iWidth ; sOptions += ",height=" + iHeight ; sOptions += ",left=" + iLeft ; sOptions += ",top=" + iTop ; // Open the browser window. var oWindow = window.open( oEditor.FCKConfig.ImageBrowserURL, "FCKBrowseWindow", sOptions ) ; } function SetUrl( url ) { document.getElementById('txtUrl').value = url ; GetE('txtHeight').value = GetE('txtWidth').value = '' ; UpdatePreview() ; UpdateOriginal() ; } |
From: Joe S. <joe...@us...> - 2004-10-30 14:19:23
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/filemanager/browser/default/connectors/aspx In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12486/phpslash-dev/public_html/scripts/fckeditor/editor/filemanager/browser/default/connectors/aspx Added Files: connector.aspx Log Message: complete fckeditor addition --- NEW FILE: connector.aspx --- <%@ Page language="c#" Inherits="FredCK.FCKeditorV2.FileBrowserConnector" AutoEventWireup="false" %> <!-- * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: * http://www.opensource.org/licenses/lgpl-license.php * * For further information visit: * http://www.fckeditor.net/ * * File Name: connector.aspx * This is the File Browser Connector for ASP.NET. * * The code of this page if included in the FredCK.FCKeditorV2.dll file. So to * use it you must include the DLL in your "bin" directory. * * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:52 * * File Authors: * Frederico Caldeira Knabben (fr...@fc...) --> |
From: Joe S. <joe...@us...> - 2004-10-30 14:19:14
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_documentation In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12486/phpslash-dev/public_html/scripts/fckeditor/_documentation Added Files: WhatsNew.html Log Message: complete fckeditor addition --- NEW FILE: WhatsNew.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <HEAD> <TITLE>FCKeditor - What's New</TITLE></HEAD> <BODY> <H3>Version 2.0 Beta 2</H3> <UL> <LI> There is a new configuration - "<STRONG>GeckoUseSPAN</STRONG>" - that can be used to tell Gecko browsers to use <SPAN style...> or <B>, <I> and <U> for the bold, italic and underline commands. <LI> [<A href="http://sourceforge.net/tracker/index.php?func=detail&aid=1002622&group_id=75348&atid=543656" target="_blank">SF Feature-1002622</A>] New <STRONG>Text Color</STRONG> and <STRONG>Background Color</STRONG> commands have been added to the editor. <LI> On Gecko browsers, a message is shown when, because of security settings, the user is not able to cut, copy or paste data from the clipboard using the toolbar buttons or the context menu. <LI> The new "<STRONG>Paste as Plain Text</STRONG> " command has been introduced. <LI> The new "<STRONG>Paste from Word</STRONG> " command has been introduced. <LI> A new configuration named "StartupFocus" can be used to tell the editor to get the focus when the page is loaded. <LI> All <STRONG>Java </STRONG> integration files has been moved to a new separated package. <LI> [<A href="http://sourceforge.net/tracker/index.php?func=detail&aid=1016781&group_id=75348&atid=543653" target="_blank">SF BUG-1016781</A>] <STRONG>Table operations</STRONG> are now working when right click inside a table. The following commands has been introduced: <STRONG>Insert Row</STRONG>, <STRONG>Delete Row</STRONG>, <STRONG>Insert Column</STRONG>, <STRONG>Delete Column</STRONG>, <STRONG>Insert Cell</STRONG> and <STRONG>Delete Cells</STRONG> . <LI> [<A href="http://sourceforge.net/tracker/index.php?func=detail&aid=965067&group_id=75348&atid=543653" target="_blank">SF BUG-965067</A>] [<A href="http://sourceforge.net/tracker/index.php?func=detail&aid=1010379&group_id=75348&atid=543653" target="_blank">SF BUG-1010379</A>] [<A href="http://sourceforge.net/tracker/index.php?func=detail&aid=977713&group_id=75348&atid=543653" target="_blank">SF BUG-977713</A>] XHTML support was not working with FireFox, blocking the editor when submitting data. It has been fixed. <LI> [<A href="http://sourceforge.net/tracker/index.php?func=detail&aid=1007547&group_id=75348&atid=543653" target="_blank">SF BUG-1007547</A> ] [<A href="http://sourceforge.net/tracker/index.php?func=detail&aid=974595&group_id=75348&atid=543653" target="_blank">SF BUG-974595</A> ] The "FCKLang not defined" error when loading has been fixed. <LI> [<A href="http://sourceforge.net/tracker/index.php?func=detail&aid=1021028&group_id=75348&atid=543653" target="_blank">SF BUG-1021028</A>] If the editor doesn't have the focus, some commands were been executed outside the editor in the place where the focus is. It has been fixed. <LI> [<A href="http://sourceforge.net/tracker/index.php?func=detail&aid=981191&group_id=75348&atid=543653" target="_blank">SF BUG-981191</A>] We are now using <!--- ---> for ColdFusion comments.</LI></UL> <H3>Version 2.0 Beta 1</H3> <P>This is the first beta of the 2.x series. It brings a lot of new and important things. Beta versions will be released until all features available on version 1.x will be introduced in the 2.0.<BR> <BR> <STRONG>Note:</STRONG> As it is a beta, it is not yet completely developed. Future versions can bring new features that can break backward compatibility with this version. </P> <UL> <LI> Gecko browsers (<STRONG>Mozilla</STRONG> and <STRONG>Netscape</STRONG>) support. <LI> <STRONG>Quick startup</STRONG> response times. <LI> Complete <STRONG>XHTML</STRONG> 1.0 support. <LI> <STRONG>Advanced link</STRONG> dialog box: <UL> <LI> Target selection. <LI> Popup configurator. <LI> E-Mail link. <LI> Anchor selector. </LI> </UL> <LI> New <STRONG>File Manager</STRONG>. <LI> New dialog box system, with <STRONG>tabbed dialogs</STRONG> support. <LI> New <STRONG>context menus</STRONG> with icons. <LI> New toolbar with "expand/collapse" feature. <LI> <STRONG>Skins</STRONG> support. <LI> <STRONG>Right to left languages</STRONG> support. </LI> </UL> <H3>Version 1.6.1</H3> <UL> <LI> [<A href="http://sourceforge.net/tracker/index.php?func=detail&aid=862364&group_id=75348&atid=543653" target="_blank">SF BUG-862364</A>] [<A href="http://sourceforge.net/tracker/index.php?func=detail&aid=812733&group_id=75348&atid=543653" target="_blank">SF BUG-812733</A>] There was a problem when the user tried to delete the last row, collumn or cell in a table. It has been corrected.* <LI> New Estonian language file. Thanks to Kristjan Kivikangur <LI> New Croatian language file. Thanks to Alex Varga. <LI> Updated language file for Czech. Thanks to Plachow. <LI> Updated language file for Chineze (zh-cn). Thanks to Yanglin. <LI> Updated language file for Catalan. Thanks to Jordi Cerdan.</LI></UL> <P>* This version has been partially sponsored by <A href="http://www.genuitec.com/">Genuitec, LLC</A>.</P> <H3>Version 1.6</H3> <UL> <LI> <STRONG>Context Menu</STRONG> support for <STRONG>form</STRONG> elements.* <LI> New <STRONG>"Selection Field" command</STRONG> with advanced dialog box for options definitions.* <LI> New <STRONG>"Image Button" command</STRONG> is available.* <LI> [<A href="https://sourceforge.net/tracker/index.php?func=detail&aid=936196&group_id=75348&atid=543656" target="_blank">SF Feature-936196</A>] Many form elements <STRONG>bugs has been fixed</STRONG> and <STRONG>many improvements</STRONG> has been done.* <LI> New <STRONG>Java Integration Module</STRONG>. There is a complete Java API and Tag Library implementations. Take a look at the _jsp directory. Thanks to Simone Chiaretta and Hao Jiang. <LI> The <STRONG>Word Spell Checker</STRONG> can be used. To be able to run it, your browser security configuration "Initialize and script ActiveX controls not marked as safe" must be set to "Enable" or "Prompt". And easier and more secure way to do that is to add your site in the list of trusted sites. IeSpell can still be used. Take a look at the fck_config.js file for some configuration options. Thanks to EdwardRF. <LI> [<A href="https://sourceforge.net/tracker/index.php?func=detail&aid=748807&group_id=75348&atid=543656" target="_blank">SF Feature-748807</A>] [<A href="https://sourceforge.net/tracker/index.php?func=detail&aid=801030&group_id=75348&atid=543656" target="_blank">SF Feature-801030</A>] [<A href="https://sourceforge.net/tracker/index.php?func=detail&aid=880684&group_id=75348&atid=543656" target="_blank">SF Feature-880684</A>] New "<STRONG>Anchor" command</STRONG>, including context menu support. Thanks to G.Meijer. <LI> Special characters are replaced with their decimal HTML entities when the XHMTL support is enabled (only over IE5.5+). <LI> New <STRONG>Office 2003 Style</STRONG> toolbar icons are available. Just uncomment the config.ToolbarImagesPath key in the fck_config.js file. Thanks to Abdul-Aziz A. Al-Oraij. <STRONG>Attention</STRONG>: the default toolbar items have been moved to the "images/toolbar/default" directory. <LI> [<A href="https://sourceforge.net/tracker/index.php?func=detail&aid=934566&group_id=75348&atid=543655" target="_blank">SF Patch-934566</A>] <STRONG>Double click support</STRONG> for Images, Tables, Links, Anchors and all Form elements. Thanks to Top Man. <LI> New <STRONG>"New Page" command</STRONG> to start a typing from scratch. Thanks to Abdul-Aziz A. Al-Oraij. <LI> New <STRONG>"Replace" command</STRONG>. Thanks to Abdul-Aziz A. Al-Oraij. <LI> New <STRONG>"Advanced Font Style" command</STRONG>. Thanks to Abdul-Aziz A. Al-Oraij. <LI> [<A href="https://sourceforge.net/tracker/index.php?func=detail&aid=738193&group_id=75348&atid=543656" target="_blank">SF Feature-738193</A>] New <STRONG>"Save" command</STRONG>. It can be used to simulate a save action, but in fact it just submits the form where the editor is placed in. Thanks to Abdul-Aziz A. Al-Oraij. <LI> New <STRONG>"Universal Keyboard" command</STRONG>. This 22 charsets are available: Arabic, Belarusian, Bulgarian, Croatian, Czech, Danish, Finnish, French, Greek, Hebrew, Hungarian, Diacritical, Macedonian, Norwegian, Polish, Russian, Serbian (Cyrillic), Serbian (Latin), Slovak, Spanish, Ukrainian and Vietnamese. Includes a keystroke listener to type Arabic on none Arabic OS or machine. Thanks to Abdul-Aziz A. Al-Oraij. <LI> [<A href="https://sourceforge.net/tracker/index.php?func=detail&aid=935358&group_id=75348&atid=543655" target="_blank">SF Patch-935358</A>] New <STRONG>"Preview" command</STRONG>. Context menu option is included and can be deactivated throw the config.ShowPreviewContextMenu configuration. Thanks to Ben Ramsey. <LI> New "<STRONG>Table Auto Format</STRONG>" context menu command. Hack a little the fck_config.js and the fck_editorarea.css files. Thanks to Alexandros Lezos. <LI> New "<STRONG>Bulleted List Properties</STRONG> " context menu to define its type and class. Thanks to Alexandros Lezos. <LI> The <STRONG>image dialog</STRONG> box has been a <STRONG>redesigned</STRONG> . Thanks to Mark Fierling. <LI> Images now always have the <STRONG>"alt" attribute</STRONG> set, even when it's value is empty. Thanks to Andreas Barnet. <LI> [<A href="https://sourceforge.net/tracker/index.php?func=detail&aid=942250&group_id=75348&atid=543655" target="_blank">SF Patch-942250</A>] You can set on fck_config.js to <STRONG>automatically clean Word</STRONG> pasting operations without a user confirmation. <LI> Forms element dialogs and other localization pending labels has been updated. <LI> A new <STRONG>Lithuanian</STRONG> language file is available. Thanks to Tauras Paliulis. <LI> A new <STRONG>Hebrew</STRONG> language file is available. Thanks to Ophir Radnitz. <LI> A new <STRONG>Serbian</STRONG> language file is available. Thanks to Zoran Subic. <LI> <STRONG>Danish</STRONG> language file updates. Thanks to Flemming Jensen. <LI> <STRONG>Catalan</STRONG> language file updates. Thanks to Jordi Cerdan. <LI> [<A href="https://sourceforge.net/tracker/index.php?func=detail&aid=936514&group_id=75348&atid=543655" target="_blank">SF Patch-936514</A>] [<A href="https://sourceforge.net/tracker/?func=detail&atid=543653&aid=918716&group_id=75348">SF BUG-918716</A>] [<A href="https://sourceforge.net/tracker/index.php?func=detail&aid=931037&group_id=75348&atid=543653">SF BUG-931037</A>] [<A href="https://sourceforge.net/tracker/index.php?func=detail&aid=865864&group_id=75348&atid=543653">SF BUG-865864</A>] [<A href="https://sourceforge.net/tracker/index.php?func=detail&aid=915410&group_id=75348&atid=543653">SF BUG-915410</A>] [<A href="https://sourceforge.net/tracker/index.php?func=detail&aid=918716&group_id=75348&atid=543653">SF BUG-918716</A>] Some <STRONG>languages files</STRONG> were not saved on <STRONG> UTF-8</STRONG> format causing some javascript errors on loading the editor or making "undefined" to show on editor labels. This problem was solved. <LI> Updates on the testsubmit.php file. Thanks to Geat and Gabriel Schillaci <LI> [<A href="https://sourceforge.net/tracker/?func=detail&atid=543653&aid=924620&group_id=75348">SF BUG-924620</A>] There was a problem when setting a name to an editor instance when the name is used by another tag. For example when using "description" as the name in a page with the <META name="<SPAN lang="EN-GB" style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-GB; mso-fareast-language: IT; mso-bidi-language: AR-SA">description"> tag. <LI> [<A href="https://sourceforge.net/tracker/index.php?func=detail&aid=935018&group_id=75348&atid=543653">SF BUG-935018</A>] The "buletted" typo has been corrected. <LI> [<A href="https://sourceforge.net/tracker/index.php?func=detail&aid=902122&group_id=75348&atid=543653">SF BUG-902122</A>] Wrong css and js file references have been corrected. <LI> [<A href="https://sourceforge.net/tracker/index.php?func=detail&aid=918942&group_id=75348&atid=543653">SF BUG-918942</A>] All dialog boxes now accept Enter and Escape keys as Ok and Cancel buttons.</LI></UL> <P>* This version has been partially sponsored by <A href="http://www.genuitec.com/">Genuitec, LLC</A>.</P> <H3>Version 1.5</H3> <UL> <LI> [<A href="https://sourceforge.net/tracker/?func=detail&atid=543656&aid=913777&group_id=75348" target="_blank">SF Feature-913777</A>] <STRONG>New Form Commands</STRONG> are now available! Special thanks to G.Meijer. <LI> [<A href="https://sourceforge.net/tracker/index.php?func=detail&aid=861149&group_id=75348&atid=543656" target="_blank">SF Feature-861149</A>] <STRONG>Print Command</STRONG> is now available! <LI> [<A href="https://sourceforge.net/tracker/?func=detail&atid=543653&aid=743546&group_id=75348" target="_blank">SF BUG-743546</A>] The <STRONG>XHTML content duplication problem </STRONG>has been <STRONG>solved</STRONG> . Thanks to Paul Hutchison. <LI> [<A href="https://sourceforge.net/tracker/?func=detail&atid=543653&aid=875853&group_id=75348" target="_blank">SF BUG-875853</A>] The <STRONG>image dialog box</STRONG> now gives precedence for width and height values set as styles. In this way a user can change the size of the image directly inside the editor and the changes will be reflected in the dialog box. <LI> [<A href="https://sourceforge.net/tracker/?func=detail&atid=543656&aid=913777&group_id=75348" target="_blank">SF Feature-788368</A>] The sample <STRONG>file upload </STRONG> manager for ASPX now uses <STRONG>guids</STRONG> for the file name generation. In this way a support XML file is not needed anymore. <LI> It's possible now to <STRONG>programmatically change the Base Path</STRONG> of the editor if it's installed in a directory different of "/FCKeditor/". Something like this:<BR> oFCKeditor.BasePath = '/FCKeditor/' ;<BR> Take a look at the _test directory for samples. <LI> There was a little bug in the TAB feature that moved the insertion point if there were any object (images, tables) in the content. It has been fixed. <LI> The problem with <STRONG>accented and international characters</STRONG> on the PHP test page was solved. <LI> A new <STRONG>Chinese (Taiwan)</STRONG> language file is available. Thanks to Nil. <LI> A new <STRONG>Slovenian</STRONG> language file is available. Thanks to Pavel Rotar. <LI> A new <STRONG>Catalan</STRONG> language file is available. Thanks to Jordi Cerdan. <LI> A new <STRONG>Arabic</STRONG> language file is available. Thanks to Abdul-Aziz A. Al-Oraij. <LI> Small corrections on the <STRONG>Norwegian</STRONG> language file. <LI> A Java version for the test results (testsubmit.jsp) is now available. Thanks to Pritpal Dhaliwal. <LI> When using Javascript to create a editor instance it's possible now to easily get the editor's value calling oFCKeditor.GetValue() (eg.). Better Javascript API interfaces will be available on version 2.0. <LI> If <STRONG>XHTML</STRONG> is enabled the editor cleans the HTML before showing it on the Source View, so the exact result can be viewed by the user. This option can be activated setting config.EnableSourceXHTML = true in the fck_config.js file. <LI> The <STRONG>JS integration object</STRONG> now escapes all configuration settings, in this way a user can use <STRONG>reserved chars</STRONG> on it. For example: <BR> oFCKeditor.Config["ImageBrowserURL"] = '/imgs/browse.asp?filter=abc*.jpg&userid=1'; <LI> A minimal browse server sample is now available in ASP. Thanks to Andreas Barnet. </LI> </UL> <H3>Version 1.4</H3> <UL> <LI> <STRONG>ATTENTION: For PHP users</STRONG>: The editor was changed and now uses <STRONG> htmlspecialchars</STRONG> instead of <STRONG>htmlentities</STRONG> when handling the initial value. It should works well, but please make some tests before upgrading definitively. If there is any problem just uncomment the line in the fckeditor.php file (and send me a message!). <LI> The editor is now integrated with <STRONG>ieSpell</STRONG> (<A href="http://www.iespell.com">http://www.iespell.com</A>) for <STRONG>Spell Checking</STRONG>. You can configure the download URL in then fck_config.js file. Thanks to Sanjay Sharma. (ieSpell is free for personal use but must be paid for commercial use) <LI> <STRONG>Table</STRONG> and <STRONG>table cell</STRONG> dialogs has been changed. Now you can <STRONG>select the class</STRONG> you want to be applied. Thanks to Alexander Lezos. <LI> [<A href="http://sourceforge.net/tracker/index.php?func=detail&aid=865378&group_id=75348&atid=543656" target="_blank">SF Feature-865378</A>]A new <STRONG>upload support is available for ASP</STRONG>. It uses the /UserImages/ folder in the root of the web site as the files container and a counter controlled by the upload.cnt file. Both must have write permissions set to the IUSR_xxx user. Thanks to Trax and Juanjo. <LI> [<A href="http://sourceforge.net/tracker/index.php?func=detail&aid=798128&group_id=75348&atid=543655" target="_blank">SF Patch-798128</A>] The user (programmer) can now define a <STRONG> custom separator</STRONG> for the list items of a combo in the toolbar. Thanks to Wulff D. Heiss. <LI> [<A href="http://sourceforge.net/tracker/index.php?func=detail&aid=741963&group_id=75348&atid=543656" target="_blank">SF Feature-741963</A>][<A href="http://sourceforge.net/tracker/index.php?func=detail&aid=878941&group_id=75348&atid=543656" target="_blank">SF Feature-878941</A>][<A href="http://sourceforge.net/tracker/index.php?func=detail&aid=869389&group_id=75348&atid=543655" target="_blank">SF Patch-869389</A>] A minimal support for a fake <STRONG>TAB is now available</STRONG>, even if HTML has no support for TAB. Now when the user presses the TAB key a configurable number of spaces (&nbsp;) is added. Take a look at config.TabSpaces on the fck_config.js file. No action is performed if it is set to zero. The default value is 4. Thanks to Phil Hassey. <LI> [<A href="http://sourceforge.net/tracker/index.php?func=detail&aid=782779&group_id=75348&atid=543653" target="_blank">SF BUG-782779</A>][<A href="http://sourceforge.net/tracker/index.php?func=detail&aid=790939&group_id=75348&atid=543653" target="_blank">SF BUG-790939</A>] The problem with big images has been corrected. Thanks to Raver. <LI> [<A href="https://sourceforge.net/tracker/?func=detail&atid=543653&aid=853374&group_id=75348" target="_blank">SF BUG-862975</A>] Now the editor does nothing if no image is selected in the image dialog box and the OK button is hit. <LI> [<A href="http://sourceforge.net/tracker/index.php?func=detail&aid=851609&group_id=75348&atid=543653" target="_blank">SF BUG-851609</A>] The problem with ASP and null values has been solved. <LI> <STRONG>Norwegean</STRONG> language pack. Thanks to Martin Kronstad. <LI> <STRONG>Hungarian</STRONG> language pack. Thanks to Balzs Szab. <LI> <STRONG>Bosnian</STRONG> language pack. Thanks to Trax. <LI> <STRONG>Japanese</STRONG> language pack. Thanks to Kato Yuichiro. <LI> Updates on the <STRONG>Polish</STRONG> language pack. Thanks to Norbert Neubauer. <LI> The <STRONG>Chinese (Taiwan)</STRONG> (zh-tw) has been removed from the package because it's corrupt. I'm sorry. I hope someone could send me a good version soon. </LI> </UL> <H3>Version 1.3.1</H3> <UL> <LI> It's now possible to configure the editor the insert a <STRONG><BR> tag instead of <P></STRONG> when the user presses the <STRONG><Enter></STRONG> key. Take a look at the fck_config.js configuration file for the "<STRONG>UseBROnCarriageReturn</STRONG>" key. This option is disabled by default. <LI> <STRONG>Icelandic</STRONG> language pack. Thanks to Andri skarsson. <LI> [<A href="https://sourceforge.net/tracker/?func=detail&atid=543653&aid=853374&group_id=75348">SF BUG-853374</A>] On IE 5.0 there was a little error introduced with version 1.3 on initialization. It was corrected. <LI> [<A href="https://sourceforge.net/tracker/?func=detail&atid=543653&aid=853372&group_id=75348">SF BUG-853372</A>] On IE 5.0 there was a little error introduced with version 1.3 when setting the focus in the editor. It was corrected. <LI> Minor errors on the language file for <STRONG>english</STRONG> has been corrected. Thanks to Anders Madsen. <LI> Minor errors on the language file for <STRONG>danish</STRONG> has been corrected. Thanks to Martin Johansen. </LI> </UL> <H3>Version 1.3</H3> <UL> <LI> Language support for <STRONG>Danish, Polish, Simple Chinese, Slovak, Swedish and Turkish</STRONG>. <LI> Language updates for <STRONG>Romanian</STRONG>. <LI> It's now possible to <STRONG>override</STRONG> any of the <STRONG>editor's configurations</STRONG> (for now it's implemented just for JavaScript, ASPX and HTC modules). See _test/test.html for a sample. I'm now waiting for the Community for the ASP, CFM and PHP versions. <LI> A new method is available for <STRONG>PHP</STRONG> users. It's called <STRONG>ReturnFCKeditor</STRONG>. It works exactly like CreateFCKeditor, but it <STRONG>returns a string with the HTML</STRONG> for the editor instead of output it (echo). This feature is useful for people who are working with Smarty Templates or something like that. Thanks to Timothy J. Finucane. <LI> Many people have had problems with <STRONG>international characters</STRONG> over <STRONG>PHP</STRONG>. I had also the same problem. PHP have strange problems with character encoding. The code hasn't been changed but just saved again with Western European encoding. <STRONG>Now it works well</STRONG> in my system.<BR> Take a look also at the "default_charset" configuration option at the php.ini file. It doesn't seem to be an editor's problem but a PHP issue. <LI> The "<STRONG>testsubmit.php</STRONG>" file now strips the "<STRONG>Magic Quotes</STRONG> " that are automatically added by PHP on form posts. <LI> A <STRONG>new language</STRONG> integration module is available for <STRONG>ASP/Jscript</STRONG>. Thanks to Dimiter Naydenov. <LI> <STRONG>New configuration</STRONG> options are available to <STRONG>customize the Target</STRONG> combo box in the <STRONG>Insert/Modify Link</STRONG> dialog box. Now you can hide it, or set which options are available in the combo box. Take a look at the fck_config.js file. <LI> The <STRONG>Text as Plain Text</STRONG> toolbar <STRONG>icon</STRONG> has been changed <STRONG>to avoid confusion</STRONG> with the Normal Paste or. Thanks to Kaupo Kalda. <LI> The file <STRONG>dhtmled.cab has been removed</STRONG> from the package. It's not needed to the editor to work and caused some confusion for a few users. <LI> The <STRONG>editor's content</STRONG> now <STRONG>doesn't loose the focus</STRONG> when the user clicks with the mouse in a toolbar button. <LI> On <STRONG>drag-and-drop</STRONG> operations the data to be inserted in the editor is now <STRONG>converted to plain text</STRONG> when the "<STRONG>ForcePasteAsPlainText</STRONG>" configuration is set to <STRONG>true</STRONG>. <LI> The <STRONG>image browser</STRONG> sample in PHP now <STRONG>sorts the files</STRONG> by name. Thanks to Sergey Lupashko. <LI> Two <STRONG>new configuration</STRONG> options are available to <STRONG>turn on/off by default</STRONG> the "<STRONG>Show Borders</STRONG>" and "<STRONG>Show Details</STRONG>" commands. <LI> Some <STRONG>characters have been removed</STRONG> from the "<STRONG>Insert Special Chars</STRONG>" dialog box because they were causing encoding problems in some languages. Thanks to Abomb Hua. <LI> <STRONG>JSP</STRONG> versions of the <STRONG>image and file upload and browsing</STRONG> features. Thanks to Simone Chiaretta.</LI></UL> <H3>Version 1.2.4</H3> <UL> <LI> Language support for <STRONG>Spanish, Finnish, Romanian and Korean</STRONG>. <LI> Language updates for <STRONG>German</STRONG>. <LI> New <STRONG>Zoom</STRONG> toolbar option. (<A href="https://sourceforge.net/forum/forum.php?thread_id=904116&forum_id=257180">Thanks to "mtn_roadie"</A>)</LI></UL> <H3>Version 1.2.2</H3> <UL> <LI> Language support for <STRONG>French</STRONG>. <LI> [<A href="http://sourceforge.net/tracker/index.php?func=detail&aid=782779&group_id=75348&atid=543653" target="_blank">SF BUG-782779</A>] Version 1.2 introduced a bug on the image dialog window: when changing the image, no update was done. This bug is now fixed. </LI> </UL> <H3>Version 1.2</H3> <UL> <LI> Enhancements to the <STRONG>Word cleaning</STRONG> feature (Thanks to Karl von Randow). <LI> The <STRONG>Table dialog box</STRONG> now handles the Style width and height set in the table (Thanks to Roberto Arruda). There where many problems on prior version when people changed manually the table's size, dragging the size handles, and then it was not possible to set a new size using the table dialog box. <LI> For the <STRONG>Image dialog box:</STRONG> <UL> <LI> No image is shown in the preview pane if no image has been set. <LI> If no HSpace is set in the image a "-1" value was shown in the dialog box. Now, nothing is shown if the value is negative. </LI> </UL> <LI> [<A href="https://sourceforge.net/tracker/index.php?func=detail&aid=739630&group_id=75348&atid=543653" target="_blank">SF BUG-739630</A>] Image with link lost the link when changing its properties. The problem is solved. <LI> Due to some problems in the XHTML cleaning (content duplication when the source HTML is dirty and malformed), the <STRONG>XHTML support is turned off by default</STRONG> from this version. You can still change this behavior and turn it on in the configuration file. <LI> Some little updates on the <STRONG>English </STRONG> language file. <LI> A few addition of missing entries on all languages files (translations for these changes are pending). <LI> Language files has been added for the following languages: <UL> <LI> <STRONG>Brazilian Portuguese</STRONG> (pt-br) <LI> <STRONG>Czech</STRONG> (cz) <LI> <STRONG>Dutch</STRONG> (nl) <LI> <STRONG>Russian</STRONG> (ru) <LI> <STRONG>Chinese (Taiwan)</STRONG> (zh-tw) <LI> <STRONG>Greek</STRONG> (gr) <LI> <STRONG>German</STRONG> (de)</LI></UL> </LI> </UL> <H3>Version 1.1</H3> <UL> <LI> The "<STRONG>Multi Language</STRONG>" system is now available. This version ships with English and Italian versions completed. Other languages will be available soon. The editor automatically detects the client language and sets all labels, tooltips and dialog boxes to it, if available. The auto detection and the default language can be set in the <STRONG>fck_config.file</STRONG>. <LI> Two files can now be created to isolate customizations code from the original source code of the editor: <STRONG>fckeditor.config.js</STRONG> and <STRONG>fckeditor.custom.js</STRONG>. Create these files in the root folder of your web site, if needed. The first one can be used to add or override configurations set on fck_config.js. The second one is used for custom actions and behaviors. <LI> A problem with relative links and images like "/test/test.doc" has been solved. In prior versions, only with XHTML support enabled, the URL was changed to something like "http://www.mysite.xxx/test/test.doc" (The domain was automatically added). Now the XHTML cleaning procedure gets the URLs exactly how they are defined in the editors HTML. <LI> [<A href="http://sourceforge.net/tracker/index.php?func=detail&aid=742168&group_id=75348&atid=543653" target="_blank">SF BUG-742168</A>] Mouse drag and drop from toolbar buttons has been disabled. <LI> [<A href="http://sourceforge.net/tracker/index.php?func=detail&aid=768210&group_id=75348&atid=543653" target="_blank">SF BUG-768210</A>] HTML entities, like <STRONG>&lt;</STRONG>, were not load correctly. The problem is solved. <LI> [<A href="http://sourceforge.net/tracker/index.php?func=detail&aid=748812&group_id=75348&atid=543653" target="_blank">SF BUG-748812</A>] The link dialog window doesn't open when the link button is grayed. </LI> </UL> <H3>Version 1.0</H3> <UL> <LI> Three new options are available in the configuration file to set what file types are allowed / denied to be uploaded from the "Insert Link" and "Insert Image" dialog boxes. <LI> Upload options, for links and images, are automatically hidden on IE 5.0 browsers (it's not compatible). <LI> [SF BUG-734894] Fixed a problem on XHTML cleaning: the value on INPUT fields were lost. <LI> [SF BUG-713797] Fixed some image dialog errors when trying to set image properties when no image is available. <LI> [SF BUG-736414] Developed a workaround for a DHTML control bug when loading in the editor some HTML started with <p><hr></p>. <LI> [SF BUG-737143] Paste from Word cleaning changed to solve some IE 5.0 errors. This feature is still not available over IE 5.0. <LI> [SF BUG-737233] CSS mappings are now OK on the PHP image browser module. <LI> [SF BUG-737495] The image preview in the image dialog box is now working correctly. <LI> [SF BUG-737532] The editor automatically switches to WYSIWYG mode when the form is posted. <LI> [SF BUG-739571] The editor is now working well over Opera (as for Netscape, a TEXTAREA is shown). </LI> </UL> <H3>Version 1.0 Final Candidate</H3> <UL> <LI> A new dialog box for the "Link" command is available. Now you can upload and browse the server exactly like the image dialog box. It's also possible to define the link title and target window (_blank, _self, _parent and _top). As with the image dialog box, a sample (and simple) file server browser is available. <LI> A new configuration option is available to force every paste action to be handled as plain text. See "config.ForcePasteAsPlainText" in fck_config.js. <LI> A new Toolbar button is available: "Paste from Word". It automatically cleans the clipboard content before pasting (removesWord styles, classes, xml stuff, etc...). This command is available for IE 5.5 and more. For IE 5.0 users, a message is displayed advising that the text will not be cleaned before pasting. <LI> The editor automatically detects Word clipboard data on pasting operations and asks the user to clean it before pasting. This option is turned on by default but it can be configured. See "config.AutoDetectPasteFromWord" in fck_config.js. <LI> Table properties are now available in cells' right click context menu. <LI> It's now possible to edit cells advanced properties from it's right click context menu. </LI> </UL> <H3>Version 1.0 Release Candidate 1 (RC1)</H3> <UL> <LI> Some performance improvements. <LI> The file dhtmled.cab has been added to the package for clients ho needs to install the Microsoft DHTML Editor component. <LI> [SF BUG-713952] The format command options are localized, so it depends on the IE language to work. Until version 0.9.5 it was working only over English IE browsers. Now the options are load dynamically on the client using the client's language. <LI> [SF BUG-712103] The style command is localized, so it depends on the IE language to work. Until version 0.9.5 it was working only over English IE browsers. Now it configures itself using the client's language. <LI> [SF BUG-726137] On version 0.9.5, some commands (special chars, image, emoticons, ...) remove the next available character before inserting the required content even if no selection was made in the editor. Now the editor replaces only the selected content (if available). </LI> </UL> <H3>Version 0.9.5 beta</H3> <UL> <LI> XHTML support is now available! It can be enabled/disabled in the fck_config.js file. <LI> "Show Table Borders" option: show borders for tables with borders size set to zero. <LI> "Show Details" option: show hidden elements (comments, scripts, paragraphs, line breaks) <LI> IE behavior integration module. Thanks to Daniel Shryock. <LI> "Find" option: to find text in the document. <LI> More performance enhancements. <LI> New testsubmit.php file. Thansk to Jim Michaels. <LI> Two initial PHP upload manager implementations (not working yet). Thanks to Frederic Tyndiuk and Christian Liljedahl. <LI> Initial PHP image browser implementation (not working yet). Thanks to Frederic Tyndiuk. <LI> Initial CFM upload manager implementation. Thanks to John Watson. </LI> </UL> <H3>Version 0.9.4 beta</H3> <UL> <LI> ColdFusion module integration is now available! Thanks to John Watson. <LI> "Insert Smiley" toolbar option! Thanks to Fredox. Take a look at fck_config.js for configuration options. <LI> "Paste as plain text" toolbar option! <LI> Right click support for links (edit / remove). <LI> Buttons now are shown in gray when disabled. <LI> Buttons are shown just when the image is downloaded (no more "red x" while waiting for it). <LI> The toolbar background color can be set with a CSS style (see fck_editor.css). <LI> Toolbar images have been reviewed: <UL> <LI> Now they are transparent. <LI> No more over...gif for every button (so the editor loads quicker). <LI> Buttons states are controlled with CSS styles. (see fck_editor.css).</LI></UL> <LI> Internet Explorer 5.0 compatibility, except for the image uploading popup. <LI> Optimizations when loading the editor. <LI> [SF BUG-709544] - Toolbar buttons wait for the images to be downloaded to start watching and responding the user actions (turn buttons on/off when the user changes position inside the editor). <LI> Javascript integration is now Object Oriented. CreateFCKeditor function is not available anymore. Take a look in test.html. <LI> Two new configuration options, ImageBrowser and ImageUpload, are available to turn on and off the image upload and image browsing options in the Image dialog box. This options can be hidden for a specific editor instance throw specific URL parameter in the editors IFRAME (upload=true/false&browse=true/false). All specific language integration modules handle this option. For sample see the _test directory. </LI> </UL> </SPAN> </BODY> </HTML> |
From: Joe S. <joe...@us...> - 2004-10-30 14:19:13
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/dialog/images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12486/phpslash-dev/public_html/scripts/fckeditor/editor/dialog/images Added Files: locked.gif reset.gif unlocked.gif Log Message: complete fckeditor addition --- NEW FILE: locked.gif --- GIF89a --- NEW FILE: reset.gif --- GIF89a --- NEW FILE: unlocked.gif --- GIF89a |
From: Joe S. <joe...@us...> - 2004-10-30 14:19:13
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12486/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals Added Files: fcktablehandler.js fcktablehandler_gecko.js fcktablehandler_ie.js Log Message: complete fckeditor addition --- NEW FILE: fcktablehandler.js --- /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: * http://www.opensource.org/licenses/lgpl-license.php * * For further information visit: * http://www.fckeditor.net/ * * File Name: fcktablehandler.js * Manage table operations. * * Version: 2.0 Beta 2 * Modified: 2004-09-07 00:42:30 * * File Authors: * Frederico Caldeira Knabben (fr...@fc...) */ var FCKTableHandler = new Object() ; FCKTableHandler.InsertRow = function() { // Get the row where the selection is placed in. var oRow = FCKSelection.MoveToAncestorNode("TR") ; if ( !oRow ) return ; // Create a clone of the row. var oNewRow = oRow.cloneNode( true ) ; // Insert the new row (copy) before of it. oRow.parentNode.insertBefore( oNewRow, oRow ) ; // Clean the row (it seems that the new row has been added after it). FCKTableHandler.ClearRow( oRow ) ; } FCKTableHandler.DeleteRows = function( row ) { // If no row has been passed as a parameer, // then get the row where the selection is placed in. if ( !row ) row = FCKSelection.MoveToAncestorNode("TR") ; if ( !row ) return ; // Get the row's table. var oTable = FCKTools.GetElementAscensor( row, 'TABLE' ) ; // If just one row is available then delete the entire table. if ( oTable.rows.length == 1 ) { FCKTableHandler.DeleteTable( oTable ) ; return ; } // Delete the row. row.parentNode.removeChild( row ) ; } FCKTableHandler.DeleteTable = function( table ) { // If no table has been passed as a parameer, // then get the table where the selection is placed in. if ( !table ) table = FCKSelection.MoveToAncestorNode("TABLE") ; if ( !table ) return ; // Delete the table. table.parentNode.removeChild( table ) ; } FCKTableHandler.InsertColumn = function() { // Get the cell where the selection is placed in. var oCell = FCKSelection.MoveToAncestorNode("TD") ; if ( !oCell ) return ; // Get the cell's table. var oTable = FCKTools.GetElementAscensor( oCell, 'TABLE' ) ; // Get the index of the column to be created (based on the cell). var iIndex = oCell.cellIndex + 1 ; // Loop throw all rows available in the table. for ( var i = 0 ; i < oTable.rows.length ; i++ ) { // Get the row. var oRow = oTable.rows[i] ; // If the row doens't have enought cells, ignore it. if ( oRow.cells.length < iIndex ) continue ; // Create the new cell element to be added. oCell = FCK.EditorDocument.createElement('TD') ; oCell.innerHTML = ' ' ; // Get the cell that is placed in the new cell place. var oBaseCell = oRow.cells[iIndex] ; // If the cell is available (we are not in the last cell of the row). if ( oBaseCell ) { // Insert the new cell just before of it. oRow.insertBefore( oCell, oBaseCell ) ; } else { // Append the cell at the end of the row. oRow.appendChild( oCell ) ; } } } FCKTableHandler.DeleteColumns = function() { // Get the cell where the selection is placed in. var oCell = FCKSelection.MoveToAncestorNode("TD") ; if ( !oCell ) return ; // Get the cell's table. var oTable = FCKTools.GetElementAscensor( oCell, 'TABLE' ) ; // Get the cell index. var iIndex = oCell.cellIndex ; // Loop throw all rows (from down to up, because it's possible that some // rows will be deleted). for ( var i = oTable.rows.length - 1 ; i >= 0 ; i-- ) { // Get the row. var oRow = oTable.rows[i] ; // If the cell to be removed is the first one and the row has just one cell. if ( iIndex == 0 && oRow.cells.length == 1 ) { // Remove the entire row. FCKTableHandler.DeleteRows( oRow ) ; continue ; } // If the cell to be removed exists the delete it. if ( oRow.cells[iIndex] ) oRow.removeChild( oRow.cells[iIndex] ) ; } } FCKTableHandler.InsertCell = function() { // Get the cell where the selection is placed in. var oCell = FCKSelection.MoveToAncestorNode("TD") ; if ( !oCell ) return ; // Create the new cell element to be added. var oNewCell = FCK.EditorDocument.createElement("TD"); oNewCell.innerHTML = " " ; // If it is the last cell in the row. if ( oCell.cellIndex == oCell.parentNode.cells.lenght - 1 ) { // Add the new cell at the end of the row. oCell.parentNode.appendChild( oNewCell ) ; } else { // Add the new cell before the next cell (after the active one). oCell.parentNode.insertBefore( oNewCell, oCell.nextSibling ) ; } } FCKTableHandler.DeleteCell = function( cell ) { // If this is the last cell in the row. if ( cell.parentNode.cells.length == 1 ) { // Delete the entire row. FCKTableHandler.DeleteRows( FCKTools.GetElementAscensor( cell, 'TR' ) ) ; return ; } // Delete the cell from the row. cell.parentNode.removeChild( cell ) ; } FCKTableHandler.DeleteCells = function() { var aCells = FCKTableHandler.GetSelectedCells() ; for ( var i = aCells.length - 1 ; i >= 0 ; i-- ) { FCKTableHandler.DeleteCell( aCells[i] ) ; } } FCKTableHandler.MergeCells = function() { alert( 'Command not implemented.' ) ; } FCKTableHandler.SplitCell = function() { alert( 'Command not implemented.' ) ; } FCKTableHandler.ClearRow = function( tr ) { // Get the array of row's cells. var aCells = tr.cells ; // Replace the contents of each cell with "nbsp;". for ( var i = 0 ; i < aCells.length ; i++ ) { aCells[i].innerHTML = ' ' ; } } --- NEW FILE: fcktablehandler_gecko.js --- /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: * http://www.opensource.org/licenses/lgpl-license.php * * For further information visit: * http://www.fckeditor.net/ * * File Name: fcktablehandler_gecko.js * Manage table operations (IE specific). * * Version: 2.0 Beta 2 * Modified: 2004-09-07 00:52:56 * * File Authors: * Frederico Caldeira Knabben (fr...@fc...) */ FCKTableHandler.GetSelectedCells = function() { var aCells = new Array() ; var oSelection = FCK.EditorWindow.getSelection() ; // If the selection is a text. if ( oSelection.rangeCount == 1 && oSelection.anchorNode.nodeType == 3 ) { var oParent = FCKTools.GetElementAscensor( oSelection.anchorNode, 'TD' ) ; if ( oParent ) { aCells[0] = oParent ; return aCells ; } } for ( var i = 0 ; i < oSelection.rangeCount ; i++ ) { var oRange = oSelection.getRangeAt(i) ; var oCell = oRange.startContainer.childNodes[ oRange.startOffset ] ; if ( oCell.tagName == 'TD' ) aCells[aCells.length] = oCell ; } return aCells ; } --- NEW FILE: fcktablehandler_ie.js --- /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: * http://www.opensource.org/licenses/lgpl-license.php * * For further information visit: * http://www.fckeditor.net/ * * File Name: fcktablehandler_ie.js * Manage table operations (IE specific). * * Version: 2.0 Beta 2 * Modified: 2004-09-05 02:17:58 * * File Authors: * Frederico Caldeira Knabben (fr...@fc...) */ FCKTableHandler.GetSelectedCells = function() { var aCells = new Array() ; var oRange = FCK.EditorDocument.selection.createRange() ; var oParent = oRange.parentElement() ; if ( oParent && oParent.tagName == "TD" ) aCells[0] = oParent ; else { var oParent = FCKSelection.MoveToAncestorNode( "TABLE" ) ; if ( oParent ) { // Loops throw all cells checking if the cell is, or part of it, is inside the selection // and then add it to the selected cells collection. for ( var i = 0 ; i < oParent.cells.length ; i++ ) { var oCellRange = FCK.EditorDocument.selection.createRange() ; oCellRange.moveToElementText( oParent.cells[i] ) ; if ( oRange.inRange( oCellRange ) || ( oRange.compareEndPoints('StartToStart',oCellRange) >= 0 && oRange.compareEndPoints('StartToEnd',oCellRange) <= 0 ) || ( oRange.compareEndPoints('EndToStart',oCellRange) >= 0 && oRange.compareEndPoints('EndToEnd',oCellRange) <= 0 ) ) { aCells[aCells.length] = oParent.cells[i] ; } } } } return aCells ; } |