Completed
Branch master (623467)
by Michael
01:32
created
class/myiframe.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -44,6 +44,9 @@
 block discarded – undo
44 44
 		}
45 45
 	}
46 46
 
47
+	/**
48
+	 * @param integer $id
49
+	 */
47 50
 	function load($id)
48 51
 	{
49 52
 		$sql = 'SELECT * FROM '.$this->db->prefix('myiframe').' WHERE frame_frameid='.intval($id);
Please login to merge, or discard this patch.
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -19,21 +19,21 @@  discard block
 block discarded – undo
19 19
 
20 20
 	function __construct($id = null)
21 21
 	{
22
-		$this->db =& Database::getInstance();
23
-		$this->initVar('frame_frameid',XOBJ_DTYPE_INT,null,false,10);
24
-		$this->initVar('frame_created',XOBJ_DTYPE_INT,null,false,10);
25
-		$this->initVar('frame_uid',XOBJ_DTYPE_INT,null,false,10);
26
-		$this->initVar('frame_description',XOBJ_DTYPE_TXTBOX, null, false,255);
27
-		$this->initVar('frame_width',XOBJ_DTYPE_TXTBOX, null, false,15);
28
-		$this->initVar('frame_height',XOBJ_DTYPE_TXTBOX, null, false,15);
29
-		$this->initVar('frame_align',XOBJ_DTYPE_INT,null,false,10);
30
-		$this->initVar('frame_frameborder',XOBJ_DTYPE_INT,null,false,10);
31
-		$this->initVar('frame_marginwidth',XOBJ_DTYPE_INT,null,false,10);
32
-		$this->initVar('frame_marginheight',XOBJ_DTYPE_INT,null,false,10);
33
-		$this->initVar('frame_scrolling',XOBJ_DTYPE_INT,null,false,10);
34
-		$this->initVar('frame_hits',XOBJ_DTYPE_INT,null,false,10);
35
-		$this->initVar('frame_url',XOBJ_DTYPE_TXTBOX, null, false,255);
36
-		if (!empty($id))  {
22
+		$this->db = & Database::getInstance();
23
+		$this->initVar('frame_frameid', XOBJ_DTYPE_INT, null, false, 10);
24
+		$this->initVar('frame_created', XOBJ_DTYPE_INT, null, false, 10);
25
+		$this->initVar('frame_uid', XOBJ_DTYPE_INT, null, false, 10);
26
+		$this->initVar('frame_description', XOBJ_DTYPE_TXTBOX, null, false, 255);
27
+		$this->initVar('frame_width', XOBJ_DTYPE_TXTBOX, null, false, 15);
28
+		$this->initVar('frame_height', XOBJ_DTYPE_TXTBOX, null, false, 15);
29
+		$this->initVar('frame_align', XOBJ_DTYPE_INT, null, false, 10);
30
+		$this->initVar('frame_frameborder', XOBJ_DTYPE_INT, null, false, 10);
31
+		$this->initVar('frame_marginwidth', XOBJ_DTYPE_INT, null, false, 10);
32
+		$this->initVar('frame_marginheight', XOBJ_DTYPE_INT, null, false, 10);
33
+		$this->initVar('frame_scrolling', XOBJ_DTYPE_INT, null, false, 10);
34
+		$this->initVar('frame_hits', XOBJ_DTYPE_INT, null, false, 10);
35
+		$this->initVar('frame_url', XOBJ_DTYPE_TXTBOX, null, false, 255);
36
+		if (!empty($id)) {
37 37
 			if (is_array($id)) {
38 38
 				$this->assignVars($id);
39 39
 			} else {
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 			return true;
90 90
 		}
91 91
 		if (!$objet->cleanVars()) {
92
-			foreach($objet->getErrors() as $oneerror) {
92
+			foreach ($objet->getErrors() as $oneerror) {
93 93
 				trigger_error($oneerror);
94 94
 			}
95 95
 			return false;
@@ -100,11 +100,11 @@  discard block
 block discarded – undo
100 100
 
101 101
 		if ($objet->isNew()) {
102 102
 			$format = "INSERT INTO %s (frame_created, frame_uid, frame_description, frame_width, frame_height, frame_align, frame_frameborder, frame_marginwidth, frame_marginheight, frame_scrolling, frame_hits, frame_url) VALUES (%u, %u, %s, %s, %s, %d, %d, %d, %d, %d, %u, %s)";
103
-			$sql = sprintf($format,$this->db->prefix('myiframe'),$frame_created,$frame_uid,$this->db->quoteString($frame_description),$this->db->quoteString($frame_width),$this->db->quoteString($frame_height),$frame_align,$frame_frameborder,$frame_marginwidth,$frame_marginheight, $frame_scrolling, $frame_hits,$this->db->quoteString($frame_url));
103
+			$sql = sprintf($format, $this->db->prefix('myiframe'), $frame_created, $frame_uid, $this->db->quoteString($frame_description), $this->db->quoteString($frame_width), $this->db->quoteString($frame_height), $frame_align, $frame_frameborder, $frame_marginwidth, $frame_marginheight, $frame_scrolling, $frame_hits, $this->db->quoteString($frame_url));
104 104
 			$force = true;
105 105
 		} else {
106 106
 			$format = "UPDATE %s SET frame_description=%s, frame_width=%s, frame_height=%s, frame_align=%d, frame_frameborder=%d, frame_marginwidth=%d, frame_marginheight=%d, frame_scrolling=%d, frame_hits=%u, frame_url=%s WHERE frame_frameid=%u";
107
-			$sql = sprintf($format, $this->db->prefix('myiframe'),$this->db->quoteString($frame_description),$this->db->quoteString($frame_width), $this->db->quoteString($frame_height), $frame_align, $frame_frameborder, $frame_marginwidth, $frame_marginheight, $frame_scrolling, $frame_hits, $this->db->quoteString($frame_url), $frame_frameid);
107
+			$sql = sprintf($format, $this->db->prefix('myiframe'), $this->db->quoteString($frame_description), $this->db->quoteString($frame_width), $this->db->quoteString($frame_height), $frame_align, $frame_frameborder, $frame_marginwidth, $frame_marginheight, $frame_scrolling, $frame_hits, $this->db->quoteString($frame_url), $frame_frameid);
108 108
 		}
109 109
 		if (false != $force) {
110 110
 			$result = $this->db->queryF($sql);
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 
197 197
 	function updatehits($frame_id)
198 198
 	{
199
-		$sql = sprintf("UPDATE %s SET frame_hits = frame_hits+1 WHERE frame_frameid=%u",$this->db->prefix('myiframe'), intval($frame_id));
199
+		$sql = sprintf("UPDATE %s SET frame_hits = frame_hits+1 WHERE frame_frameid=%u", $this->db->prefix('myiframe'), intval($frame_id));
200 200
 		$this->db->queryF($sql);
201 201
 	}
202 202
 
Please login to merge, or discard this patch.
include/functions.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,10 +38,10 @@
 block discarded – undo
38 38
 		$module =& $module_handler->getByDirname($repmodule);
39 39
 		$config_handler =& xoops_gethandler('config');
40 40
 		if ($module) {
41
-		    $moduleConfig =& $config_handler->getConfigsByCat(0, $module->getVar('mid'));
42
-	    	if(isset($moduleConfig[$option])) {
43
-	    		$retval= $moduleConfig[$option];
44
-	    	}
41
+			$moduleConfig =& $config_handler->getConfigsByCat(0, $module->getVar('mid'));
42
+			if(isset($moduleConfig[$option])) {
43
+				$retval= $moduleConfig[$option];
44
+			}
45 45
 		}
46 46
 	}
47 47
 	$tbloptions[$option]=$retval;
Please login to merge, or discard this patch.
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -20,31 +20,31 @@  discard block
 block discarded – undo
20 20
  * @copyright	Instant Zero (http://www.instant-zero.com)
21 21
  * @param string $option	module option's name
22 22
  */
23
-function myiframe_getmoduleoption($option, $repmodule='myiframe')
23
+function myiframe_getmoduleoption($option, $repmodule = 'myiframe')
24 24
 {
25 25
 	global $xoopsModuleConfig, $xoopsModule;
26
-	static $tbloptions= array();
27
-	if(is_array($tbloptions) && array_key_exists($option,$tbloptions)) {
26
+	static $tbloptions = array();
27
+	if (is_array($tbloptions) && array_key_exists($option, $tbloptions)) {
28 28
 		return $tbloptions[$option];
29 29
 	}
30 30
 
31
-	$retval=false;
31
+	$retval = false;
32 32
 	if (isset($xoopsModuleConfig) && (is_object($xoopsModule) && $xoopsModule->getVar('dirname') == $repmodule && $xoopsModule->getVar('isactive'))) {
33
-		if(isset($xoopsModuleConfig[$option])) {
34
-			$retval= $xoopsModuleConfig[$option];
33
+		if (isset($xoopsModuleConfig[$option])) {
34
+			$retval = $xoopsModuleConfig[$option];
35 35
 		}
36 36
 	} else {
37
-		$module_handler =& xoops_gethandler('module');
38
-		$module =& $module_handler->getByDirname($repmodule);
39
-		$config_handler =& xoops_gethandler('config');
37
+		$module_handler = & xoops_gethandler('module');
38
+		$module = & $module_handler->getByDirname($repmodule);
39
+		$config_handler = & xoops_gethandler('config');
40 40
 		if ($module) {
41
-		    $moduleConfig =& $config_handler->getConfigsByCat(0, $module->getVar('mid'));
42
-	    	if(isset($moduleConfig[$option])) {
43
-	    		$retval= $moduleConfig[$option];
41
+		    $moduleConfig = & $config_handler->getConfigsByCat(0, $module->getVar('mid'));
42
+	    	if (isset($moduleConfig[$option])) {
43
+	    		$retval = $moduleConfig[$option];
44 44
 	    	}
45 45
 		}
46 46
 	}
47
-	$tbloptions[$option]=$retval;
47
+	$tbloptions[$option] = $retval;
48 48
 	return $retval;
49 49
 }
50 50
 
@@ -55,10 +55,10 @@  discard block
 block discarded – undo
55 55
  * @author Instant Zero (http://www.instant-zero.com)
56 56
  * @copyright	Instant Zero (http://www.instant-zero.com)
57 57
  */
58
-function myiframe_FieldExists($fieldname,$table)
58
+function myiframe_FieldExists($fieldname, $table)
59 59
 {
60 60
 	global $xoopsDB;
61
-	$result=$xoopsDB->queryF("SHOW COLUMNS FROM	$table LIKE '$fieldname'");
61
+	$result = $xoopsDB->queryF("SHOW COLUMNS FROM	$table LIKE '$fieldname'");
62 62
 	return($xoopsDB->getRowsNum($result) > 0);
63 63
 }
64 64
 
@@ -79,18 +79,18 @@  discard block
 block discarded – undo
79 79
 {
80 80
 	global $xoTheme, $xoTheme, $xoopsTpl;
81 81
 	$xoopsTpl->assign('xoops_pagetitle', $page_title);
82
-	if(isset($xoTheme) && is_object($xoTheme)) {
83
-		if(!empty($meta_keywords)) {
84
-			$xoTheme->addMeta( 'meta', 'keywords', $meta_keywords);
82
+	if (isset($xoTheme) && is_object($xoTheme)) {
83
+		if (!empty($meta_keywords)) {
84
+			$xoTheme->addMeta('meta', 'keywords', $meta_keywords);
85 85
 		}
86
-		if(!empty($meta_description)) {
87
-			$xoTheme->addMeta( 'meta', 'description', $meta_description);
86
+		if (!empty($meta_description)) {
87
+			$xoTheme->addMeta('meta', 'description', $meta_description);
88 88
 		}
89
-	} elseif(isset($xoopsTpl) && is_object($xoopsTpl)) {	// Compatibility for old Xoops versions
90
-		if(!empty($meta_keywords)) {
89
+	} elseif (isset($xoopsTpl) && is_object($xoopsTpl)) {	// Compatibility for old Xoops versions
90
+		if (!empty($meta_keywords)) {
91 91
 			$xoopsTpl->assign('xoops_meta_keywords', $meta_keywords);
92 92
 		}
93
-		if(!empty($meta_description)) {
93
+		if (!empty($meta_description)) {
94 94
 			$xoopsTpl->assign('xoops_meta_description', $meta_description);
95 95
 		}
96 96
 	}
Please login to merge, or discard this patch.
blocks/myiframe_iframe.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@  discard block
 block discarded – undo
10 10
 
11 11
 function b_myiframe_iframe_show($options)
12 12
 {
13
-    $block = array();
14
-    $tblalign = array('top','middle','bottom','left','rigth');
15
-    $tblscrolling = array('yes','no','auto');
13
+	$block = array();
14
+	$tblalign = array('top','middle','bottom','left','rigth');
15
+	$tblscrolling = array('yes','no','auto');
16 16
 	$iframe_handler =& xoops_getmodulehandler('myiframe', 'myiframe');
17 17
 	$frame = null;
18 18
 	$frame = $iframe_handler->get($options[0]);
@@ -39,16 +39,16 @@  discard block
 block discarded – undo
39 39
 	$critere->setSort('frame_description');
40 40
 	$frarray = $iframe_handler->getObjects($critere);
41 41
 
42
-    $form = ""._MB_MYIFRAME_IFRAME."&nbsp;<select name='options[0]'>";
43
-    foreach($frarray as $oneframe) {
44
-    	$form .= "<option value='".$oneframe->getVar('frame_frameid')."'";
45
-    	if ($options[0] == $oneframe->getVar('frame_frameid')) {
46
-	        $form .= " selected='selected'";
47
-	    }
48
-	    $form .= '>'.$oneframe->getVar('frame_description').'</option>';
42
+	$form = ""._MB_MYIFRAME_IFRAME."&nbsp;<select name='options[0]'>";
43
+	foreach($frarray as $oneframe) {
44
+		$form .= "<option value='".$oneframe->getVar('frame_frameid')."'";
45
+		if ($options[0] == $oneframe->getVar('frame_frameid')) {
46
+			$form .= " selected='selected'";
47
+		}
48
+		$form .= '>'.$oneframe->getVar('frame_description').'</option>';
49 49
 	}
50
-    $form .= "</select>\n";
51
-    return $form;
50
+	$form .= "</select>\n";
51
+	return $form;
52 52
 }
53 53
 
54 54
 
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -11,13 +11,13 @@  discard block
 block discarded – undo
11 11
 function b_myiframe_iframe_show($options)
12 12
 {
13 13
     $block = array();
14
-    $tblalign = array('top','middle','bottom','left','rigth');
15
-    $tblscrolling = array('yes','no','auto');
16
-	$iframe_handler =& xoops_getmodulehandler('myiframe', 'myiframe');
14
+    $tblalign = array('top', 'middle', 'bottom', 'left', 'rigth');
15
+    $tblscrolling = array('yes', 'no', 'auto');
16
+	$iframe_handler = & xoops_getmodulehandler('myiframe', 'myiframe');
17 17
 	$frame = null;
18 18
 	$frame = $iframe_handler->get($options[0]);
19 19
 
20
-	if(is_object($frame)) {
20
+	if (is_object($frame)) {
21 21
 		$block['longdesc'] = $frame->getVar('frame_description');
22 22
 		$block['width'] = $frame->getVar('frame_width');
23 23
 		$block['height'] = $frame->getVar('frame_height');
@@ -33,14 +33,14 @@  discard block
 block discarded – undo
33 33
 
34 34
 function b_myiframe_iframe_edit($options)
35 35
 {
36
-	$iframe_handler =& xoops_getmodulehandler('myiframe', 'myiframe');
36
+	$iframe_handler = & xoops_getmodulehandler('myiframe', 'myiframe');
37 37
 	$frarray = array();
38
-	$critere = new Criteria('1', '1','=');
38
+	$critere = new Criteria('1', '1', '=');
39 39
 	$critere->setSort('frame_description');
40 40
 	$frarray = $iframe_handler->getObjects($critere);
41 41
 
42 42
     $form = ""._MB_MYIFRAME_IFRAME."&nbsp;<select name='options[0]'>";
43
-    foreach($frarray as $oneframe) {
43
+    foreach ($frarray as $oneframe) {
44 44
     	$form .= "<option value='".$oneframe->getVar('frame_frameid')."'";
45 45
     	if ($options[0] == $oneframe->getVar('frame_frameid')) {
46 46
 	        $form .= " selected='selected'";
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
 function b_myiframe_iframe_onthefly($options)
56 56
 {
57
-	$options = explode('|',$options);
57
+	$options = explode('|', $options);
58 58
 	$block = & b_myiframe_iframe_show($options);
59 59
 
60 60
 	$tpl = new XoopsTpl();
Please login to merge, or discard this patch.
language/russian/main.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,4 +6,4 @@
 block discarded – undo
6 6
  * ****************************************************************************
7 7
  */
8 8
 
9
-define("_MYIFRAME_FRAME_ERROR",	"Ошибка, выбранный iFrame не существует");
9
+define("_MYIFRAME_FRAME_ERROR", "Ошибка, выбранный iFrame не существует");
Please login to merge, or discard this patch.
language/russian/modinfo.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -7,21 +7,21 @@
 block discarded – undo
7 7
  */
8 8
 
9 9
 // Nom du module
10
-define("_MI_MYIFRAME_NAME","iFrames");
10
+define("_MI_MYIFRAME_NAME", "iFrames");
11 11
 
12 12
 // Description du module
13
-define("_MI_MYIFRAME_DESC","Вы можете управлять большим количеством iframe-страниц");
13
+define("_MI_MYIFRAME_DESC", "Вы можете управлять большим количеством iframe-страниц");
14 14
 
15 15
 // Pour le menu d'admin
16
-define("_MI_MYIFRAME_ADMENU1","Управление iFrames");
17
-define("_MI_MYIFRAME_ADMENU2","About");
16
+define("_MI_MYIFRAME_ADMENU1", "Управление iFrames");
17
+define("_MI_MYIFRAME_ADMENU2", "About");
18 18
 
19 19
 // New in version 1.4 *******************************************************************************************
20
-define("_MI_MYIFRAME_OPT0","Отображать фреймы в меню Xoops?");
21
-define("_MI_MYIFRAME_OPT0_DSC","С помощью этой опции Вы можете иметь ссылки на Ваши фреймы в меню Xoops");
20
+define("_MI_MYIFRAME_OPT0", "Отображать фреймы в меню Xoops?");
21
+define("_MI_MYIFRAME_OPT0_DSC", "С помощью этой опции Вы можете иметь ссылки на Ваши фреймы в меню Xoops");
22 22
 
23
-define("_MI_MYIFRAME_OPT1","Отображать список iframes?");
24
-define("_MI_MYIFRAME_OPT1_DSC","Когда страница модуля вызывается без параметров,<br /> на странице отображается список доступных фреймов");
23
+define("_MI_MYIFRAME_OPT1", "Отображать список iframes?");
24
+define("_MI_MYIFRAME_OPT1_DSC", "Когда страница модуля вызывается без параметров,<br /> на странице отображается список доступных фреймов");
25 25
 
26
-define("_MI_MYIFAME_BNAME1","Показать iframe");
26
+define("_MI_MYIFAME_BNAME1", "Показать iframe");
27 27
 
Please login to merge, or discard this patch.
language/russian/blocks.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,4 +6,4 @@
 block discarded – undo
6 6
  * ****************************************************************************
7 7
  */
8 8
 
9
-define("_MB_MYIFRAME_IFRAME","Выберите iframe для отображения");
9
+define("_MB_MYIFRAME_IFRAME", "Выберите iframe для отображения");
Please login to merge, or discard this patch.
language/russian/admin.php 1 patch
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -6,38 +6,38 @@
 block discarded – undo
6 6
  * ****************************************************************************
7 7
  */
8 8
 
9
-define("_AM_MYIFRAME_CONFIG","Конфигурация iFrames");
10
-define("_AM_MYIFRAME_ID","Frame Id");
11
-define("_AM_MYIFRAME_EDIT","Редактировать");
12
-define("_AM_MYIFRAME_DELETE","Удалить");
13
-define("_AM_MYIFRAME_CREATED","Дата создания");
14
-define("_AM_MYIFRAME_DESC","Описание");
15
-define("_AM_MYIFRAME_LONGDESC","Длинное описание");
16
-define("_AM_MYIFRAME_WIDTH","Ширина");
17
-define("_AM_MYIFRAME_HEIGHT","Высота");
18
-define("_AM_MYIFRAME_ALIGN","Выравнивание");
19
-define("_AM_MYIFRAME_FRAMEBORDER","Рамка");
20
-define("_AM_MYIFRAME_MARGINWIDTH","Ширина внешнего поля");
21
-define("_AM_MYIFRAME_MARGINHEIGHT","Высота внешнего поля");
22
-define("_AM_MYIFRAME_SCROLLING","Скроллинг");
23
-define("_AM_MYIFRAME_URL","Url");
24
-define("_AM_MYIFRAME_ACTION","Действие");
25
-define("_AM_MYIFRAME_ADD","Добавить iFrame");
26
-define("_AM_MYIFRAME_RESETBUTTON","Сброс");
27
-define("_AM_MYIFRAME_ADDBUTTON","Добавить");
28
-define("_AM_MYIFRAME_ERROR_ADD_INDEX","Ошибка, некоторые поля не заполнены");
29
-define("_AM_MYIFRAME_ADDED_OK","IFrame успешно добавлен");
30
-define("_AM_MYIFRAME_RUSUREDEL","Вы действительно хотите удалить этот iFrame?");
31
-define("_AM_MYIFRAME_DBUPDATED","База данных обновлена ​​успешно");
32
-define("_AM_MYIFRAME_UPDATE","Обновить");
9
+define("_AM_MYIFRAME_CONFIG", "Конфигурация iFrames");
10
+define("_AM_MYIFRAME_ID", "Frame Id");
11
+define("_AM_MYIFRAME_EDIT", "Редактировать");
12
+define("_AM_MYIFRAME_DELETE", "Удалить");
13
+define("_AM_MYIFRAME_CREATED", "Дата создания");
14
+define("_AM_MYIFRAME_DESC", "Описание");
15
+define("_AM_MYIFRAME_LONGDESC", "Длинное описание");
16
+define("_AM_MYIFRAME_WIDTH", "Ширина");
17
+define("_AM_MYIFRAME_HEIGHT", "Высота");
18
+define("_AM_MYIFRAME_ALIGN", "Выравнивание");
19
+define("_AM_MYIFRAME_FRAMEBORDER", "Рамка");
20
+define("_AM_MYIFRAME_MARGINWIDTH", "Ширина внешнего поля");
21
+define("_AM_MYIFRAME_MARGINHEIGHT", "Высота внешнего поля");
22
+define("_AM_MYIFRAME_SCROLLING", "Скроллинг");
23
+define("_AM_MYIFRAME_URL", "Url");
24
+define("_AM_MYIFRAME_ACTION", "Действие");
25
+define("_AM_MYIFRAME_ADD", "Добавить iFrame");
26
+define("_AM_MYIFRAME_RESETBUTTON", "Сброс");
27
+define("_AM_MYIFRAME_ADDBUTTON", "Добавить");
28
+define("_AM_MYIFRAME_ERROR_ADD_INDEX", "Ошибка, некоторые поля не заполнены");
29
+define("_AM_MYIFRAME_ADDED_OK", "IFrame успешно добавлен");
30
+define("_AM_MYIFRAME_RUSUREDEL", "Вы действительно хотите удалить этот iFrame?");
31
+define("_AM_MYIFRAME_DBUPDATED", "База данных обновлена ​​успешно");
32
+define("_AM_MYIFRAME_UPDATE", "Обновить");
33 33
 
34
-define("_AM_MYIFRAME_ALIGN_TOP","Верх");
35
-define("_AM_MYIFRAME_ALIGN_MIDDLE","Середина");
36
-define("_AM_MYIFRAME_ALIGN_BOTTOM","Низ");
37
-define("_AM_MYIFRAME_ALIGN_LEFT","Левый");
38
-define("_AM_MYIFRAME_ALIGN_RIGHT","Правый");
39
-define("_AM_MYIFRAME_AUTO","Авто");
40
-define("_AM_MYIFRAME_HITS","Хиты");
34
+define("_AM_MYIFRAME_ALIGN_TOP", "Верх");
35
+define("_AM_MYIFRAME_ALIGN_MIDDLE", "Середина");
36
+define("_AM_MYIFRAME_ALIGN_BOTTOM", "Низ");
37
+define("_AM_MYIFRAME_ALIGN_LEFT", "Левый");
38
+define("_AM_MYIFRAME_ALIGN_RIGHT", "Правый");
39
+define("_AM_MYIFRAME_AUTO", "Авто");
40
+define("_AM_MYIFRAME_HITS", "Хиты");
41 41
 
42 42
 // New in version 1.4 *******************************************************************************************
43 43
 
Please login to merge, or discard this patch.
admin/admin_header.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,14 +3,14 @@
 block discarded – undo
3 3
 include(XOOPS_ROOT_PATH."/include/cp_functions.php");
4 4
 include_once(XOOPS_ROOT_PATH."/kernel/module.php");
5 5
 include '../../../include/cp_header.php';
6
-if($xoopsUser){
6
+if ($xoopsUser) {
7 7
 	$xoopsModule = XoopsModule::getByDirname("myiframe");
8
-	if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) { 
9
-		redirect_header(XOOPS_URL."/",3,_NOPERM);
8
+	if (!$xoopsUser->isAdmin($xoopsModule->mid())) { 
9
+		redirect_header(XOOPS_URL."/", 3, _NOPERM);
10 10
 		exit();
11 11
 	}
12 12
 } else {
13
-	redirect_header(XOOPS_URL."/",3,_NOPERM);
13
+	redirect_header(XOOPS_URL."/", 3, _NOPERM);
14 14
 	exit();
15 15
 }
16 16
 
Please login to merge, or discard this patch.
admin/admin_footer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,5 +3,5 @@
 block discarded – undo
3 3
 $pathIcon32 = \Xmf\Module\Admin::iconUrl('', 32);
4 4
 echo "<br style='clear:both;' />";
5 5
 echo "<div style='text-align:center;vertical-align:middle;'><div style='display:inline-block;float:right;' class='center smallsmall italic pad5'><a href='http://xoops.instant-zero.com' target='_blank'><img src='../assets/images/instantzero.gif'></a></div>";
6
-echo "<div style='display:inline-block;' class='center smallsmall italic pad5'><strong>" . $xoopsModule->getVar("name") . "</strong> is maintained by the <br /><br /><a class='tooltip' rel='external' href='http://www.xoops.org/' title='Visit XOOPS Community'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a></div></div>";
6
+echo "<div style='display:inline-block;' class='center smallsmall italic pad5'><strong>".$xoopsModule->getVar("name")."</strong> is maintained by the <br /><br /><a class='tooltip' rel='external' href='http://www.xoops.org/' title='Visit XOOPS Community'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a></div></div>";
7 7
 xoops_cp_footer();
8 8
\ No newline at end of file
Please login to merge, or discard this patch.