4.7
-- NetCat 4.7 Community [0] component file, generated 2012-07-10 18:08:19
INSERT INTO `Class` SET `Class_Name` = 'Минимагазин: IntellectMoney', `Class_Group` = 'Минимагазин', `DaysToHold` = '0', `AllowTags` = '0', `FormPrefix` = '$f_AdminCommon\r\n$content', `FormSuffix` = '', `RecordTemplate` = '$f_AdminButtons', `RecordsPerPage` = '20', `SortBy` = '', `RecordTemplateFull` = '', `TitleTemplate` = '', `AddTemplate` = '', `EditTemplate` = '', `AddActionTemplate` = '', `EditActionTemplate` = '', `SearchTemplate` = '', `FullSearchTemplate` = '', `SubscribeTemplate` = '', `System_Table_ID` = '0', `Settings` = '$content = DV_IMONEY_ORDER_NOT_DATA_FOR_SHOW;\r\n\r\n$in_param = $nc_core->input->fetch_get_post();\r\n$dv_imoney = new dv_imoney();\r\n\r\nif( $in_param[\'payment\'] ) {\r\n	$link_info = dv_imoney::pay_link_decode( $in_param[\'payment\'] );\r\n	$order_info = $dv_imoney -> get_order_info( $link_info[\'id\'] );\r\n	if( $order_info[\'Status\'] == $dv_imoney -> ms_status( 5 ) ){\r\n		$content = DV_IMONEY_PAYMENT_HAS_COMPLETED;\r\n	} else {\r\n		$content = $dv_imoney -> show_pay_button( $order_info[\'Message_ID\'], \'form\' );\r\n	}\r\n}\r\n\r\nif( $in_param[\'orderId\'] ) {\r\n	if ( $_SERVER[\'REMOTE_ADDR\'] == \'91.212.151.242\' || $_SERVER[\'X_FORWARDED_FOR\'] == \'91.212.151.242\' ) {\r\n		$result = $dv_imoney -> handler( intval( $in_param[\'orderId\'] ) );\r\n		if ( $result ){\r\n			$content = "OK\\n";\r\n			//echo DV_IMONEY_PAYMENT_SUCCESS;\r\n		} else {\r\n			$content = DV_IMONEY_PAYMENT_FAIL;\r\n		}\r\n	} else {\r\n		$content = DV_IMONEY_PAYMENT_FAIL_NOT_IMONEY;\r\n	}\r\n}\r\n\r\n\r\n', `File_Path` = '', `File_Mode` = '0', `AddCond` = '', `EditCond` = '', `SubscribeCond` = '', `NL2BR` = '0', `UseCaptcha` = '0', `CheckActionTemplate` = '', `DeleteActionTemplate` = '', `CustomSettingsTemplate` = '', `ClassDescription` = '', `DeleteCond` = '', `DeleteTemplate` = '', `ClassTemplate` = '0', `CacheForUser` = '0', `Type` = 'useful', `TitleList` = '', `UseAltTitle` = '0';
CREATE TABLE `Message%INSERT_ID%` (  `Message_ID` int(11) NOT NULL AUTO_INCREMENT,  `User_ID` int(11) NOT NULL,  `Subdivision_ID` int(11) NOT NULL,  `Sub_Class_ID` int(11) NOT NULL,  `Priority` int(11) NOT NULL DEFAULT '0',  `Keyword` char(255) NOT NULL,  `ncTitle` varchar(255) DEFAULT NULL,  `ncKeywords` varchar(255) DEFAULT NULL,  `ncDescription` text,  `Checked` tinyint(4) NOT NULL DEFAULT '1',  `TimeToDelete` date DEFAULT NULL,  `TimeToUncheck` date DEFAULT NULL,  `IP` char(15) DEFAULT NULL,  `UserAgent` char(255) DEFAULT NULL,  `Parent_Message_ID` int(11) NOT NULL DEFAULT '0',  `Created` datetime NOT NULL,  `LastUpdated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,  `LastUser_ID` int(11) NOT NULL,  `LastIP` char(15) DEFAULT NULL,  `LastUserAgent` char(255) DEFAULT NULL,  PRIMARY KEY (`Message_ID`),  UNIQUE KEY `Sub_Class_ID` (`Sub_Class_ID`,`Message_ID`,`Keyword`),  KEY `User_ID` (`User_ID`),  KEY `LastUser_ID` (`LastUser_ID`),  KEY `Subdivision_ID` (`Subdivision_ID`),  KEY `Parent_Message_ID` (`Parent_Message_ID`)) ENGINE=MyISAM;
