|
From: <ada...@us...> - 2003-09-20 22:14:23
|
Update of /cvsroot/phpwebsite-comm/modules/article/class
In directory sc8-pr-cvs1:/tmp/cvs-serv27822/class
Modified Files:
Section.php
Log Message:
Fixed problem with image uploading - Thanks GBrackett!
Index: Section.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/article/class/Section.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Section.php 31 Aug 2003 22:47:32 -0000 1.6
--- Section.php 20 Sep 2003 22:14:17 -0000 1.7
***************
*** 217,226 ****
. $_SESSION['OBJ_help']->show_link('article', 'section_title').'<br />'
. $GLOBALS['core']->js_insert('wysiwyg', 'SECT_edit', 'SECT_title');
! $myelements[0] .= $GLOBALS['core']->formTextField('SECT_title', htmlspecialchars($this->title), 55, 79)
. '<br />';
$myelements[0] .= $_SESSION['translate']->it('Section Text').':'
. $_SESSION['OBJ_help']->show_link('article', 'section_text') .'<br />'
. $GLOBALS['core']->js_insert('wysiwyg', 'SECT_edit', 'SECT_text');
! $myelements[0] .= $GLOBALS['core']->formTextArea('SECT_text', stripslashes($this->text), 20, 79)
. '<br />';
/* If there is a current image, show it */
--- 217,226 ----
. $_SESSION['OBJ_help']->show_link('article', 'section_title').'<br />'
. $GLOBALS['core']->js_insert('wysiwyg', 'SECT_edit', 'SECT_title');
! $myelements[0] .= $GLOBALS['core']->formTextField('SECT_title', htmlspecialchars($this->title), 55, 70)
. '<br />';
$myelements[0] .= $_SESSION['translate']->it('Section Text').':'
. $_SESSION['OBJ_help']->show_link('article', 'section_text') .'<br />'
. $GLOBALS['core']->js_insert('wysiwyg', 'SECT_edit', 'SECT_text');
! $myelements[0] .= $GLOBALS['core']->formTextArea('SECT_text', stripslashes($this->text), 20, 60)
. '<br />';
/* If there is a current image, show it */
***************
*** 232,236 ****
$myelements[0] .= '<img src="' .$_SESSION['SES_ART_master']->image_directory . $this->image['directory'] . $this->image['name'] . '" /><br />';
/* If user is allowed to play around with the images... */
! if ($_SESSION['OBJ_user']->allow_access('article', 'images_in_articles')
|| ($_SESSION['SES_ART_master']->val['user_images_in_article'] && $_SESSION['OBJ_user']->isUser()))
{
--- 232,236 ----
$myelements[0] .= '<img src="' .$_SESSION['SES_ART_master']->image_directory . $this->image['directory'] . $this->image['name'] . '" /><br />';
/* If user is allowed to play around with the images... */
! if ($_SESSION['OBJ_user']->allow_access('article', 'images_in_article')
|| ($_SESSION['SES_ART_master']->val['user_images_in_article'] && $_SESSION['OBJ_user']->isUser()))
{
***************
*** 274,286 ****
. $_SESSION['translate']->it('Short Image Description') .': '
. $_SESSION['OBJ_help']->show_link('article', 'section_image_desc')
! . $GLOBALS['core']->formTextField('SECT_alt', htmlspecialchars($this->image['alt']), 79, 255)
. '<br />';
$myelements[0] .= $_SESSION['translate']->it('This Image Links To') . '...: '
. $_SESSION['OBJ_help']->show_link('article', 'section_image_link')
! . $GLOBALS['core']->formTextField('SECT_link', htmlspecialchars($this->image['link']), 79, 255)
. '<br />';
$myelements[0] .= $_SESSION['translate']->it('Link caption').': '
. $_SESSION['OBJ_help']->show_link('article', 'section_image_caption')
! . $GLOBALS['core']->formTextField('SECT_image_caption', htmlspecialchars($this->image['caption']), 79, 255)
. '<br />';
}
--- 274,286 ----
. $_SESSION['translate']->it('Short Image Description') .': '
. $_SESSION['OBJ_help']->show_link('article', 'section_image_desc')
! . $GLOBALS['core']->formTextField('SECT_alt', htmlspecialchars($this->image['alt']), 60, 255)
. '<br />';
$myelements[0] .= $_SESSION['translate']->it('This Image Links To') . '...: '
. $_SESSION['OBJ_help']->show_link('article', 'section_image_link')
! . $GLOBALS['core']->formTextField('SECT_link', htmlspecialchars($this->image['link']), 60, 255)
. '<br />';
$myelements[0] .= $_SESSION['translate']->it('Link caption').': '
. $_SESSION['OBJ_help']->show_link('article', 'section_image_caption')
! . $GLOBALS['core']->formTextField('SECT_image_caption', htmlspecialchars($this->image['caption']), 60, 255)
. '<br />';
}
|