XOOPS  2.6.0
preload.php
Go to the documentation of this file.
1 <?php
2 /*
3  You may not change or alter any portion of this comment or credits
4  of supporting developers from this source code or any supporting source code
5  which is considered copyrighted (c) material of the original comment or credit authors.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 */
11 
14 
23 {
24  public static function eventCoreIncludeCommonEnd($args)
25  {
26  $path = dirname(__DIR__);
27  XoopsLoad::addMap(array(
28  'images' => $path . '/class/helper.php',
29  ));
30  }
31 
33  {
34  /* @var $dhtml Xoops\Form\DhtmlTextArea */
35  $dhtml = $args[1];
36  $args[0] .= "<img src='" . \XoopsBaseConfig::get('url') . "/images/image.gif' alt='" . XoopsLocale::INSIDE_IMAGE . "' title='" . XoopsLocale::INSIDE_IMAGE . "' onclick='openWithSelfMain(\"" . \XoopsBaseConfig::get('url') . "/modules/images/imagemanager.php?target={$dhtml->getName()}\",\"imgmanager\",400,430);' onmouseover='style.cursor=\"hand\"'/>&nbsp;";
37  }
38 
39  public static function eventCoreImage($args)
40  {
41  $uri = '';
42  foreach (Request::get() as $k => $v) {
43  $uri .= urlencode($k) . '=' . urlencode($v) . '&';
44  }
45  Xoops::getInstance()->redirect("modules/images/image.php?{$uri}", 0);
46  }
47 
48  public static function eventCoreImagemanager($args)
49  {
50  $uri = '';
51  foreach (Request::get() as $k => $v) {
52  $uri .= urlencode($k) . '=' . urlencode($v) . '&';
53  }
54  Xoops::getInstance()->redirect("modules/images/imagemanager.php?{$uri}", 0);
55  }
56 }
$path
Definition: execute.php:31
static eventCoreImagemanager($args)
Definition: preload.php:48
static eventCoreClassXoopsformFormdhtmltextareaCodeicon($args)
Definition: preload.php:32
static getInstance()
Definition: Xoops.php:160
static eventCoreIncludeCommonEnd($args)
Definition: preload.php:24
const INSIDE_IMAGE
Definition: en_US.php:483
static get($name)
static eventCoreImage($args)
Definition: preload.php:39
$uri
Definition: search.php:30
static addMap(array $map)
Definition: xoopsload.php:40