Compare commits
No commits in common. "master" and "revert-268-master" have entirely different histories.
master
...
revert-268
11
README.md
|
@ -1,9 +1,6 @@
|
|||
# ClipBucket - Open Source Video Streaming Platform
|
||||
|
||||
## Read the Developer Guides here
|
||||
https://docs.clipbucket.com/
|
||||
|
||||
Should have added years ago, but...well now atleast its here
|
||||
#ClipBucket - Broadcasting like a boss!
|
||||

|
||||
</br>
|
||||
|
||||
<div align="center">
|
||||
<a href="http://demo.clipbucket.com/">View Demo</a> | <a href="http://clip-bucket.com/download">Download</a>
|
||||
|
@ -19,7 +16,7 @@ You can start a fully dedicated video sharing website or photo sharing websites
|
|||
</br>
|
||||
<a href="http://clip-bucket.com">ClipBucket Official Website </a>
|
||||
</br>
|
||||
<a href="https://docs.clipbucket.com/">ClipBucket Documentation</a>
|
||||
<a href="http://docs.clip-bucket.com">ClipBucket Documentation</a>
|
||||
|
||||
# Server Requirements
|
||||
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
<li>Linux Server (some old distributions are not supported)</li>
|
||||
<li>Apache Web Server</li>
|
||||
<li>MySQL (version 4 +)</li>
|
||||
<li>PHP ( PHP 5 - 7.0 )</li>
|
||||
<li>PHP ( PHP 5)</li>
|
||||
<li>PHP Configuration</li>
|
||||
<ul>
|
||||
<ul>
|
||||
<li>safe_mode = off</li>
|
||||
<li>max_execution_time = 1000 (recommended to prevent timeouts during video upload/conversion)</li>
|
||||
<li>session.gc_maxlifetime = 14000 (recommended to prevent session expires during video upload)</li>
|
||||
|
@ -25,7 +25,6 @@
|
|||
<li>upload_max_filesize = 100M (recommended maximum video upload size in MB)</li>
|
||||
<li>post_max_size = 100M (recommended maximum video upload size in MB)</li>
|
||||
<li>GD library Enabled (v2 or higher) </li>
|
||||
<li>PHP fileinfo extension is a must to be installed and enabled</li>
|
||||
</ul>
|
||||
<li><strong>Mplayer + Mencoder</strong> (<a rel="nofollow" href="http://www.mplayerhq.hu/design7/dload.html">http://www.mplayerhq.hu/design7/dload.html</a>)</li>
|
||||
<li><strong>Flv2tool</strong> (<a rel="nofollow" href="http://inlet-media.de/flvtool2">http://inlet-media.de/flvtool2</a>)</li>
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"name": "ClipBucket",
|
||||
"description": "Open Source Video Sjaring Script",
|
||||
"version": "4.1"
|
||||
}
|
|
@ -6,7 +6,7 @@ CREATE TABLE `user_levels` (
|
|||
`user_level_name` varchar(100) CHARACTER SET latin1 NOT NULL,
|
||||
`user_level_is_default` enum('yes','no') NOT NULL DEFAULT 'no',
|
||||
PRIMARY KEY (`user_level_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=16 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=16 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `user_levels`
|
||||
|
@ -50,7 +50,7 @@ CREATE TABLE `user_levels_permissions` (
|
|||
`edit_video` enum('yes','no') NOT NULL DEFAULT 'yes',
|
||||
`admin_del_access` enum('yes','no') NOT NULL DEFAULT 'yes',
|
||||
PRIMARY KEY (`user_level_permission_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=14 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=14 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `user_levels_permissions`
|
||||
|
@ -79,7 +79,7 @@ CREATE TABLE `user_permissions` (
|
|||
`permission_default` enum('yes','no') CHARACTER SET latin1 NOT NULL DEFAULT 'yes',
|
||||
PRIMARY KEY (`permission_id`),
|
||||
UNIQUE KEY `permission_code` (`permission_code`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=33 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=33 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `user_permissions`
|
||||
|
|
|
@ -14,7 +14,7 @@ CREATE TABLE `phrases` (
|
|||
`varname` varchar(250) NOT NULL DEFAULT '',
|
||||
`text` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=860 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=860 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `phrases`
|
||||
|
@ -891,6 +891,6 @@ CREATE TABLE `cb_stats` (
|
|||
`user_stats` text NOT NULL,
|
||||
`group_stats` text NOT NULL,
|
||||
PRIMARY KEY (`stat_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
|
||||
|
|
|
@ -13,6 +13,6 @@ CREATE TABLE `cb_sessions` (
|
|||
`agent` text NOT NULL,
|
||||
`last_active` datetime NOT NULL,
|
||||
PRIMARY KEY (`session_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
ALTER TABLE `cb_users` ADD `album_privacy` ENUM( 'public', 'private', 'friends' ) NOT NULL DEFAULT 'private' AFTER `is_subscribed`
|
|
@ -9,4 +9,4 @@ CREATE TABLE IF NOT EXISTS `cb_counters` (
|
|||
`date_added` varchar(200) NOT NULL,
|
||||
PRIMARY KEY (`counter_id`),
|
||||
UNIQUE KEY `query_md5` (`query_md5`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
||||
|
|
|
@ -32,7 +32,7 @@ CREATE TABLE IF NOT EXISTS `action_log` (
|
|||
`action_success` enum('yes','no') CHARACTER SET latin1 NOT NULL,
|
||||
`action_details` text CHARACTER SET latin1 NOT NULL,
|
||||
PRIMARY KEY (`action_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `action_log`
|
||||
|
@ -55,7 +55,7 @@ CREATE TABLE IF NOT EXISTS `ads_data` (
|
|||
`ad_impressions` bigint(255) NOT NULL DEFAULT '0',
|
||||
`date_added` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
PRIMARY KEY (`ad_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `ads_data`
|
||||
|
@ -84,7 +84,7 @@ CREATE TABLE IF NOT EXISTS `ads_placements` (
|
|||
`placement_name` varchar(50) NOT NULL,
|
||||
`disable` enum('yes','no') NOT NULL DEFAULT 'no',
|
||||
PRIMARY KEY (`placement_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=12 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=12 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `ads_placements`
|
||||
|
@ -107,7 +107,7 @@ INSERT INTO `ads_placements` (`placement_id`, `placement`, `placement_name`, `di
|
|||
|
||||
CREATE TABLE IF NOT EXISTS `cb_global_announcement` (
|
||||
`announcement` text NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
||||
|
||||
--
|
||||
-- Dumping data for table `cb_global_announcement`
|
||||
|
@ -133,7 +133,7 @@ CREATE TABLE IF NOT EXISTS `comments` (
|
|||
`voters` text NOT NULL,
|
||||
`date_added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`comment_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `comments`
|
||||
|
@ -151,7 +151,7 @@ CREATE TABLE IF NOT EXISTS `config` (
|
|||
`name` varchar(100) NOT NULL DEFAULT '',
|
||||
`value` mediumtext NOT NULL,
|
||||
PRIMARY KEY (`configid`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=84 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=84 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `config`
|
||||
|
@ -253,7 +253,7 @@ CREATE TABLE IF NOT EXISTS `contacts` (
|
|||
`userid` int(225) NOT NULL,
|
||||
`contact_userid` int(225) NOT NULL,
|
||||
PRIMARY KEY (`contact_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `contacts`
|
||||
|
@ -274,7 +274,7 @@ CREATE TABLE IF NOT EXISTS `conversion_queue` (
|
|||
`cqueue_conversion` enum('yes','no','p') NOT NULL DEFAULT 'no',
|
||||
`date_added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`cqueue_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `conversion_queue`
|
||||
|
@ -293,7 +293,7 @@ CREATE TABLE IF NOT EXISTS `countries` (
|
|||
`iso3` char(3) CHARACTER SET latin1 DEFAULT NULL,
|
||||
`name_en` varchar(64) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
-- Dumping data for table `countries`
|
||||
|
@ -555,7 +555,7 @@ CREATE TABLE IF NOT EXISTS `custom_fields` (
|
|||
`custom_field_hint_2` text NOT NULL,
|
||||
`date_added` datetime NOT NULL,
|
||||
PRIMARY KEY (`custom_field_list_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `custom_fields`
|
||||
|
@ -575,7 +575,7 @@ CREATE TABLE IF NOT EXISTS `editors_picks` (
|
|||
`date_added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`status` enum('0','1') NOT NULL DEFAULT '1',
|
||||
PRIMARY KEY (`pick_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `editors_picks`
|
||||
|
@ -594,7 +594,7 @@ CREATE TABLE IF NOT EXISTS `email_settings` (
|
|||
`email_settings_value` mediumtext NOT NULL,
|
||||
`email_settings_headers` mediumtext NOT NULL,
|
||||
PRIMARY KEY (`email_settings_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=9 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=9 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `email_settings`
|
||||
|
@ -625,7 +625,7 @@ CREATE TABLE IF NOT EXISTS `email_templates` (
|
|||
`email_template_allowed_tags` mediumtext NOT NULL,
|
||||
PRIMARY KEY (`email_template_id`),
|
||||
UNIQUE KEY `email_template_code` (`email_template_code`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `email_templates`
|
||||
|
@ -649,7 +649,7 @@ CREATE TABLE IF NOT EXISTS `favorites` (
|
|||
`userid` int(225) NOT NULL,
|
||||
`date_added` datetime NOT NULL,
|
||||
PRIMARY KEY (`favorite_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `favorites`
|
||||
|
@ -668,7 +668,7 @@ CREATE TABLE IF NOT EXISTS `flagged_videos` (
|
|||
`username` varchar(20) NOT NULL,
|
||||
`date_added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`flagged_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `flagged_videos`
|
||||
|
@ -689,7 +689,7 @@ CREATE TABLE IF NOT EXISTS `flags` (
|
|||
`flag_type` bigint(25) NOT NULL,
|
||||
`date_added` datetime NOT NULL,
|
||||
PRIMARY KEY (`flag_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `flags`
|
||||
|
@ -722,7 +722,7 @@ CREATE TABLE IF NOT EXISTS `groups` (
|
|||
`total_members` int(225) NOT NULL,
|
||||
`total_topics` int(225) NOT NULL,
|
||||
PRIMARY KEY (`group_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `groups`
|
||||
|
@ -742,7 +742,7 @@ CREATE TABLE IF NOT EXISTS `group_invitations` (
|
|||
`invited_by` varchar(16) NOT NULL,
|
||||
`date_added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`invitation_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `group_invitations`
|
||||
|
@ -763,7 +763,7 @@ CREATE TABLE IF NOT EXISTS `group_members` (
|
|||
`date_added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`active` enum('yes','no') NOT NULL DEFAULT 'yes',
|
||||
PRIMARY KEY (`group_mid`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `group_members`
|
||||
|
@ -785,7 +785,7 @@ CREATE TABLE IF NOT EXISTS `group_posts` (
|
|||
`reply_to` int(225) NOT NULL,
|
||||
`date_added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`post_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `group_posts`
|
||||
|
@ -809,7 +809,7 @@ CREATE TABLE IF NOT EXISTS `group_topics` (
|
|||
`videokey` mediumtext NOT NULL,
|
||||
`approved` enum('yes','no') NOT NULL DEFAULT 'yes',
|
||||
PRIMARY KEY (`topic_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `group_topics`
|
||||
|
@ -831,7 +831,7 @@ CREATE TABLE IF NOT EXISTS `group_videos` (
|
|||
`date_added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`approved` enum('yes','no') NOT NULL,
|
||||
PRIMARY KEY (`group_vid`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `group_videos`
|
||||
|
@ -851,7 +851,7 @@ CREATE TABLE IF NOT EXISTS `languages` (
|
|||
`language_regex` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`language_default` enum('yes','no') COLLATE utf8_unicode_ci NOT NULL,
|
||||
PRIMARY KEY (`language_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `languages`
|
||||
|
@ -879,7 +879,7 @@ CREATE TABLE IF NOT EXISTS `messages` (
|
|||
`reply_to` int(225) NOT NULL DEFAULT '0',
|
||||
`message_box` enum('in','out') NOT NULL DEFAULT 'in',
|
||||
PRIMARY KEY (`message_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `messages`
|
||||
|
@ -899,7 +899,7 @@ CREATE TABLE IF NOT EXISTS `modules` (
|
|||
`active` varchar(5) NOT NULL,
|
||||
`module_include_file` text NOT NULL,
|
||||
PRIMARY KEY (`module_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `modules`
|
||||
|
@ -918,7 +918,7 @@ CREATE TABLE IF NOT EXISTS `phrases` (
|
|||
`varname` varchar(250) CHARACTER SET utf8 NOT NULL DEFAULT '',
|
||||
`text` text COLLATE utf8_unicode_ci,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=839 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=839 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `phrases`
|
||||
|
@ -1771,7 +1771,7 @@ CREATE TABLE IF NOT EXISTS `players` (
|
|||
`player_file` varchar(30) NOT NULL,
|
||||
`template_id` varchar(15) NOT NULL,
|
||||
PRIMARY KEY (`player_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `players`
|
||||
|
@ -1791,7 +1791,7 @@ CREATE TABLE IF NOT EXISTS `player_skins` (
|
|||
`player_skin_file` text CHARACTER SET latin1 NOT NULL,
|
||||
`player_skin_type` enum('name','file') CHARACTER SET latin1 NOT NULL DEFAULT 'file',
|
||||
PRIMARY KEY (`player_skins_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `player_skins`
|
||||
|
@ -1814,7 +1814,7 @@ CREATE TABLE IF NOT EXISTS `plugins` (
|
|||
`plugin_license_code` text NOT NULL,
|
||||
`plugin_active` enum('yes','no') NOT NULL,
|
||||
PRIMARY KEY (`plugin_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `plugins`
|
||||
|
@ -1836,7 +1836,7 @@ CREATE TABLE IF NOT EXISTS `plugin_config` (
|
|||
`player_admin_file` text CHARACTER SET latin1 NOT NULL,
|
||||
`player_include_file` text CHARACTER SET latin1 NOT NULL,
|
||||
PRIMARY KEY (`plugin_config_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `plugin_config`
|
||||
|
@ -1856,7 +1856,7 @@ CREATE TABLE IF NOT EXISTS `sessions` (
|
|||
`session_value` varchar(32) NOT NULL,
|
||||
`session_date` datetime NOT NULL,
|
||||
PRIMARY KEY (`session_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `sessions`
|
||||
|
@ -1874,7 +1874,7 @@ CREATE TABLE IF NOT EXISTS `stats` (
|
|||
`name` varchar(60) NOT NULL,
|
||||
`value` varchar(60) NOT NULL,
|
||||
PRIMARY KEY (`stat_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `stats`
|
||||
|
@ -1893,7 +1893,7 @@ CREATE TABLE IF NOT EXISTS `subscriptions` (
|
|||
`subscribed_to` mediumtext NOT NULL,
|
||||
`date_added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`subscription_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `subscriptions`
|
||||
|
@ -1911,7 +1911,7 @@ CREATE TABLE IF NOT EXISTS `template` (
|
|||
`template_name` varchar(25) NOT NULL,
|
||||
`template_dir` varchar(30) NOT NULL,
|
||||
PRIMARY KEY (`template_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `template`
|
||||
|
@ -1973,7 +1973,7 @@ CREATE TABLE IF NOT EXISTS `users` (
|
|||
KEY `ind_status_doj` (`doj`),
|
||||
KEY `ind_status_id` (`userid`),
|
||||
KEY `ind_hits_doj` (`profile_hits`,`doj`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `users`
|
||||
|
@ -1994,7 +1994,7 @@ CREATE TABLE IF NOT EXISTS `user_levels` (
|
|||
`user_level_name` varchar(100) CHARACTER SET latin1 NOT NULL,
|
||||
`user_level_is_default` enum('yes','no') NOT NULL DEFAULT 'no',
|
||||
PRIMARY KEY (`user_level_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=15 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=15 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `user_levels`
|
||||
|
@ -2026,7 +2026,7 @@ CREATE TABLE IF NOT EXISTS `user_levels_permissions` (
|
|||
`video_moderation` enum('yes','no') NOT NULL DEFAULT 'no',
|
||||
`member_moderation` enum('yes','no') NOT NULL DEFAULT 'no',
|
||||
PRIMARY KEY (`user_level_permission_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `user_levels_permissions`
|
||||
|
@ -2054,7 +2054,7 @@ CREATE TABLE IF NOT EXISTS `user_permissions` (
|
|||
`permission_default` enum('yes','no') NOT NULL DEFAULT 'yes',
|
||||
PRIMARY KEY (`permission_id`),
|
||||
UNIQUE KEY `permission_code` (`permission_code`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `user_permissions`
|
||||
|
@ -2082,7 +2082,7 @@ CREATE TABLE IF NOT EXISTS `user_permission_types` (
|
|||
`user_permission_type_name` varchar(225) NOT NULL,
|
||||
`user_permission_type_desc` mediumtext NOT NULL,
|
||||
PRIMARY KEY (`user_permission_type_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `user_permission_types`
|
||||
|
@ -2138,7 +2138,7 @@ CREATE TABLE IF NOT EXISTS `user_profile` (
|
|||
PRIMARY KEY (`user_profile_id`),
|
||||
KEY `ind_status_id` (`userid`),
|
||||
FULLTEXT KEY `profile_tags` (`profile_tags`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `user_profile`
|
||||
|
@ -2160,7 +2160,7 @@ CREATE TABLE IF NOT EXISTS `validation_re` (
|
|||
`re_code` varchar(60) CHARACTER SET utf8 NOT NULL,
|
||||
`re_syntax` text CHARACTER SET utf8 NOT NULL,
|
||||
PRIMARY KEY (`re_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `validation_re`
|
||||
|
@ -2215,7 +2215,7 @@ CREATE TABLE IF NOT EXISTS `video` (
|
|||
`default_thumb` int(3) NOT NULL DEFAULT '1',
|
||||
`embed_code` text NOT NULL,
|
||||
PRIMARY KEY (`videoid`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `video`
|
||||
|
@ -2236,7 +2236,7 @@ CREATE TABLE IF NOT EXISTS `video_categories` (
|
|||
`category_thumb` mediumtext NOT NULL,
|
||||
`isdefault` enum('yes','no') NOT NULL DEFAULT 'no',
|
||||
PRIMARY KEY (`category_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `video_categories`
|
||||
|
@ -2255,7 +2255,7 @@ CREATE TABLE IF NOT EXISTS `video_favourites` (
|
|||
`userid` int(11) NOT NULL,
|
||||
`date_added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`fav_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `video_favourites`
|
||||
|
@ -2312,7 +2312,7 @@ CREATE TABLE IF NOT EXISTS `video_files` (
|
|||
`hq` enum('yes','no') NOT NULL DEFAULT 'no',
|
||||
PRIMARY KEY (`id`),
|
||||
FULLTEXT KEY `src_bitrate` (`src_bitrate`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `video_files`
|
||||
|
|
|
@ -51,7 +51,7 @@ CREATE TABLE IF NOT EXISTS `cb_photos` (
|
|||
`downloaded` bigint(255) NOT NULL,
|
||||
`owner_ip` varchar(20) NOT NULL,
|
||||
PRIMARY KEY (`photo_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `cb_photos`
|
||||
|
|
|
@ -6,28 +6,28 @@ CREATE TABLE `clipbucket_svn`.`cb_collection_cateogries` (
|
|||
`date_added` MEDIUMTEXT NOT NULL ,
|
||||
`category_thumb` MEDIUMINT NOT NULL ,
|
||||
`isdefault` ENUM( 'yes', 'no' ) NOT NULL
|
||||
) ENGINE = InnoDB ;
|
||||
) ENGINE = MYISAM ;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `cb_collections` (
|
||||
`collection_id` bigint(25) NOT NULL AUTO_INCREMENT,
|
||||
`collection_name` varchar(225) NOT NULL,
|
||||
`collection_description` text NOT NULL,
|
||||
`collection_tags` text NOT NULL,
|
||||
`category` varchar(20) NOT NULL,
|
||||
`userid` int(10) NOT NULL,
|
||||
`views` bigint(20) NOT NULL,
|
||||
`date_added` datetime NOT NULL,
|
||||
`featured` varchar(4) NOT NULL,
|
||||
`broadcast` varchar(10) NOT NULL,
|
||||
`allow_comments` varchar(4) NOT NULL,
|
||||
`total_comments` bigint(20) NOT NULL,
|
||||
`total_objects` bigint(20) NOT NULL,
|
||||
`active` varchar(4) NOT NULL,
|
||||
`public_upload` varchar(4) NOT NULL,
|
||||
`type` varchar(10) NOT NULL,
|
||||
PRIMARY KEY (`collection_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
||||
CREATE TABLE IF NOT EXISTS `cb_collections` (
|
||||
`collection_id` bigint(25) NOT NULL AUTO_INCREMENT,
|
||||
`collection_name` varchar(225) NOT NULL,
|
||||
`collection_description` text NOT NULL,
|
||||
`collection_tags` text NOT NULL,
|
||||
`category` varchar(20) NOT NULL,
|
||||
`userid` int(10) NOT NULL,
|
||||
`views` bigint(20) NOT NULL,
|
||||
`date_added` datetime NOT NULL,
|
||||
`featured` varchar(4) NOT NULL,
|
||||
`broadcast` varchar(10) NOT NULL,
|
||||
`allow_comments` varchar(4) NOT NULL,
|
||||
`total_comments` bigint(20) NOT NULL,
|
||||
`total_objects` bigint(20) NOT NULL,
|
||||
`active` varchar(4) NOT NULL,
|
||||
`public_upload` varchar(4) NOT NULL,
|
||||
`type` varchar(10) NOT NULL,
|
||||
PRIMARY KEY (`collection_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
||||
|
||||
ALTER TABLE `cb_collections` CHANGE `broadcast` `broadcast` VARCHAR( 10 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT 'public',
|
||||
CHANGE `allow_comments` `allow_comments` VARCHAR( 4 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT 'yes',
|
||||
|
@ -35,15 +35,15 @@ CHANGE `active` `active` VARCHAR( 4 ) CHARACTER SET latin1 COLLATE latin1_swed
|
|||
CHANGE `public_upload` `public_upload` VARCHAR( 4 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT 'yes'
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `cb_collection_items` (
|
||||
`ci_id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||
`collection_id` bigint(20) NOT NULL,
|
||||
`object_id` bigint(20) NOT NULL,
|
||||
`userid` bigint(20) NOT NULL,
|
||||
`type` varchar(10) NOT NULL,
|
||||
`date_added` datetime NOT NULL,
|
||||
PRIMARY KEY (`ci_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
||||
CREATE TABLE IF NOT EXISTS `cb_collection_items` (
|
||||
`ci_id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||
`collection_id` bigint(20) NOT NULL,
|
||||
`object_id` bigint(20) NOT NULL,
|
||||
`userid` bigint(20) NOT NULL,
|
||||
`type` varchar(10) NOT NULL,
|
||||
`date_added` datetime NOT NULL,
|
||||
PRIMARY KEY (`ci_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
||||
|
||||
INSERT INTO `cb_email_templates` (`email_template_id`, `email_template_name`, `email_template_code`, `email_template_subject`, `email_template`, `email_template_allowed_tags`) VALUES (NULL, 'Collection Share Template', 'collection_share_template', '{username} wants to share collection with you', '<html>
|
||||
<head>
|
||||
|
|
|
@ -11,7 +11,7 @@ CREATE TABLE IF NOT EXISTS `groups` (
|
|||
`date_created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`active` enum('yes','no') NOT NULL,
|
||||
PRIMARY KEY (`group_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `group_categories` (
|
||||
`category_id` int(225) NOT NULL AUTO_INCREMENT,
|
||||
|
@ -21,7 +21,7 @@ CREATE TABLE IF NOT EXISTS `group_categories` (
|
|||
`category_thumb` mediumtext NOT NULL,
|
||||
`isdefault` enum('yes','no') NOT NULL DEFAULT 'no',
|
||||
PRIMARY KEY (`category_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=19 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=19 ;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `group_members` (
|
||||
`group_mid` int(225) NOT NULL AUTO_INCREMENT,
|
||||
|
@ -31,7 +31,7 @@ CREATE TABLE IF NOT EXISTS `group_members` (
|
|||
`date_added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`active` enum('yes','no') NOT NULL DEFAULT 'yes',
|
||||
PRIMARY KEY (`group_mid`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=15 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=15 ;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `group_stats` (
|
||||
`id` int(255) NOT NULL AUTO_INCREMENT,
|
||||
|
@ -40,4 +40,4 @@ CREATE TABLE IF NOT EXISTS `group_stats` (
|
|||
`total_topics` int(255) NOT NULL,
|
||||
`total_posts` int(255) NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;
|
|
@ -12,121 +12,121 @@ if ( isset($_REQUEST['plupload']) )
|
|||
}
|
||||
|
||||
if($_FILES['photoUpload'])
|
||||
$mode = "uploadPhoto";
|
||||
$mode = "uploadPhoto";
|
||||
if($_POST['photoForm'])
|
||||
$mode = "get_photo_form";
|
||||
$mode = "get_photo_form";
|
||||
if($_POST['insertBeat'])
|
||||
$mode = "insert_beat";
|
||||
$mode = "insert_beat";
|
||||
if($_POST['updatePhoto'])
|
||||
$mode = "update_photo";
|
||||
$mode = "update_photo";
|
||||
|
||||
switch($mode)
|
||||
{
|
||||
case "insert_beat":
|
||||
{
|
||||
|
||||
}
|
||||
break;
|
||||
case "update_photo":
|
||||
{
|
||||
$_POST['photo_title'] = genTags(str_replace(array('_','-'),' ',mysql_clean($_POST['photo_title'])));
|
||||
$_POST['photo_description'] = genTags(str_replace(array('_','-'),' ',mysql_clean($_POST['photo_description'])));
|
||||
$_POST['photo_tags'] = genTags(str_replace(array(' ','_','-'),', ',mysql_clean($_POST['photo_tags'])));
|
||||
|
||||
$cbphoto->update_photo();
|
||||
|
||||
if(error())
|
||||
$error = error('single');
|
||||
if(msg())
|
||||
$success = msg('single');
|
||||
|
||||
$updateResponse['error'] = $error;
|
||||
$updateResponse['success'] = $success;
|
||||
|
||||
echo json_encode($updateResponse);
|
||||
}
|
||||
break;
|
||||
/* case "uploadPhoto":
|
||||
{
|
||||
$exts = $cbphoto->exts;
|
||||
$max_size = 1048576; // 2MB in bytes
|
||||
$form = "photoUpload";
|
||||
$path = PHOTOS_DIR."/";
|
||||
|
||||
// These are found in $_FILES. We can access them like $_FILES['file']['error'].
|
||||
$upErrors = array(
|
||||
0 => "There is no error, the file uploaded with success.",
|
||||
1 => "The uploaded file exceeds the upload_max_filesize directive in php.ini.",
|
||||
2 => " The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.",
|
||||
3 => "The uploaded file was only partially uploaded.",
|
||||
4 => "No file was uploaded.",
|
||||
6 => "Missing a temporary folder.",
|
||||
7 => "Failed to write file to disk."
|
||||
);
|
||||
|
||||
// Let's see if everything is working fine by checking $_FILES.
|
||||
if(!isset($_FILES[$form])) {
|
||||
upload_error("No upload found in \$_FILES for " . $form);
|
||||
exit(0);
|
||||
}
|
||||
elseif(isset($_FILES[$form]['error']) && $_FILES[$form]['error'] != 0) {
|
||||
upload_error($upErrors[$_FILES[$form]['error']]);
|
||||
exit(0);
|
||||
}
|
||||
elseif(!isset($_FILES[$form]["tmp_name"]) || !@is_uploaded_file($_FILES[$form]["tmp_name"])) {
|
||||
upload_error("Upload failed is_uploaded_file test.");
|
||||
exit(0);
|
||||
} elseif(empty($_FILES[$form]['name'])) {
|
||||
upload_error("File name is empty");
|
||||
exit(0);
|
||||
}
|
||||
|
||||
// Time to check if Filesize is according to demands
|
||||
//$filesize = filesize($_FILES[$form]['tmp_name']);
|
||||
//if(!$filesize || $filesize > $max_size)
|
||||
//{
|
||||
// upload_error("File exceeds the maximum allowed size");
|
||||
// exit(0);
|
||||
//}
|
||||
//
|
||||
//if($filesize < 0)
|
||||
//{
|
||||
// upload_error("File size outside allowed lower bound");
|
||||
// exit(0);
|
||||
//}
|
||||
|
||||
//Checking Extension of File
|
||||
$info = pathinfo($_FILES[$form]['name']);
|
||||
$extension = strtolower($info['extension']);
|
||||
$valid_extension = false;
|
||||
|
||||
foreach ($exts as $ext) {
|
||||
if (strcasecmp($extension, $ext) == 0) {
|
||||
$valid_extension = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(!$valid_extension)
|
||||
{
|
||||
upload_error("Invalid file extension");
|
||||
exit(0);
|
||||
}
|
||||
|
||||
$filename = $cbphoto->create_filename();
|
||||
|
||||
|
||||
//Now uploading the file
|
||||
if(move_uploaded_file($_FILES[$form]['tmp_name'],$path.$filename.".".$extension))
|
||||
{
|
||||
echo json_encode(array("success"=>"yes","filename"=>$filename,"extension"=>$extension));
|
||||
|
||||
} else {
|
||||
upload_error("File could not be saved.");
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
break;*/
|
||||
case "insert_beat":
|
||||
{
|
||||
|
||||
}
|
||||
break;
|
||||
case "update_photo":
|
||||
{
|
||||
$_POST['photo_title'] = genTags(str_replace(array('_','-'),' ',mysql_clean($_POST['photo_title'])));
|
||||
$_POST['photo_description'] = genTags(str_replace(array('_','-'),' ',mysql_clean($_POST['photo_description'])));
|
||||
$_POST['photo_tags'] = genTags(str_replace(array(' ','_','-'),', ',mysql_clean($_POST['photo_tags'])));
|
||||
|
||||
$cbphoto->update_photo();
|
||||
|
||||
if(error())
|
||||
$error = error('single');
|
||||
if(msg())
|
||||
$success = msg('single');
|
||||
|
||||
$updateResponse['error'] = $error;
|
||||
$updateResponse['success'] = $success;
|
||||
|
||||
echo json_encode($updateResponse);
|
||||
}
|
||||
break;
|
||||
case "uploadPhoto":
|
||||
{
|
||||
$exts = $cbphoto->exts;
|
||||
$max_size = 1048576; // 2MB in bytes
|
||||
$form = "photoUpload";
|
||||
$path = PHOTOS_DIR."/";
|
||||
|
||||
// These are found in $_FILES. We can access them like $_FILES['file']['error'].
|
||||
$upErrors = array(
|
||||
0 => "There is no error, the file uploaded with success.",
|
||||
1 => "The uploaded file exceeds the upload_max_filesize directive in php.ini.",
|
||||
2 => " The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.",
|
||||
3 => "The uploaded file was only partially uploaded.",
|
||||
4 => "No file was uploaded.",
|
||||
6 => "Missing a temporary folder.",
|
||||
7 => "Failed to write file to disk."
|
||||
);
|
||||
|
||||
// Let's see if everything is working fine by checking $_FILES.
|
||||
if(!isset($_FILES[$form])) {
|
||||
upload_error("No upload found in \$_FILES for " . $form);
|
||||
exit(0);
|
||||
}
|
||||
elseif(isset($_FILES[$form]['error']) && $_FILES[$form]['error'] != 0) {
|
||||
upload_error($upErrors[$_FILES[$form]['error']]);
|
||||
exit(0);
|
||||
}
|
||||
elseif(!isset($_FILES[$form]["tmp_name"]) || !@is_uploaded_file($_FILES[$form]["tmp_name"])) {
|
||||
upload_error("Upload failed is_uploaded_file test.");
|
||||
exit(0);
|
||||
} elseif(empty($_FILES[$form]['name'])) {
|
||||
upload_error("File name is empty");
|
||||
exit(0);
|
||||
}
|
||||
|
||||
// Time to check if Filesize is according to demands
|
||||
//$filesize = filesize($_FILES[$form]['tmp_name']);
|
||||
//if(!$filesize || $filesize > $max_size)
|
||||
//{
|
||||
// upload_error("File exceeds the maximum allowed size");
|
||||
// exit(0);
|
||||
//}
|
||||
//
|
||||
//if($filesize < 0)
|
||||
//{
|
||||
// upload_error("File size outside allowed lower bound");
|
||||
// exit(0);
|
||||
//}
|
||||
|
||||
//Checking Extension of File
|
||||
$info = pathinfo($_FILES[$form]['name']);
|
||||
$extension = strtolower($info['extension']);
|
||||
$valid_extension = false;
|
||||
|
||||
foreach ($exts as $ext) {
|
||||
if (strcasecmp($extension, $ext) == 0) {
|
||||
$valid_extension = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(!$valid_extension)
|
||||
{
|
||||
upload_error("Invalid file extension");
|
||||
exit(0);
|
||||
}
|
||||
|
||||
$filename = $cbphoto->create_filename();
|
||||
|
||||
|
||||
//Now uploading the file
|
||||
if(move_uploaded_file($_FILES[$form]['tmp_name'],$path.$filename.".".$extension))
|
||||
{
|
||||
echo json_encode(array("success"=>"yes","filename"=>$filename,"extension"=>$extension));
|
||||
|
||||
} else {
|
||||
upload_error("File could not be saved.");
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
case 'plupload': {
|
||||
|
@ -139,23 +139,6 @@ switch($mode)
|
|||
header("Pragma: no-cache");
|
||||
#exit("BEATS: ".CB_BEATS_UPLOAD_DIR." and PHOTO ".PHOTOS_DIR);
|
||||
//pr($_REQUEST);
|
||||
|
||||
#checking for if the right file is uploaded
|
||||
$content_type = get_mime_type($_FILES['file']['tmp_name']);
|
||||
if ( $content_type != 'audio') {
|
||||
echo json_encode(array("status"=>"400","err"=>"Invalid Content"));
|
||||
exit();
|
||||
}
|
||||
|
||||
$extension = getExt( $_FILES['file']['name']);
|
||||
$types = strtolower(config('allowed_types'));
|
||||
$supported_extensions = explode(',', $types);
|
||||
|
||||
if (!in_array($extension, $supported_extensions)) {
|
||||
echo json_encode(array("status"=>"504","msg"=>"Invalid extension"));
|
||||
exit();
|
||||
}
|
||||
|
||||
$targetDir = CB_BEATS_UPLOAD_DIR;
|
||||
# $directory = create_dated_folder( CB_BEATS_UPLOAD_DIR );
|
||||
# $targetDir .= '/'.$directory;
|
||||
|
@ -192,7 +175,7 @@ switch($mode)
|
|||
// Create target dir
|
||||
if (!file_exists($targetDir))
|
||||
{
|
||||
echo "creating file";
|
||||
echo "creating file";
|
||||
mkdir($targetDir);
|
||||
}
|
||||
|
||||
|
@ -293,6 +276,6 @@ switch($mode)
|
|||
//function used to display error
|
||||
function upload_error($error)
|
||||
{
|
||||
echo json_encode(array("error"=>$error));
|
||||
echo json_encode(array("error"=>$error));
|
||||
}
|
||||
?>
|
|
@ -54,12 +54,11 @@ if(!isCurlInstalled())
|
|||
if(!userid())
|
||||
exit(json_encode(array('error'=>'You are not logged in')));
|
||||
|
||||
/*Setting up file name for the video to be converted*/
|
||||
$file_name = time().RandomString(5);
|
||||
|
||||
if(isset($_POST['youtube']))
|
||||
{
|
||||
$youtube_url = $_POST['file'];
|
||||
$filename = $_POST['file_name'];
|
||||
|
||||
$ParseUrl = parse_url($youtube_url);
|
||||
parse_str($ParseUrl['query'], $youtube_url_prop);
|
||||
$YouTubeId = isset($youtube_url_prop['v']) ? $youtube_url_prop['v'] : '';
|
||||
|
@ -83,17 +82,7 @@ if(isset($_POST['youtube']))
|
|||
$apiKey = $Cbucket->configs['youtube_api_key'];
|
||||
// grabs video details (snippet, contentDetails)
|
||||
$request = 'https://www.googleapis.com/youtube/v3/videos?id='.$YouTubeId.'&key='.$apiKey.'&part=snippet,contentDetails';
|
||||
//replaced file get contents
|
||||
|
||||
$ch = curl_init();
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($ch, CURLOPT_URL, $request);
|
||||
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
|
||||
$youtube_content = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
|
||||
|
||||
$youtube_content = file_get_contents($request);
|
||||
$content = json_decode($youtube_content,true);
|
||||
$thumb_contents = maxres_youtube($content);
|
||||
$max_quality_thumb = $thumb_contents['thumb'];
|
||||
|
@ -123,7 +112,7 @@ if(isset($_POST['youtube']))
|
|||
$file_directory = createDataFolders();
|
||||
$vid_array['file_directory'] = $file_directory;
|
||||
$vid_array['category'] = array($cbvid->get_default_cid());
|
||||
$vid_array['file_name'] = $file_name;
|
||||
$vid_array['file_name'] = $filename;
|
||||
$vid_array['userid'] = userid();
|
||||
|
||||
$duration = $vid_array['duration'];
|
||||
|
@ -144,12 +133,12 @@ if(isset($_POST['youtube']))
|
|||
$db->update(tbl("video"),array("status","refer_url","duration"),array('Successful',$ref_url,$duration)," videoid='$vid'");
|
||||
|
||||
//Downloading thumb
|
||||
$downloaded_thumb = snatch_it(urlencode($max_quality_thumb),THUMBS_DIR.'/'.$file_directory,$file_name."-ytmax.jpg");
|
||||
$downloaded_thumb = snatch_it(urlencode($max_quality_thumb),THUMBS_DIR.'/'.$file_directory,$filename."-ytmax.jpg");
|
||||
|
||||
$params = array();
|
||||
$params['filepath'] = $downloaded_thumb;
|
||||
$params['files_dir'] = $file_directory;
|
||||
$params['file_name'] = $file_name;
|
||||
$params['file_name'] = $filename;
|
||||
$params['width'] = $thumb_contents['width'];
|
||||
$params['height'] = $thumb_contents['height'];
|
||||
|
||||
|
@ -219,7 +208,7 @@ function callback($resource, $download_size, $downloaded, $upload_size, $uploade
|
|||
|
||||
|
||||
$file = $_POST['file'];
|
||||
//$file_name = mysql_clean($_POST['file_name']);
|
||||
$file_name = mysql_clean($_POST['file_name']);
|
||||
// $file = "http://clipbucket.dev/abc.mp4";
|
||||
// $file_name = "abc";
|
||||
|
||||
|
|
|
@ -136,16 +136,8 @@ switch($mode)
|
|||
$config_for_mp4 = $Cbucket->configs['stay_mp4'];
|
||||
$ffmpegpath = $Cbucket->configs['ffmpegpath'];
|
||||
$extension = getExt( $_FILES['Filedata']['name']);
|
||||
|
||||
#checking for if the right file is uploaded
|
||||
$content_type = get_mime_type($_FILES['Filedata']['tmp_name']);
|
||||
if ( $content_type != 'video') {
|
||||
echo json_encode(array("status"=>"400","err"=>"Invalid Content"));
|
||||
exit();
|
||||
}
|
||||
|
||||
// pex($content_type,true);
|
||||
|
||||
/*$raw_content_type = mime_content_type($_FILES['Filedata']['tmp_name']);
|
||||
$content_type = substr($raw_content_type, 0,strpos($raw_content_type, '/'));*/
|
||||
$types = strtolower(config('allowed_types'));
|
||||
$supported_extensions = explode(',', $types);
|
||||
|
||||
|
@ -352,12 +344,10 @@ switch($mode)
|
|||
|
||||
}
|
||||
|
||||
|
||||
//changes made
|
||||
// $_POST['videoid'] = trim($_POST['videoid']);
|
||||
// $_POST['title'] = addslashes($_POST['title']);
|
||||
// $_POST['description'] = addslashes($_POST['description']);
|
||||
// $_POST['duration'] = addslashes($_POST['duration']);
|
||||
$_POST['videoid'] = trim($_POST['videoid']);
|
||||
$_POST['title'] = addslashes($_POST['title']);
|
||||
$_POST['description'] = addslashes($_POST['description']);
|
||||
$_POST['duration'] = addslashes($_POST['duration']);
|
||||
|
||||
if(empty($eh->error_list))
|
||||
{
|
||||
|
|
|
@ -161,14 +161,6 @@ switch($mode)
|
|||
upload_error("Invalid file extension");
|
||||
exit(0);
|
||||
}
|
||||
|
||||
#checking for if the right file is uploaded
|
||||
$content_type = get_mime_type($_FILES[$form]['tmp_name']);
|
||||
if ( $content_type != 'image') {
|
||||
upload_error("Invalid file type");
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
$filename = $cbphoto->create_filename();
|
||||
|
||||
|
@ -195,22 +187,6 @@ switch($mode)
|
|||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
#checking for if the right file is uploaded
|
||||
$content_type = get_mime_type($_FILES['file']['tmp_name']);
|
||||
if ( $content_type != 'image') {
|
||||
echo json_encode(array("status"=>"400","err"=>"Invalid Content"));
|
||||
exit();
|
||||
}
|
||||
|
||||
$extension = getExt( $_FILES['file']['name']);
|
||||
$types = strtolower(config('allowed_types'));
|
||||
$supported_extensions = explode(',', $types);
|
||||
|
||||
if (!in_array($extension, $supported_extensions)) {
|
||||
echo json_encode(array("status"=>"504","msg"=>"Invalid extension"));
|
||||
exit();
|
||||
}
|
||||
|
||||
//pr($_REQUEST);
|
||||
$targetDir = PHOTOS_DIR;
|
||||
$directory = create_dated_folder( PHOTOS_DIR );
|
||||
|
@ -336,7 +312,7 @@ switch($mode)
|
|||
|
||||
echo json_encode( array("success"=>"yes","file_name"=>$filename, "extension" => getExt( $filePath ), "file_directory" => $directory ) );
|
||||
}
|
||||
break;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -8,7 +8,9 @@
|
|||
//Sleeping..
|
||||
//sometimes video is inserted after video conversion so in this case, video can get lost
|
||||
|
||||
|
||||
// sometimes this file gets executed before video insertion completes
|
||||
// so it needs to be put to sleep for a short short time
|
||||
sleep(5);
|
||||
$in_bg_cron = true;
|
||||
|
||||
include(dirname(__FILE__)."/../includes/config.inc.php");
|
||||
|
@ -67,9 +69,7 @@ foreach($files as $file)
|
|||
|
||||
|
||||
update_processed_video($file,'Successful');
|
||||
if (SOCIAL_APP_INSTALLED == 'INSTALLED'){
|
||||
$cbPosts->special_video_post_update($file_name,"active");
|
||||
}
|
||||
setVideoStatus($file['cqueue_name'], 'done',true,true);
|
||||
$db->update(tbl("conversion_queue"),
|
||||
array("cqueue_conversion","time_completed"),
|
||||
array("yes",time())," cqueue_id = '".$file['cqueue_id']."'");
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
// This script runs only via command line
|
||||
sleep(5);
|
||||
|
||||
include(dirname(__FILE__)."/../includes/config.inc.php");
|
||||
require_once(dirname(dirname(__FILE__))."/includes/classes/sLog.php");
|
||||
define("MP4Box_BINARY",get_binaries('MP4Box'));
|
||||
|
@ -153,7 +153,8 @@
|
|||
}
|
||||
logData($ffmpeg->video_files,'video_files');
|
||||
|
||||
/*$sprite_count = $ffmpeg->sprite_count;*/
|
||||
|
||||
|
||||
$video_files = json_encode($ffmpeg->video_files);
|
||||
$db->update(tbl('video'), array("video_files"), array($video_files), " file_name = '{$outputFileName}'");
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
include('../includes/config.inc.php');
|
||||
exit(json_encode(array("alert"=>"This API has been deprecated")));
|
||||
|
||||
$vote = $_POST["vote"];
|
||||
$userid = $_POST["channelId"];
|
||||
//if($userquery->login_check('',true)){
|
||||
|
|
|
@ -14,7 +14,7 @@ $pages->page_redir();
|
|||
|
||||
/* Assigning page and subpage */
|
||||
if(!defined('MAIN_PAGE')){
|
||||
define('MAIN_PAGE', 'General Configurations');
|
||||
define('MAIN_PAGE', 'Stats And Configurations');
|
||||
}
|
||||
if(!defined('SUB_PAGE')){
|
||||
define('SUB_PAGE', 'Add New Phrases');
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
*/
|
||||
|
||||
function translate_phrase($phrase, $phrase_code, $to, $total, $current) {
|
||||
global $GoogleTranslator;
|
||||
global $MrsTranslator;
|
||||
/**
|
||||
* There is no point in starting with empty phrase
|
||||
* or invalid language code
|
||||
|
@ -55,11 +55,11 @@
|
|||
|
||||
if (!empty($phrase) && strlen($to) == 2) {
|
||||
# Feed file to Bing API for translation
|
||||
$translation = $GoogleTranslator->translate($phrase,$to,'en',"text/html");
|
||||
$translation = $MrsTranslator->translate($phrase,$to,'en',"text/html");
|
||||
|
||||
# In case, it failed in translation, lets give it another try
|
||||
if (!$translation) {
|
||||
$translation = $GoogleTranslator->translate($phrase,$to,'en',"text/html");
|
||||
$translation = $MrsTranslator->translate($phrase,$to,'en',"text/html");
|
||||
}
|
||||
|
||||
if (!empty($translation)) {
|
||||
|
|
|
@ -5,7 +5,7 @@ $pages->page_redir();
|
|||
|
||||
/* Assigning page and subpage */
|
||||
if(!defined('MAIN_PAGE')){
|
||||
define('MAIN_PAGE', 'General Configurations');
|
||||
define('MAIN_PAGE', 'Stats And Configurations');
|
||||
}
|
||||
if(!defined('SUB_PAGE')){
|
||||
define('SUB_PAGE', 'Manage Comments');
|
||||
|
|
|
@ -15,7 +15,7 @@ $pages->page_redir();
|
|||
|
||||
/* Assigning page and subpage */
|
||||
if(!defined('MAIN_PAGE')){
|
||||
define('MAIN_PAGE', 'General Configurations');
|
||||
define('MAIN_PAGE', 'Stats And Configurations');
|
||||
}
|
||||
if(!defined('SUB_PAGE')){
|
||||
define('SUB_PAGE', 'Email Settings');
|
||||
|
|
|
@ -1,157 +0,0 @@
|
|||
<?php
|
||||
require_once '../includes/admin_config.php';
|
||||
$userquery->admin_login_check();
|
||||
$userquery->login_check('web_config_access');
|
||||
|
||||
$pages->page_redir();
|
||||
|
||||
if( isset( $_POST[ 'start_test' ] ) ) {
|
||||
try {
|
||||
|
||||
$to_email = $_POST[ 'to_email' ];
|
||||
|
||||
if ( empty( $to_email ) ) {
|
||||
throw new Exception( 'Please provide a recipient email' );
|
||||
}
|
||||
|
||||
$to_email = filter_var( $to_email, FILTER_SANITIZE_EMAIL );
|
||||
$to_email = filter_var( $to_email, FILTER_VALIDATE_EMAIL );
|
||||
|
||||
if( $to_email === false ) {
|
||||
throw new Exception( 'Please provide a valid recipient email address' );
|
||||
}
|
||||
|
||||
$to_name = $_POST[ 'to_name' ];
|
||||
|
||||
if( empty( $to_name ) || !is_string( $to_name ) ) {
|
||||
$to_name = $to_email;
|
||||
}
|
||||
|
||||
$from_email = $_POST[ 'from_email' ];
|
||||
|
||||
if ( empty( $from_email ) ) {
|
||||
$from_email = SUPPORT_EMAIL;
|
||||
}
|
||||
|
||||
$from_email = filter_var( $from_email, FILTER_SANITIZE_EMAIL );
|
||||
$from_email = filter_var( $from_email, FILTER_VALIDATE_EMAIL );
|
||||
|
||||
if ( $from_email === false ) {
|
||||
throw new Exception( 'Please provide a valid sender email address' );
|
||||
}
|
||||
|
||||
$from_name = $_POST[ 'from_name' ];
|
||||
|
||||
if( empty( $from_name ) || !is_string( $from_name ) ) {
|
||||
$from_name = 'Tune.pk';
|
||||
}
|
||||
|
||||
$subject = $_POST[ 'subject' ];
|
||||
$subject = trim( $subject );
|
||||
|
||||
if ( empty( $subject ) ) {
|
||||
throw new Excpetion( 'Please provide test email subject' );
|
||||
}
|
||||
|
||||
$body = $_POST[ 'body' ];
|
||||
$body = trim( $body );
|
||||
|
||||
if ( empty( $body ) ) {
|
||||
throw new Excpetion( 'Please provide test email body' );
|
||||
}
|
||||
|
||||
$code = $_POST[ 'email_template' ];
|
||||
|
||||
if ( $code != -1 ) {
|
||||
$template = $cbemail->get_template( $code );
|
||||
|
||||
if( $template ) {
|
||||
$dv = $_POST[ 'dv' ];
|
||||
$variables = array();
|
||||
|
||||
if ( !empty( $dv ) ) {
|
||||
foreach( $dv as $key => $v ) {
|
||||
$variables[ $v[ 'name' ] ] = empty( $v[ 'value' ] ) ? $v[ 'name' ] : $v[ 'value' ];
|
||||
}
|
||||
}
|
||||
|
||||
$subject = $cbemail->replace( $template[ 'email_template_subject' ], $variables );
|
||||
$body = $cbemail->replace( $template[ 'email_template' ], $variables );
|
||||
}
|
||||
}
|
||||
|
||||
$mail = array(
|
||||
'to' => $to_email,
|
||||
'to_name' => $to_name,
|
||||
'from' => $from_email,
|
||||
'from_name' => $from_name,
|
||||
'subject' => $subject,
|
||||
'content' => $body
|
||||
);
|
||||
|
||||
$test = cbmail( $mail );
|
||||
|
||||
if ( $test == false ) {
|
||||
e( lang( sprintf( 'Unable to send email <strong>%s</strong>', $to_email ) ) );
|
||||
} else {
|
||||
e( lang( sprintf( 'Email successfully send to <strong>%s</strong>', $to_email ) ), 'm' );
|
||||
}
|
||||
|
||||
} catch( Exception $e ) {
|
||||
e( lang( $e->getMessage() ) );
|
||||
}
|
||||
}
|
||||
|
||||
$templates = $cbemail->get_templates();
|
||||
$list = array();
|
||||
$_templates = array();
|
||||
|
||||
$macros = array(
|
||||
'{website_title}' => TITLE,
|
||||
'{baseurl}' => BASEURL,
|
||||
'@baseurl' => BASEURL,
|
||||
'{website_url}' => BASEURL,
|
||||
'{date_format}' => cbdate(DATE_FORMAT),
|
||||
'{date}' => cbdate(),
|
||||
'{username}' => username(),
|
||||
'{userid}' => userid(),
|
||||
'{first_name}' => $userquery->udetails['first_name'],
|
||||
'{last_name}' => $userquery->udetails['last_name'],
|
||||
'{name}' => name( $userquery->udetails ),
|
||||
'{user}' => name( $userquery->udetails ),
|
||||
'{email}' => $userquery->udetails[ 'email' ],
|
||||
'{date_year}' => cbdate("Y"),
|
||||
'{date_month}' => cbdate("m"),
|
||||
'{date_day}' => cbdate("d"),
|
||||
'{now}' => NOW(),
|
||||
// '{ip_address}' => get_user_ip(),
|
||||
// '{ip}' => get_user_ip()
|
||||
);
|
||||
|
||||
if ( !empty( $templates ) ) {
|
||||
foreach( $templates as $template ) {
|
||||
$code = $template[ 'email_template_code' ];
|
||||
$list[ $code ] = $template[ 'email_template_name' ];
|
||||
|
||||
$HTML_template = BASEDIR.'/styles/global/v4/email_templates/'.$code.'.html';
|
||||
|
||||
if ( file_exists( $HTML_template ) ) {
|
||||
$body = file_get_contents( $HTML_template );
|
||||
} else {
|
||||
$body = $template[ 'email_template' ];
|
||||
}
|
||||
|
||||
$_templates[ $code ] = array(
|
||||
'subject' => $template[ 'email_template_subject' ],
|
||||
'body' => $body
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
assign( 'list', $list );
|
||||
assign( '_templates', $_templates );
|
||||
assign( 'macros', $macros );
|
||||
|
||||
subtitle("Email Tester");
|
||||
template_files('email_tester.html');
|
||||
display_it();
|
|
@ -11,10 +11,16 @@ require'../includes/admin_config.php';
|
|||
$userquery->admin_login_check();
|
||||
$userquery->login_check('web_config_access');
|
||||
$pages->page_redir();
|
||||
$access_token = $MrsTranslator->get_access_token();
|
||||
|
||||
if(isset($_COOKIE['bing_access_token'])){
|
||||
//Do nothing
|
||||
}else{
|
||||
setcookie('bing_access_token', $access_token, time()+600);
|
||||
}
|
||||
/* Assigning page and subpage */
|
||||
if(!defined('MAIN_PAGE')){
|
||||
define('MAIN_PAGE', 'General Configurations');
|
||||
define('MAIN_PAGE', 'Stats And Configurations');
|
||||
}
|
||||
if(!defined('SUB_PAGE')){
|
||||
define('SUB_PAGE', 'Language Settings');
|
||||
|
|
|
@ -15,7 +15,7 @@ $pages->page_redir();
|
|||
|
||||
/* Assigning page and subpage */
|
||||
if(!defined('MAIN_PAGE')){
|
||||
define('MAIN_PAGE', 'General Configurations');
|
||||
define('MAIN_PAGE', 'Stats And Configurations');
|
||||
}
|
||||
if(!defined('SUB_PAGE')){
|
||||
define('SUB_PAGE', 'Website Configurations');
|
||||
|
@ -67,7 +67,7 @@ if(isset($_POST['update'])){
|
|||
'collection_rating',
|
||||
'collectionsSection',
|
||||
'comments_per_page',
|
||||
/*'captcha_type',*/
|
||||
'captcha_type',
|
||||
'con_modules_type',
|
||||
'comments_captcha',
|
||||
'comment_rating',
|
||||
|
@ -86,7 +86,6 @@ if(isset($_POST['update'])){
|
|||
'debug_level',
|
||||
'default_country_iso2',
|
||||
'default_time_zone',
|
||||
'pick_geo_country',
|
||||
'disallowed_usernames',
|
||||
'use_subs',
|
||||
|
||||
|
@ -177,7 +176,7 @@ if(isset($_POST['update'])){
|
|||
'photo_other_limit',
|
||||
|
||||
|
||||
/*'quick_conv',*/
|
||||
'quick_conv',
|
||||
|
||||
'resize',
|
||||
'remoteUpload',
|
||||
|
@ -200,7 +199,7 @@ if(isset($_POST['update'])){
|
|||
'thumb_height',
|
||||
|
||||
'use_ffmpeg_vf',
|
||||
/*'use_crons',*/
|
||||
'use_crons',
|
||||
'user_comment_own',
|
||||
'user_rate_opt1' ,
|
||||
'users_items_subscriptions',
|
||||
|
@ -244,9 +243,7 @@ if(isset($_POST['update'])){
|
|||
'vbrate_hd',
|
||||
'store_guest_session',
|
||||
'delete_mass_upload',
|
||||
'stay_mp4',
|
||||
'popup_video',
|
||||
'video_round_views'
|
||||
'stay_mp4'
|
||||
|
||||
);
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ $pages->page_redir();
|
|||
|
||||
/* Assigning page and subpage */
|
||||
if(!defined('MAIN_PAGE')){
|
||||
define('MAIN_PAGE', 'General Configurations');
|
||||
define('MAIN_PAGE', 'Stats And Configurations');
|
||||
}
|
||||
if(!defined('SUB_PAGE')){
|
||||
define('SUB_PAGE', 'Manage Pages');
|
||||
|
|
|
@ -1,202 +0,0 @@
|
|||
<?php
|
||||
/*
|
||||
*******************************************
|
||||
| Copyright (c) 2007-2010 Clip-Bucket.com & (Arslan Hassan). All rights reserved.
|
||||
| @ Author : AwaisFiaz
|
||||
| @ Software : ClipBucket , © PHPBucket.com
|
||||
*******************************************
|
||||
*/
|
||||
require_once '../includes/admin_config.php';
|
||||
$userquery->admin_login_check();
|
||||
|
||||
$pages->page_redir();
|
||||
|
||||
/* Assigning page and subpage */
|
||||
if(!defined('MAIN_PAGE')){
|
||||
define('MAIN_PAGE', 'Videos');
|
||||
}
|
||||
if(!defined('SUB_PAGE')){
|
||||
define('SUB_PAGE', 'Manage Playlist');
|
||||
}
|
||||
|
||||
|
||||
$mode = $_GET['mode'];
|
||||
|
||||
$page = mysql_clean($_GET['page']);
|
||||
$get_limit = create_query_limit($page,VLISTPP);
|
||||
|
||||
|
||||
switch($mode)
|
||||
{
|
||||
case 'manage_playlist':
|
||||
case 'manage_video_playlist':
|
||||
default:
|
||||
{
|
||||
|
||||
//Deleting Playlist
|
||||
|
||||
if(!empty($_GET['delete_pl']))
|
||||
{
|
||||
$plid = mysql_clean($_GET['delete_pl']);
|
||||
$cbvid->action->delete_playlist($plid);
|
||||
}
|
||||
|
||||
if(isset($_POST['delete_playlists']))
|
||||
{
|
||||
$playlists = post('check_playlist');
|
||||
|
||||
if(count($playlists)>0)
|
||||
{
|
||||
foreach($playlists as $playlist)
|
||||
{
|
||||
$playlist = mysql_clean($playlist);
|
||||
$cbvid->action->delete_playlist($playlist);
|
||||
}
|
||||
|
||||
if(!error())
|
||||
{
|
||||
$eh->flush();
|
||||
e(lang("playlists_have_been_removed"),"m");
|
||||
}else
|
||||
{
|
||||
$eh->flush();
|
||||
e(lang("playlist_not_exist"));
|
||||
}
|
||||
}else
|
||||
e(lang("no_playlist_was_selected_to_delete"));
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
//if search is activated
|
||||
if(isset($_GET['search']))
|
||||
{
|
||||
|
||||
if (!empty($_GET['playlist_name']) && isset($_GET['playlist_name'])){
|
||||
$array['playlist_name'] = $_GET['playlist_name'];
|
||||
}
|
||||
if (!empty($_GET['tags']) && isset($_GET['tags'])){
|
||||
$array['tags'] = $_GET['tags'];
|
||||
}
|
||||
if (!empty($_GET['userid']) && isset($_GET['userid'])){
|
||||
$array['user'] = $_GET['userid'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
assign('mode','manage_playlist');
|
||||
|
||||
//getting limit for pagination
|
||||
$page = mysql_clean($_GET['page']);
|
||||
$get_limit = create_query_limit($page,RESULTS);
|
||||
|
||||
//Getting List of available playlists with pagination
|
||||
$result_array=$array;
|
||||
$result_array['limit'] = $get_limit;
|
||||
if(!$array['order'])
|
||||
$result_array['order'] = " playlists.date_added DESC ";
|
||||
$playlists = $cbvid->action->get_playlists($result_array);
|
||||
|
||||
//Collecting Data for Pagination
|
||||
$pcount = $array;
|
||||
$pcount['count_only'] = true;
|
||||
$total_rows = get_playlists($pcount);
|
||||
$total_pages = count_pages($total_rows,RESULTS);
|
||||
$pages->paginate($total_pages,$page);
|
||||
|
||||
|
||||
assign('playlists',$playlists);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case 'edit_playlist':
|
||||
{
|
||||
|
||||
if(isset($_POST['delete_playlist_item']))
|
||||
{
|
||||
$items = post('check_playlist_items');
|
||||
|
||||
if(count($items)>0)
|
||||
{
|
||||
foreach($items as $item)
|
||||
{
|
||||
$item = mysql_clean($item);
|
||||
$cbvid->action->delete_playlist_item($item);
|
||||
}
|
||||
|
||||
if(!error())
|
||||
{
|
||||
$eh->flush();
|
||||
e(lang("playlist_items_have_been_removed"),"m");
|
||||
}else
|
||||
{
|
||||
$eh->flush();
|
||||
e(lang("playlist_item_doesnt_exist"));
|
||||
}
|
||||
|
||||
}else
|
||||
e(lang("no_item_was_selected_to_delete"));
|
||||
}
|
||||
|
||||
assign('mode','edit_playlist');
|
||||
$pid = $_GET['pid'];
|
||||
|
||||
if(isset($_POST['edit_playlist']))
|
||||
{
|
||||
#$params = array('name'=>mysql_clean($_POST['name']),'pid'=>mysql_clean($pid));
|
||||
$_POST[ 'list_id' ] = $pid;
|
||||
$cbvid->action->edit_playlist();
|
||||
}
|
||||
|
||||
if ( isset( $_POST[ 'upload_playlist_cover' ] ) ) {
|
||||
$cover = $_FILES[ 'playlist_cover' ];
|
||||
$cover[ 'playlist_id' ] = $pid;
|
||||
|
||||
if ( playlist_upload_cover( $cover ) ) {
|
||||
e( lang( 'Playlist cover has been uploaded' ), 'm' );
|
||||
}
|
||||
|
||||
if ( file_exists( $cover[ 'tmp_name' ] ) ) {
|
||||
unlink( $cover[ 'tmp_name' ] );
|
||||
}
|
||||
}
|
||||
|
||||
$playlist = $cbvid->action->get_playlist($pid);
|
||||
|
||||
//Deleting Item
|
||||
if(!empty($_GET['delete_item']))
|
||||
{
|
||||
$delid = mysql_clean($_GET['delete_item']);
|
||||
$cbvid->action->delete_playlist_item($delid);
|
||||
}
|
||||
|
||||
if($playlist)
|
||||
{
|
||||
assign('playlist',$playlist);
|
||||
//Getting Playlist Item
|
||||
$items = $cbvid->get_playlist_items( $pid, 'playlist_items.date_added DESC' );
|
||||
assign('items',$items);
|
||||
|
||||
}else
|
||||
e(lang('playlist_not_exist'));
|
||||
|
||||
}
|
||||
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
//- manageplay front end
|
||||
|
||||
|
||||
|
||||
template_files('manage_playlist.html');
|
||||
display_it();
|
||||
?>
|
|
@ -48,7 +48,7 @@ if(isset($_POST['mass_upload_video']))
|
|||
$file_arr = $files[$i];
|
||||
$file_path = $files[$i]['path'];
|
||||
$file_orgname = $files[$i]['file'];
|
||||
|
||||
|
||||
if($cbmass->is_mass_file($file_arr))
|
||||
{
|
||||
$code = $i+1;
|
||||
|
@ -91,7 +91,6 @@ if(isset($_POST['mass_upload_video']))
|
|||
'tags' => $_POST['tags'][$i],
|
||||
'category' => array($cbvid->get_default_cid()),
|
||||
'file_name' => $file_name,
|
||||
'file_directory' => $file_directory,
|
||||
);
|
||||
|
||||
$vid = $Upload->submit_upload($array);
|
||||
|
@ -108,16 +107,13 @@ if(isset($_POST['mass_upload_video']))
|
|||
return false;
|
||||
}
|
||||
|
||||
$file_directory = createDataFolders();
|
||||
$array = array(
|
||||
'title' => $_POST['title'][$i],
|
||||
'description' => $_POST['description'][$i],
|
||||
'tags' => $_POST['tags'][$i],
|
||||
'category' => $_POST['category'.$code],
|
||||
'file_name' => $file_key,
|
||||
'file_directory' => $file_directory,
|
||||
);
|
||||
//pex($array,true);
|
||||
$vid = $Upload->submit_upload($array);
|
||||
}else{
|
||||
e("\"".$file_arr['title']."\" is not available");
|
||||
|
@ -141,23 +137,11 @@ if(isset($_POST['mass_upload_video']))
|
|||
//Moving file to temp dir and Inserting in conversion queue..
|
||||
|
||||
$file_name = $cbmass->move_to_temp($file_arr,$file_key);
|
||||
|
||||
$file_directory = createDataFolders();
|
||||
createDataFolders(LOGS_DIR);
|
||||
$logFile = LOGS_DIR.'/'.$file_directory.'/'.$file_key.'.log';
|
||||
//pex($logFile,true);
|
||||
$log = new SLog($logFile);
|
||||
|
||||
$log->newSection("Pre-Check Configurations");
|
||||
$log->writeLine("File to be converted", 'Initializing File <strong>'.$file_name.'.mp4</strong> and pre checking configurations...', true);
|
||||
$hardware = shell_exec('lshw -short');
|
||||
if ($hardware){
|
||||
$log->writeLine("System hardware Information", $hardware, true);
|
||||
}else{
|
||||
$log->writeLine('System hardware Information', 'Unable log System hardware information, plaese install "lshw" ', true);
|
||||
}
|
||||
|
||||
|
||||
|
||||
$results=$Upload->add_conversion_queue($file_name);
|
||||
$str = "/".date("Y")."/".date("m")."/".date("d")."/";
|
||||
$str1 = date("Y")."/".date("m")."/".date("d");
|
||||
|
|
|
@ -15,7 +15,7 @@ $userquery->login_check('web_config_access');
|
|||
|
||||
/* Assigning page and subpage */
|
||||
if(!defined('MAIN_PAGE')){
|
||||
define('MAIN_PAGE', 'General Configurations');
|
||||
define('MAIN_PAGE', 'Stats And Configurations');
|
||||
}
|
||||
if(!defined('SUB_PAGE')){
|
||||
define('SUB_PAGE', 'Reports & Stats');
|
||||
|
@ -44,7 +44,7 @@ assign('grp_thumbs',$grp_thumbs);
|
|||
assign('cat_thumbs',$cat_thumbs);
|
||||
|
||||
if(!defined('MAIN_PAGE')){
|
||||
define('MAIN_PAGE', 'General Configurations');
|
||||
define('MAIN_PAGE', 'Stats And Configurations');
|
||||
}
|
||||
if(!defined('SUB_PAGE')){
|
||||
if($_GET['view'] == 'search')
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
<div class="form-group">
|
||||
<label for="status">Status</label>
|
||||
<select name="status" id="status" class="form-control">
|
||||
<option value="" >----</option>
|
||||
|
||||
<option value="Ok" {if $smarty.get.status=='Ok'} selected="selected"{/if}>Active</option>
|
||||
<option value="ToActivate" {if $smarty.get.status=='ToActivate'} selected="selected"{/if}>Inactive</option>
|
||||
</select>
|
||||
|
@ -44,7 +44,7 @@
|
|||
<div class="form-group">
|
||||
<label for="banned">Banned</label>
|
||||
<select name="ban" id="ban" class="form-control">
|
||||
<option value="" >----</option>
|
||||
|
||||
<option value="no" {if $smarty.get.ban=='no'} selected="selected"{/if}>No</option>
|
||||
<option value="yes" {if $smarty.get.ban=='yes'} selected="selected"{/if}>Yes</option>
|
||||
</select>
|
||||
|
@ -54,7 +54,7 @@
|
|||
<div class="form-group">
|
||||
<label for="featured">Featured</label>
|
||||
<select name="featured" id="featured" class="form-control">
|
||||
<option value="" >----</option>
|
||||
|
||||
<option value="No" {if $smarty.get.featured=='No'} selected="selected"{/if}>No</option>
|
||||
<option value="Yes" {if $smarty.get.featured=='Yes'} selected="selected"{/if}>Yes</option>
|
||||
</select>
|
||||
|
|
|
@ -1,65 +0,0 @@
|
|||
<div class="advanceSearchButton clearfix">
|
||||
<a href="#" class="btn btn-primary btn-sm pull-right current after" onclick="$('#searchdiv').toggle();return false;" style="margin-bottom: 0px;position: relative; top: 15px;">
|
||||
Advanced Search
|
||||
<i class="glyphicon glyphicon-chevron-down down"></i>
|
||||
<i class="glyphicon glyphicon-chevron-up up" style="display:none"></i>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
<div class="search_box well" id="searchdiv" {if $smarty.cookies.show_searchdiv_search!='show'} style="display:none"{/if}>
|
||||
<form id="video_search" name="video_search" method="get" action="manage_playlist.php" class="video_search">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<!-- <label for="userid">Userid</label> -->
|
||||
<label for="title">Userid</label>
|
||||
<input class="form-control" name="userid" type="text" id="userid" value="{'userid'|get_form_val:true}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<!-- <label for="title">Video title</label> -->
|
||||
<label for="title">Playlist title</label>
|
||||
<input name="playlist_name" type="text" class="form-control" id="title" value="{'playlist_name'|get_form_val:divue}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<!-- <label for="tags">Video tags</label> -->
|
||||
<label for="title">Playlist tags</label>
|
||||
<input class="form-control" name="tags" type="text" id="tags" value="{'tags'|get_form_val:true}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="submit" name="search" id="search" value="Search" class="btn btn-success btn-sm"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
$(document).ready(function neww () {
|
||||
$(".current").click(function() {
|
||||
$(this).toggleClass('after');
|
||||
if(!$(this).hasClass('after'))
|
||||
{
|
||||
|
||||
$('.down').hide();
|
||||
$('.up').show();
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
|
||||
$('.down').show();
|
||||
$('.up').hide();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
})
|
||||
|
||||
</script>
|
|
@ -1,138 +0,0 @@
|
|||
{if $control=='' || $control =='view'}
|
||||
{if $mode ==''}{assign var='mode' value='favorites'}{/if}
|
||||
|
||||
{/if}
|
||||
|
||||
|
||||
{if $control =='full'}
|
||||
<tr>
|
||||
<td>
|
||||
<div class="col-md-3">
|
||||
<a class="manageVid_thumb" href="edit_video.php?video={$video.videoid}">
|
||||
<img src="{getThumb vdetails=$video}" class="img-responsive" width="130" height="80" id="thumbs_{$video.videoid}" class="vthumb" title=""/>
|
||||
<span class="duration">({if
|
||||
$video.duration>1}{$video.duration|SetTime}{else}00:00{/if})</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<a href="edit_video.php?vid={$video.videoid}">{$video.title|truncate:80}</a>
|
||||
<br>
|
||||
<span class="maccountlabels">
|
||||
<strong>{$video.date_added|niceTime}</strong>
|
||||
{lang code='views'} : <strong>{$video.views|number_format}</strong>
|
||||
</span>
|
||||
<div class="labels">
|
||||
{if $video.featured=='yes'}
|
||||
<span class="label label-primary">Featured{else}{/if}</span>
|
||||
<span class="label {if $video.active=='yes'}label-success{else}label-warning{/if} mlabel">{if $video.active=='yes'}Active{else}InActive{/if}</span>
|
||||
<span class="label {if $video.status=='Successful'}label-success{else}label-warning{/if}">{if $video.status=='Successful'}Successful{else}Processing{/if}</span>
|
||||
<span class="label label-info">Viewed {$video.last_viewed|niceTime}</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
{*<td>
|
||||
<div class="clearfix">
|
||||
{if $video.broadcast=='public'}
|
||||
<div class="col-md-1"><i class="icon-globe"></i></div>
|
||||
{elseif $video.broadcast!='public'}
|
||||
<div class="col-md-1"><i class="icon-lock"></i></div>
|
||||
{/if}
|
||||
</div>
|
||||
<a href="view_user.php?uid={$video.userid}">{$video.username}</a>
|
||||
</td>*}
|
||||
|
||||
<td>
|
||||
<div class="dropdown text-center">
|
||||
<button id="dropdownMenu1" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown">
|
||||
Actions <i class="caret"></i></button>
|
||||
<ul class="dropdown-menu pull-right" aria-labelledby="dropdownMenu1" role="menu">
|
||||
{if $cbvid->is_video_owner($video.videoid,$user.userid) || has_access('admin_access')}
|
||||
<li><a role="menuitem" tabindex="-1" href="{$baseurl}/edit_video.php?vid={$video.videoid}" class="">Edit</a></li>
|
||||
|
||||
<li><a role="menuitem" tabindex="-1" href="javascript:_cb.Confirm_Delete('?vid_delete={$video.videoid}')">Delete</a>
|
||||
</li>
|
||||
{/if}
|
||||
<li><a role="menuitem" tabindex="-1" href="{$baseurl}/watch_video.php?v={$video.videokey}"target="_blank">Watch</a>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
{foreach from=$cbvid->video_manager_links item=links}
|
||||
{$cbvid->video_manager_link($links,$video)}
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
{if $control=='playlist'}
|
||||
<tr>
|
||||
<td width="25">
|
||||
<input type="checkbox" name="check_playlist_items[]" id="check_vid-{$video.playlist_item_id}" value="{$video.playlist_item_id}" />
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<img class="edit-img-thumbnail" src="{getThumb vdetails=$video}">
|
||||
<p class="marginTop">{$video.title|truncate:100}</p>
|
||||
<div class="btn-group show">
|
||||
<a class="btn btn-primary btn-sm" href="{videoLink vdetails=$video}">view</a>
|
||||
<a class="btn btn-primary btn-sm" href="javascript:void(0)" onmousedown="delete_video('delete_icon_a','{$video.playlist_item_id}','{lang code="remove_playlist_item_confirm"}','?mode=edit_playlist&pid={$pid}&delete_item={$video.playlist_item_id}')" id="delete_icon_a-{$video.playlist_item_id}">
|
||||
delete
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<a href="javascript:void(0)" onmousedown="delete_video('delete_icon','{$video.playlist_item_id}','{lang code="remove_playlist_item_confirm"}','?mode=edit_playlist&pid={$pid}&delete_item={$video.playlist_item_id}')" id="delete_icon-{$video.playlist_item_id}"><img src="{$imageurl}/dot.gif" border="0" class="delete_icon" /></a>
|
||||
</td>
|
||||
<td width="100">
|
||||
{$video.date_added|date_format}
|
||||
</td>
|
||||
<td width="100">
|
||||
{$video.views|number_format}
|
||||
</td>
|
||||
<td width="100">
|
||||
{$video.comments_count|number_format}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
|
||||
{if $control=='basic'}
|
||||
|
||||
<div class="clearfix">
|
||||
<input type="checkbox" name="check_vid[]" id="check_vid-{$video.videoid}" value="{$video.videoid}" />
|
||||
</div>
|
||||
|
||||
<div class="clearfix">
|
||||
<a href="{videoLink vdetails=$video}">
|
||||
<img src="{getThumb vdetails=$video}" width="130" height="80" id="thumbs_{$video.videoid}" class="vthumb" />
|
||||
<p class="marginTop">{$video.title|truncate:100}</p>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="clearfix">{$video.date_added|date_format}</div>
|
||||
<div class="clearfix">{$video.views|number_format}</div>
|
||||
<div class="clearfix">{$video.comments_count|number_format}</div>
|
||||
|
||||
{/if}
|
||||
|
||||
{if $control=='onWatch'}
|
||||
<div class="featured-video clearfix" {if $ajax_load == "yes"} style="display: none" {/if}>
|
||||
<a href="{videoLink($video)}">
|
||||
<div class="video_thumb">
|
||||
<img src="{getThumb vdetails=$video size=128x80}" {ANCHOR place="video_thumb" data=$video} class="img-responsive">
|
||||
<img src="{$theme}/images/thumb-ratio.png" alt="" class="thumb-ratio">
|
||||
<time datetime="2016-15-03" class="duration">
|
||||
{if $video.duration>1}{$video.duration|SetTime}{else}00:00{/if}</time>
|
||||
</div> <!--VIDEO_THUMB END-->
|
||||
</a>
|
||||
<div class="details_block">
|
||||
<strong class="title"><a href="{videoLink($video)}">{$video.title|truncate:50}</a></strong>
|
||||
<div class="views-date">
|
||||
<span>{$video.views} {lang code='views'}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
|
@ -9,7 +9,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
{if $edit_category != "show"}
|
||||
<div id="content" style="display: none">
|
||||
<form action="category.php" method="post" enctype="multipart/form-data" name="add_category" id="Add Category">
|
||||
|
@ -29,17 +29,16 @@
|
|||
<tr>
|
||||
<div class="col-md-4">
|
||||
<label>Make Default Category</label>
|
||||
<select class="form-control" name="default">
|
||||
<option class="form-control" id="default_0" value="yes">Yes</option>
|
||||
<option class="form-control" id="default_1" value="no" selected="selected">No</option>
|
||||
<select class="form-control" name="default_categ">
|
||||
<option class="form-control" name="default" id="default_0">Yes</option>
|
||||
<option class="form-control" name="default" id="default_1" selected="selected">No</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row marginTopLarge">
|
||||
|
||||
<div class="col-md-12">
|
||||
<label>Description</label>
|
||||
<textarea class="form-control" name="desc" id="description" cols="33" rows="5" >{'desc'|post_form_val}</textarea>
|
||||
<textarea class="form-control" name="desc" id="desc" cols="33" rows="5" >{'desc'|post_form_val}</textarea>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -79,15 +78,14 @@
|
|||
<div class="col-md-4">
|
||||
<label>Make Default Category</label>
|
||||
<select class="form-control" name="default_categ">
|
||||
<option class="form-control" id="default_0" value="yes" {if $cat_details.isdefault=='yes'} checked="checked"{/if} >Yes</option>
|
||||
<option class="form-control" id="default_1" value="no" {if $cat_details.isdefault=='no'} checked="checked"{/if}>No</option>
|
||||
<option class="form-control" name="default" id="default_0" {if $cat_details.isdefault=='yes'} checked="checked"{/if} >Yes</option>
|
||||
<option class="form-control" name="default" id="default_1" {if $cat_details.isdefault=='no'} checked="checked"{/if}>No</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row marginTopLarge">
|
||||
<div class="col-md-12">
|
||||
<label>Description</label>
|
||||
<textarea class="form-control" name="desc" id="description" cols="33" rows="5">{$cat_details.category_desc}</textarea>
|
||||
<textarea class="form-control" name="desc" id="desc" cols="33" rows="5">{$cat_details.category_desc}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
|
@ -162,7 +160,6 @@
|
|||
{else}
|
||||
No Category Has Been Created Yet
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
{if $useSubs == 1}
|
||||
<div class="col-md-4">
|
||||
<label>Parent Category</label>
|
||||
{cbCategories output="dropdown" class="form-control" name="parent_cat" id="parent_cat" blank_option=TRUE echo=TRUE type="collection"}
|
||||
{cbCategories output="dropdown" class="form-control" name="parent_cat" id="parent_cat" blank_option=TRUE echo=TRUE type="video"}
|
||||
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
|
|
|
@ -1,173 +1,155 @@
|
|||
|
||||
<div class="heading">
|
||||
<h2>Comments Manager</h2>
|
||||
<h2>Comments Manager</h2>
|
||||
</div>
|
||||
<div id="vid_opt-{$groups[gp_list].group_id}" class="dropdown">
|
||||
<button id="dropdownMenu" class="btn btn-primary btn-xs dropdown-toggle pull-right"
|
||||
data-toggle="dropdown">View Comments <i class="caret"></i></button>
|
||||
<ul class="dropdown-menu pull-right" aria-labelledby="dropdownMenu1" role="menu">
|
||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="?type=v" title="View Video Comments">View Video Comments</a>
|
||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="?type=t">View Topic Posts</a>
|
||||
<button id="dropdownMenu" class="btn btn-primary btn-xs dropdown-toggle pull-right"
|
||||
data-toggle="dropdown">View Comments <i class="caret"></i></button>
|
||||
<ul class="dropdown-menu pull-right" aria-labelledby="dropdownMenu1" role="menu">
|
||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="?type=v" title="View Video Comments">View Video Comments</a>
|
||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="?type=t">View Topic Posts</a>
|
||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="?type=c">View Channel Comments</a>
|
||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="?type=cl">View Collection Comments</a>
|
||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="?type=p">View Photo Comments</a>
|
||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="?type=cl">View Collection Comments</a>
|
||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="?type=p">View Photo Comments</a>
|
||||
</ul>
|
||||
</div>
|
||||
<form name="comments_manager" method="post">
|
||||
<div class="btn-grp formOptions">
|
||||
<input class="btn btn-xs btn-primary" type="submit" name="mark_spam" value="Mark Spam" class="button" id="mark_spam"/>
|
||||
<input class="btn btn-xs btn-primary" type="submit" name="not_spam" value="Not Spam" class="button" id="not_spam"/>
|
||||
<input class="btn btn-xs btn-primary" type="submit" name="delete_selected" value="Delete" class="button" onclick="return confirm_it('Are you sure you want to delete selected comment(s)')"/>
|
||||
</div>
|
||||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<td width="40" align="center" valign="middle" class="left_head">
|
||||
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
|
||||
<td width="85" class="head"><strong>CID</strong></td>
|
||||
<td class="head"><strong>Comment</strong></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{if $comments}
|
||||
|
||||
<table class="table table-bordered">
|
||||
{foreach from=$comments item=comment}
|
||||
|
||||
{if $comment.anonym_name != ""}
|
||||
{assign var=comment_owner value=$comment.anonym_name}
|
||||
{else}
|
||||
{assign var=comment_owner value=$userquery->get_user_details($comment.3)}
|
||||
{/if}
|
||||
|
||||
<tr>
|
||||
<td width="40"><input style="margin-left:5px;margin-top:10px;"name="check_comments[]" type="checkbox" id="check_comments" value="{$comment.comment_id}" /></td>
|
||||
<td >{$comment.comment_id}</td>
|
||||
<td onmouseover="$('#comm_opt-{$comment.comment_id}').show()" onmouseout="$('#comm_opt-{$comment.comment_id}').hide()" >
|
||||
{if $type == '' || $type == 'v'}
|
||||
{if is_array($comment_owner)} <a href="{$userquery->profile_link($comment_owner)}"><strong>{$comment_owner.username}</strong></a> {else} <span id="{$comment.comment_id}" class="edit_comment"><strong style="margin-left:-10px;">{$comment.comment}</strong></span>
|
||||
<div class="videoTitle row">
|
||||
<div class="col-md-10">
|
||||
<a href="view_user.php?uid={$video.userid}">{$comment_owner}</a> {/if} commented on a video named <a href="{videoLink vdetails=$comment}" title="{$comment.title}">{$comment.title|truncate:40}</a>
|
||||
on {$comment.date_added|date_format}
|
||||
<div class="clear-fix"></div>
|
||||
</div>
|
||||
</div>
|
||||
<td>
|
||||
<div class="dropdown pull-right">
|
||||
<button id="dropdownMenu1" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown">Actions <i class="caret"></i></button>
|
||||
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1" role="menu">
|
||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="{$cbcollection->collection_links($comment,'vc')}#{if $comment.spam_votes > 0}spam_{/if}comment_{$comment.comment_id}" target="_blank">{lang code='view'} {lang code='comment'}</a></li>
|
||||
|
||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="#" id="spam_comment_{$comment.comment_id}" onclick="admin_spam_comment({$comment.comment_id}); return false;"{if $comment.spam_votes ==0} style="display:inline"{else} style="display:none;"{/if}>Mark {lang code='spam'}</a> <a href="#" id="remove_spam_comment_{$comment.comment_id}" onclick="admin_remove_spam({$comment.comment_id}); return false;"
|
||||
{if $comment.spam_votes !=0} style="display:inline"{else} style="display:none;"{/if}>{lang code='remove'} {lang code='spam'}</a> </li>
|
||||
|
||||
|
||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="#" onclick="delete_comment('{$comment.comment_id}','v'); return false;">{lang code='delete'}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $type == 't'}
|
||||
<span class="vdo_sets">
|
||||
{if is_array($comment_owner)} <a href="{$userquery->profile_link($comment_owner)}"><strong>{$comment_owner.username}</strong></a> {else} <strong>{$comment_owner}</strong> {/if} commented on <strong>{$comment.date_added|date_format}</strong> on a topic named <span style="text-transform:none"><a href="{$cbgroup->topic_link($comment)}" title="{$comment.topic_title}">{$comment.topic_title|truncate:40}</a></span>
|
||||
</span>
|
||||
<span style="font-size:11px;" class="edit_comment">{$comment.comment}</span>
|
||||
|
||||
<div id="comm_opt-{$comment.comment_id}" class="vid_opts" style="display:none">
|
||||
|
||||
<a href="{$cbgroup->topic_link($comment)}#{if $comment.spam_votes > 0}spam_{/if}comment_{$comment.comment_id}" target="_blank">{lang code='view'} {lang code='comment'}</a> |
|
||||
|
||||
<a href="#" id="spam_comment_{$comment.comment_id}" onclick="admin_spam_comment({$comment.comment_id}); return false;"{if $comment.spam_votes ==0} style="display:inline"{else} style="display:none;"{/if}>Mark {lang code='spam'}</a> <a href="#" id="remove_spam_comment_{$comment.comment_id}" onclick="admin_remove_spam({$comment.comment_id}); return false;"
|
||||
{if $comment.spam_votes !=0} style="display:inline"{else} style="display:none;"{/if}>{lang code='remove'} {lang code='spam'}</a> |
|
||||
|
||||
<a href="#" onclick="delete_comment('{$comment.comment_id}','v'); return false;">{lang code='delete'}</a>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $type == 'c'}
|
||||
<span class="vdo_sets">
|
||||
<span style="font-size:11px;" class="edit_comment"><strong>{$comment.comment}</strong></span><br>
|
||||
{if is_array($comment_owner)} <a href="{$userquery->profile_link($comment_owner)}"><strong>{$comment_owner.username}</strong></a> {else} <strong><a href="{$userquery->profile_link($comment_owner)}">{$comment_owner}</a></strong> {/if} commented on <strong>{$comment.date_added|date_format}</strong> on a channel named <span style="text-transform:none"><a href="{$userquery->profile_link($comment)}" title="{$comment.username}">{$comment.username|truncate:40}</a></span>
|
||||
</span>
|
||||
|
||||
<div class="dropdown pull-right">
|
||||
<button id="dropdownMenu1" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown">Actions <i class="caret"></i></button>
|
||||
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1" role="menu">
|
||||
<li role="presentation"><a role="menuitem" tabindex="-1" href href="{$userquery->profile_link($comment)}#{if $comment.spam_votes > 0}spam_{/if}comment_{$comment.comment_id}" target="_blank">{lang code='view'} {lang code='comment'}</a></li>
|
||||
|
||||
<li role="presentation"><a role="menuitem" tabindex="-1" href href="#" id="spam_comment_{$comment.comment_id}" onclick="admin_spam_comment({$comment.comment_id}); return false;"{if $comment.spam_votes ==0} style="display:inline"{else} style="display:none;"{/if}>Mark {lang code='spam'}</a> </li>
|
||||
<a href="#" id="remove_spam_comment_{$comment.comment_id}" onclick="admin_remove_spam({$comment.comment_id}); return false;"
|
||||
{if $comment.spam_votes !=0} style="display:inline"{else} style="display:none;"{/if}>{lang code='remove'} {lang code='spam'}</a>
|
||||
|
||||
<li role="presentation"><a role="menuitem" tabindex="-1" href href="#" onclick="delete_comment('{$comment.comment_id}','v'); return false;">{lang code='delete'}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<form name="comments_manager" method="post">
|
||||
<div class="btn-grp formOptions">
|
||||
<input class="btn btn-xs btn-primary" type="submit" name="mark_spam" value="Mark Spam" class="button" id="mark_spam"/>
|
||||
<input class="btn btn-xs btn-primary" type="submit" name="not_spam" value="Not Spam" class="button" id="not_spam"/>
|
||||
<input class="btn btn-xs btn-primary" type="submit" name="delete_selected" value="Delete" class="button" onclick="return confirm_it('Are you sure you want to delete selected comment(s)')"/>
|
||||
</div>
|
||||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<td width="40" align="center" valign="middle" class="left_head">
|
||||
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
|
||||
<td width="85" class="head"><strong>CID</strong></td>
|
||||
<td class="head" colspan="2"><strong>Comment</strong></td>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
</tr>
|
||||
<!-- </table> -->
|
||||
{if $type == 'cl'}
|
||||
<span class="vdo_sets">
|
||||
{if is_array($comment_owner)} <a href="{$userquery->profile_link($comment_owner)}"><strong>{$comment_owner.username}</strong></a> {else} <strong>{$comment_owner}</strong> {/if} commented on <strong>{$comment.date_added|date_format}</strong> on a collection named <span style="text-transform:none"><a href="{$cbcollection->collection_links($comment,'vc')}" title="{$comment.collection_name}">{$comment.collection_name|truncate:40}</a></span>
|
||||
</span>
|
||||
<span style="font-size:11px;" class="edit_comment">{$comment.comment}</span>
|
||||
|
||||
{if $comments}
|
||||
<div class="labels">
|
||||
<a href="{$cbcollection->collection_links($comment,'vc')}#{if $comment.spam_votes > 0}spam_{/if}comment_{$comment.comment_id}" target="_blank">{lang code='view'} {lang code='comment'}</a> |
|
||||
|
||||
<!-- <table class="table table-bordered"> -->
|
||||
<!-- {pr($comments,true)} -->
|
||||
{foreach from=$comments item=comment}
|
||||
<a href="#" id="spam_comment_{$comment.comment_id}" onclick="admin_spam_comment({$comment.comment_id}); return false;"{if $comment.spam_votes ==0} style="display:inline"{else} style="display:none;"{/if}>Mark {lang code='spam'}</a> <a href="#" id="remove_spam_comment_{$comment.comment_id}" onclick="admin_remove_spam({$comment.comment_id}); return false;"
|
||||
{if $comment.spam_votes !=0} style="display:inline"{else} style="display:none;"{/if}>{lang code='remove'} {lang code='spam'}</a> |
|
||||
|
||||
{if $comment.anonym_name != ""}
|
||||
{assign var=comment_owner value=$comment.anonym_name}
|
||||
{else}
|
||||
<!-- {assign var=comment_owner value=$userquery->get_user_details($comment.3)} -->
|
||||
{assign var=comment_owner value=$userquery->get_user_details($comment.c_userid)}
|
||||
{/if}
|
||||
<a href="#" onclick="delete_comment('{$comment.comment_id}','v'); return false;">{lang code='delete'}</a>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<tr>
|
||||
<td width="40"><input style="margin-left:5px;margin-top:10px;"name="check_comments[]" type="checkbox" id="check_comments" value="{$comment.comment_id}" /></td>
|
||||
<td >{$comment.comment_id}</td>
|
||||
<td onmouseover="$('#comm_opt-{$comment.comment_id}').show()" onmouseout="$('#comm_opt-{$comment.comment_id}').hide()" >
|
||||
<span id="{$comment.comment_id}" class="edit_comment">
|
||||
<strong style="margin-left:-10px;">{$comment.comment}</strong>
|
||||
</span><br>
|
||||
{if $type == '' || $type == 'v'}
|
||||
{if is_array($comment_owner)}
|
||||
<a href="{$userquery->profile_link($comment_owner)}">
|
||||
<strong>{$comment_owner.username}</strong>
|
||||
</a>
|
||||
{else}
|
||||
<span id="{$comment.comment_id}" class="edit_comment">
|
||||
<strong style="margin-left:-10px;">{$comment.comment}</strong>
|
||||
</span>
|
||||
<div class="videoTitle row">
|
||||
<div class="col-md-10">
|
||||
<strong>{$comment_owner} - {lang code="un_reg_user"}</strong> {/if} commented on a video named <a href="{videoLink vdetails=$comment}" title="{$comment.title}">{$comment.title|truncate:40}</a>
|
||||
on {$comment.date_added|date_format}
|
||||
<div class="clear-fix"></div>
|
||||
</div>
|
||||
</div>
|
||||
<td>
|
||||
<div class="dropdown pull-right">
|
||||
<button id="dropdownMenu1" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown">Actions <i class="caret"></i></button>
|
||||
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1" role="menu">
|
||||
<li role="presentation">
|
||||
{if $type == 'p'}
|
||||
<span class="vdo_sets">
|
||||
{if is_array($comment_owner)} <a href="{$userquery->profile_link($comment_owner)}"><strong>{$comment_owner.username}</strong></a> {else} <strong>{$comment_owner}</strong> {/if} commented on <strong>{$comment.date_added|date_format}</strong> on a photo named <span style="text-transform:none"><a href="{$cbphoto->photo_links($comment,'view_photo')}" title="{$comment.photo_title}">{$comment.photo_title|truncate:40}</a></span>
|
||||
</span>
|
||||
|
||||
<a role="menuitem" tabindex="-1" href="{$baseurl}/watch_video.php?v={$comment.videoid}#{if $comment.spam_votes > 0}spam_{/if}comment_{$comment.comment_id}" target="_blank">{lang code='view'} {lang code='comment'}</a>
|
||||
<span>{$comment.comment}</span>
|
||||
|
||||
</li>
|
||||
<div class="labels">
|
||||
<a href="{$cbphoto->photo_links($comment,'view_photo')}#{if $comment.spam_votes > 0}spam_{/if}comment_{$comment.comment_id}" target="_blank">{lang code='view'} {lang code='comment'}</a> |
|
||||
|
||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="#" id="spam_comment_{$comment.comment_id}" onclick="admin_spam_comment({$comment.comment_id}); return false;"{if $comment.spam_votes ==0} style="display:inline"{else} style="display:none;"{/if}>Mark {lang code='spam'}</a> <a href="#" id="remove_spam_comment_{$comment.comment_id}" onclick="admin_remove_spam({$comment.comment_id}); return false;"
|
||||
{if $comment.spam_votes !=0} style="display:inline"{else} style="display:none;"{/if}>{lang code='remove'} {lang code='spam'}</a> </li>
|
||||
<a href="#" id="spam_comment_{$comment.comment_id}" onclick="admin_spam_comment({$comment.comment_id}); return false;"{if $comment.spam_votes ==0} style="display:inline"{else} style="display:none;"{/if}>Mark {lang code='spam'}</a> <a href="#" id="remove_spam_comment_{$comment.comment_id}" onclick="admin_remove_spam({$comment.comment_id}); return false;"
|
||||
{if $comment.spam_votes !=0} style="display:inline"{else} style="display:none;"{/if}>{lang code='remove'} {lang code='spam'}</a> |
|
||||
|
||||
<a href="#" onclick="delete_comment('{$comment.comment_id}','v'); return false;">{lang code='delete'}</a>
|
||||
</div></div>
|
||||
|
||||
<li role="presentation"><a role="menuitem" tabindex="-1" href="#" onclick="delete_comment('{$comment.comment_id}','v'); window.location.reload(); return false;">{lang code='delete'}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $type == 't'}
|
||||
<span class="vdo_sets">
|
||||
{if is_array($comment_owner)} <a href="{$userquery->profile_link($comment_owner)}"><strong>{$comment_owner.username}</strong></a> {else} <strong>{$comment_owner}</strong> {/if} commented on <strong>{$comment.date_added|date_format}</strong> on a topic named <span style="text-transform:none"><a href="{$cbgroup->topic_link($comment)}" title="{$comment.topic_title}">{$comment.topic_title|truncate:40}</a></span>
|
||||
</span>
|
||||
<span style="font-size:11px;" class="edit_comment">{$comment.comment}</span>
|
||||
{/if}
|
||||
|
||||
<div id="comm_opt-{$comment.comment_id}" class="vid_opts" style="display:none">
|
||||
{if $bgcolor == ""}
|
||||
{assign var = bgcolor value = "#EEE"}
|
||||
{else}
|
||||
{assign var = bgcolor value = ""}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</table>
|
||||
{else}
|
||||
<div align="center"><em>{lang code='no_comments'}</em></div>
|
||||
{/if}
|
||||
</form>
|
||||
<div style="height:10px; clear:both"></div>
|
||||
|
||||
<a href="{$cbgroup->topic_link($comment)}#{if $comment.spam_votes > 0}spam_{/if}comment_{$comment.comment_id}" target="_blank">{lang code='view'} {lang code='comment'}</a> |
|
||||
|
||||
<a href="#" id="spam_comment_{$comment.comment_id}" onclick="admin_spam_comment({$comment.comment_id}); return false;"{if $comment.spam_votes ==0} style="display:inline"{else} style="display:none;"{/if}>Mark {lang code='spam'}</a> <a href="#" id="remove_spam_comment_{$comment.comment_id}" onclick="admin_remove_spam({$comment.comment_id}); return false;"
|
||||
{if $comment.spam_votes !=0} style="display:inline"{else} style="display:none;"{/if}>{lang code='remove'} {lang code='spam'}</a> |
|
||||
|
||||
<a href="#" onclick="delete_comment('{$comment.comment_id}','v'); window.location.reload(); return false;">{lang code='delete'}</a>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $type == 'c'}
|
||||
<span class="vdo_sets">
|
||||
<span style="font-size:11px;" class="edit_comment"><strong>{$comment.comment}</strong></span><br>
|
||||
{if is_array($comment_owner)} <a href="{$userquery->profile_link($comment_owner)}"><strong>{$comment_owner.username}</strong></a> {else} <strong><a href="{$userquery->profile_link($comment_owner)}">{$comment_owner}</a></strong> {/if} commented on <strong>{$comment.date_added|date_format}</strong> on a channel named <span style="text-transform:none"><a href="{$userquery->profile_link($comment)}" title="{$comment.username}">{$comment.username|truncate:40}</a></span>
|
||||
</span>
|
||||
|
||||
<div class="dropdown pull-right">
|
||||
<button id="dropdownMenu1" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown">Actions <i class="caret"></i></button>
|
||||
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1" role="menu">
|
||||
<li role="presentation"><a role="menuitem" tabindex="-1" href href="{$userquery->profile_link($comment)}#{if $comment.spam_votes > 0}spam_{/if}comment_{$comment.comment_id}" target="_blank">{lang code='view'} {lang code='comment'}</a></li>
|
||||
|
||||
<li role="presentation"><a role="menuitem" tabindex="-1" href href="#" id="spam_comment_{$comment.comment_id}" onclick="admin_spam_comment({$comment.comment_id}); return false;"{if $comment.spam_votes ==0} style="display:inline"{else} style="display:none;"{/if}>Mark {lang code='spam'}</a> </li>
|
||||
<a href="#" id="remove_spam_comment_{$comment.comment_id}" onclick="admin_remove_spam({$comment.comment_id}); return false;"
|
||||
{if $comment.spam_votes !=0} style="display:inline"{else} style="display:none;"{/if}>{lang code='remove'} {lang code='spam'}</a>
|
||||
|
||||
<li role="presentation"><a role="menuitem" tabindex="-1" href href="#" onclick="delete_comment('{$comment.comment_id}','v'); window.location.reload(); return false;">{lang code='delete'}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $type == 'cl'}
|
||||
<span class="vdo_sets">
|
||||
{if is_array($comment_owner)} <a href="{$userquery->profile_link($comment_owner)}"><strong>{$comment_owner.username}</strong></a> {else} <strong>{$comment_owner}- {lang code="un_reg_user"}</strong> {/if} commented on <strong>{$comment.date_added|date_format}</strong> on a collection named <span style="text-transform:none"><a href="{$cbcollection->collection_links($comment,'vc')}" title="{$comment.collection_name}">{$comment.collection_name|truncate:40}</a></span>
|
||||
</span>
|
||||
|
||||
|
||||
<div class="labels">
|
||||
<a href="{$cbcollection->collection_links($comment,'vc')}#{if $comment.spam_votes > 0}spam_{/if}comment_{$comment.comment_id}" target="_blank">{lang code='view'} {lang code='comment'}</a> |
|
||||
|
||||
<a href="#" id="spam_comment_{$comment.comment_id}" onclick="admin_spam_comment({$comment.comment_id}); return false;"{if $comment.spam_votes ==0} style="display:inline"{else} style="display:none;"{/if}>Mark {lang code='spam'}</a> <a href="#" id="remove_spam_comment_{$comment.comment_id}" onclick="admin_remove_spam({$comment.comment_id}); return false;"
|
||||
{if $comment.spam_votes !=0} style="display:inline"{else} style="display:none;"{/if}>{lang code='remove'} {lang code='spam'}</a> |
|
||||
|
||||
<a href="#" onclick="delete_comment('{$comment.comment_id}','v'); window.location.reload(); return false;">{lang code='delete'}</a>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $type == 'p'}
|
||||
<span class="vdo_sets">
|
||||
{if is_array($comment_owner)} <a href="{$userquery->profile_link($comment_owner)}"><strong>{$comment_owner.username}</strong></a> {else} <strong>{$comment_owner}</strong> {/if} commented on <strong>{$comment.date_added|date_format}</strong> on a photo named <span style="text-transform:none"><a href="{$cbphoto->photo_links($comment,'view_photo')}" title="{$comment.photo_title}">{$comment.photo_title|truncate:40}</a></span>
|
||||
</span>
|
||||
|
||||
<span>{$comment.comment}</span>
|
||||
|
||||
<div class="labels">
|
||||
<a href="{$cbphoto->photo_links($comment,'view_photo')}#{if $comment.spam_votes > 0}spam_{/if}comment_{$comment.comment_id}" target="_blank">{lang code='view'} {lang code='comment'}</a> |
|
||||
|
||||
<a href="#" id="spam_comment_{$comment.comment_id}" onclick="admin_spam_comment({$comment.comment_id}); return false;"{if $comment.spam_votes ==0} style="display:inline"{else} style="display:none;"{/if}>Mark {lang code='spam'}</a> <a href="#" id="remove_spam_comment_{$comment.comment_id}" onclick="admin_remove_spam({$comment.comment_id}); return false;"
|
||||
{if $comment.spam_votes !=0} style="display:inline"{else} style="display:none;"{/if}>{lang code='remove'} {lang code='spam'}</a> |
|
||||
|
||||
<a href="#" onclick="delete_comment('{$comment.comment_id}','v'); window.location.reload(); return false;">{lang code='delete'}</a>
|
||||
</div></div>
|
||||
|
||||
{/if}
|
||||
|
||||
{if $bgcolor == ""}
|
||||
{assign var = bgcolor value = "#EEE"}
|
||||
{else}
|
||||
{assign var = bgcolor value = ""}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</table>
|
||||
{else}
|
||||
<div align="center"><em>{lang code='no_comments'}</em></div>
|
||||
{/if}
|
||||
</form>
|
||||
<div style="height:10px; clear:both"></div>
|
||||
|
||||
{include file="$style_dir/blocks/pagination.html" }
|
||||
{include file="$style_dir/blocks/pagination.html" }
|
||||
|
||||
|
|
|
@ -176,7 +176,7 @@
|
|||
<tr>
|
||||
<td class="first"><label for="filename">Uploaded Date</label></td>
|
||||
<td class="last">
|
||||
<p><span>{$data.date_added|date_only}</span></p>
|
||||
<p><span>{$data.datecreated|nicetime}</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -345,24 +345,7 @@
|
|||
|
||||
<div class="col-md-12">
|
||||
{$field.class='form-control'}
|
||||
{$field.hint_1}<br>
|
||||
{ANCHOR place=$field.anchor_before}
|
||||
|
||||
<!-- checkmate -->
|
||||
{if $field.name=='embed_code'}
|
||||
{if ($data.embed_code == '' || $data.embed_code == 'none' || $data.embed_code ==NULL)}
|
||||
{$field.extra_tags='disabled="disabled"'}
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if $field.name=='remote_play_url'}
|
||||
{if ($data.remote_play_url == '' || $data.remote_play_url == 'none' || $data.remote_play_url ==NULL)}
|
||||
{$field.extra_tags=' disabled="disabled"'}
|
||||
{/if}
|
||||
{/if}
|
||||
<!-- checkmate -->
|
||||
|
||||
{$formObj->createField($field)}
|
||||
{$field.hint_1}<br>{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
||||
</div><br>
|
||||
{$field.hint_2}
|
||||
</div>
|
||||
|
@ -510,9 +493,6 @@
|
|||
|
||||
</form>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="widget-box" style="margin-top: 30px">
|
||||
<div class="widget-header header-color-blue2 fontawesome-icons">
|
||||
|
@ -587,19 +567,6 @@
|
|||
selectOtherMonths: false,
|
||||
dateFormat:"yy-mm-dd"
|
||||
});
|
||||
|
||||
/*tinymce.init({
|
||||
selector: "textarea[name='description']",
|
||||
plugins : "table",
|
||||
|
||||
// Theme options
|
||||
|
||||
setup: function (editor) {
|
||||
editor.on('change', function () {
|
||||
tinymce.triggerSave();
|
||||
});
|
||||
}
|
||||
});*/
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
|
|
@ -1,207 +0,0 @@
|
|||
<style>
|
||||
|
||||
.cb-box .mid-roll-row {
|
||||
font-weight: 300;
|
||||
font-size: 14px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.cb-box textarea, .cb-box input[type=text][id=subject], #dynamic-values input {
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
.cb-box input[type=text].inline, .cb-box select.inline {
|
||||
width: 40px;
|
||||
border: none;
|
||||
text-align: center;
|
||||
border-bottom: 1px solid #ccc;
|
||||
background-color: transparent;
|
||||
border-radius: 0px !important;
|
||||
margin: 0px 4px;
|
||||
}
|
||||
|
||||
.cb-box select.inline {
|
||||
border-radius: 0px;
|
||||
width: auto;
|
||||
background-color: transparent;
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
.cb-box hr {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.cb-box .row .form-group > span.text-muted {
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="clearfix cb-box">
|
||||
<header class="clearfix cb-header">
|
||||
<h2>Email Tester</h2>
|
||||
</header>
|
||||
|
||||
<h4>Configurations</h4>
|
||||
<div class="btn-group">
|
||||
<a href="javascript:void(0)" class="btn btn-default">{lang('Mail type')}: <span class="badge">{config('mail_type')}</span></a>
|
||||
<a href="javascript:void(0)" class="btn btn-default">{lang('Host')}: <span class="badge">{config('smtp_host')}</span></a>
|
||||
<a href="javascript:void(0)" class="btn btn-default">{lang('Port')}: <span class="badge">{config('smtp_port')}</span></a>
|
||||
<a href="javascript:void(0)" class="btn btn-default">{lang('User')}: <span class="badge">{config('smtp_user')}</span></a>
|
||||
<a href="javascript:void(0)" class="btn btn-default">{lang('Password')}: <span class="badge">{config('smtp_pass')}</span></a>
|
||||
<a href="javascript:void(0)" class="btn btn-default">{lang('Auth')}: <span class="badge">{config('smtp_auth')}</span></a>
|
||||
</div>
|
||||
<hr />
|
||||
<form action="{queryString()}" method="post" id="test_email">
|
||||
<div class="form-group">
|
||||
<label for="to_name">To( Name )</label>
|
||||
<input type="text" name="to_name" id="to_name" class="form-control" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="to_email">To( Email Address )</label>
|
||||
<input type="text" name="to_email" id="to_email" class="form-control" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="from_name">From( Name )</label>
|
||||
<input type="text" name="from_name" id="from_name" class="form-control" placeholder="Default: Tune.pk" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="from_email">From( Email Address )</label>
|
||||
<input type="text" name="from_email" id="from_email" class="form-control" placeholder="Default: {$smarty.const.SUPPORT_EMAIL}" />
|
||||
</div>
|
||||
|
||||
{if $list}
|
||||
<div class="form-group">
|
||||
<label for="email_template">Email Template</label>
|
||||
<select name="email_template" id="email_template" class="form-control chosen">
|
||||
<option value="-1" selected="selected">- none -</option>
|
||||
{foreach $list as $id => $name}
|
||||
<option value="{$id}">{$name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="form-group">
|
||||
<label for="subject">Email Subject</label>
|
||||
<input type="text" name="subject" id="subject" class="form-control" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="body">Email Body</label>
|
||||
<textarea name="body" id="body" class="form-control" cols="30" rows="10"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group" id="dynamic-values" style="display: none">
|
||||
<h4>Dynamic Values</h4>
|
||||
</div>
|
||||
|
||||
<div class="pull-right">
|
||||
<button class="btn btn-primary" type="submit" name="start_test" id="start_test">Test</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="form-group clearfix" id="emaildv" style="display: none !important;">
|
||||
<input type="text" name="dvn[]" class="form-control pull-left" style="width: 49%" placeholder="macro" />
|
||||
<textarea name="dvv[]" id="" rows="2" class="form-control pull-right" style="width: 49%;" placeholder="value"></textarea>
|
||||
</div>
|
||||
|
||||
<!-- include chosen -->
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
/*var __macros = {json_encode($macros)},
|
||||
__templates = {json_encode($_templates)},
|
||||
arrayUnique = function(a) {
|
||||
return a.reduce(function(p, c) {
|
||||
if (p.indexOf(c) < 0) p.push(c);
|
||||
return p;
|
||||
}, []);
|
||||
};*/
|
||||
/*$( document ).ready(function(){
|
||||
$( '.chosen' ).chosen();
|
||||
|
||||
var onChange = function onChange( event ) {
|
||||
var _this = $( this ),
|
||||
subject = '',
|
||||
body = '';
|
||||
|
||||
{
|
||||
if( typeof __templates[ this.value ] !== 'undefined' ) {
|
||||
subject = __templates[ this.value ][ 'subject' ];
|
||||
body = __templates[ this.value ][ 'body' ];
|
||||
}
|
||||
}
|
||||
|
||||
//extract macros from body
|
||||
{literal}
|
||||
var expression = /\{([a-zA-Z0-9\_\-]*)\}/ig,
|
||||
{/literal}
|
||||
bodyMacros = body.match( expression );
|
||||
subjectMacros = subject.match( expression );
|
||||
|
||||
|
||||
if ( bodyMacros === null ) {
|
||||
bodyMacros = [];
|
||||
}
|
||||
|
||||
if ( subjectMacros === null ) {
|
||||
subjectMacros = [];
|
||||
}
|
||||
|
||||
dynamicMacros = bodyMacros.concat( subjectMacros );
|
||||
|
||||
console.info( subjectMacros );
|
||||
|
||||
if( dynamicMacros.length === 0 ) {
|
||||
$( '#dynamic-values' ).hide().find( '.form-group' ).remove();
|
||||
}
|
||||
|
||||
if ( dynamicMacros.length > 0 ) {
|
||||
|
||||
dynamicMacros = arrayUnique( dynamicMacros );
|
||||
|
||||
var container = $( '#dynamic-values' ),
|
||||
i;
|
||||
|
||||
container.find( '.form-group' ).remove();
|
||||
|
||||
for( i = 0; i < dynamicMacros.length; i++ ) {
|
||||
var clone = $( '#emaildv' ).clone(),
|
||||
_value = '';
|
||||
|
||||
container.append( clone );
|
||||
|
||||
var _dom = container.find( '#emaildv' );
|
||||
|
||||
_dom.attr( 'id', dynamicMacros[ i ] );
|
||||
_dom.attr( 'data-index', i );
|
||||
_dom.find( 'input[name*=dvn]' ).val( dynamicMacros[ i ] ).attr({
|
||||
'name':'dv['+i+'][name]',
|
||||
'readonly':'readonly'
|
||||
});
|
||||
|
||||
if ( typeof __macros[ dynamicMacros[ i ] ] !== 'undefined' ) {
|
||||
_value = __macros[ dynamicMacros[ i ] ];
|
||||
}
|
||||
|
||||
_dom.find( 'textarea[name*=dvv]' ).val( _value ).attr( 'name', 'dv['+i+'][value]' );
|
||||
_dom.show();
|
||||
}
|
||||
|
||||
$( '#dynamic-values' ).show()
|
||||
}
|
||||
|
||||
$( '#subject' ).val( subject );
|
||||
$( '#body' ).val( body );
|
||||
}
|
||||
|
||||
$( document ).on( 'change', '#email_template', onChange );
|
||||
});*/
|
||||
</script>
|
|
@ -1,18 +1,4 @@
|
|||
|
||||
|
||||
<footer class="footer clearfix ">
|
||||
<div class="footer_grey_bar col-lg-12 col-md-6 col-sm-12">
|
||||
<div class="col-lg-6 col-md-6 col-sm-12 col">
|
||||
<img src="{$imageurl}/footer-icon.png" class="cbicon" /> Thanks for using ClipBucket | © Copyright 2007 – {$smarty.now|date_format:"%Y"}
|
||||
</div>
|
||||
<div class="col-lg-6 col-md-6 col-sm-12 col">
|
||||
<div class="col-right" style="float:right; color:#fff;" align="right">
|
||||
<em>{$Cbucket->cbinfo.version}</em>| <a href="http://forums.clip-bucket.com/">Forums</a> | <a href="http://clip-bucket.com/arslan-hassan">Arslan Hassan</a> | <a href="http://docs.clip-bucket.com/">Docs</a> | <a href="http://www.opensource.org/licenses/attribution.php">Attribution Assurance License</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<!-- basic scripts -->
|
||||
|
||||
<!--[if !IE]> -->
|
||||
|
|
|
@ -48,30 +48,17 @@
|
|||
<script type="text/javascript" src="{$theme_url}/../../../../js/admin_functions.js"></script>
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="{$baseurl}/js/jquery_plugs/jquery.cookie.js"></script>
|
||||
|
||||
<!-- for bootstrap wysiwyg -->
|
||||
<link rel="stylesheet" href="{$theme_url}/css/summernote.css" />
|
||||
<script src="{$theme_url}/js/editor.js"></script>
|
||||
<script src="{$theme_url}/js/main.js"></script>
|
||||
<script src="{$theme_url}/js/jquery.amcharts.js" type="text/javascript"></script>
|
||||
<script src="{$theme_url}/js/jquery.pie.js" type="text/javascript"></script>
|
||||
<script src="{$theme_url}/js/jquery.light.js" type="text/javascript"></script>
|
||||
|
||||
<script src="{$theme_url}/js/jquery.serial.js" type="text/javascript"></script>
|
||||
<script src="{$theme_url}/js/jquery.bootstrap.newsbox.js" type="text/javascript"></script>
|
||||
<script src="{$theme_url}/js/jquery.bootstrap.newsbox.min.js" type="text/javascript"></script>
|
||||
<script src="Chart.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/1.0.2/Chart.min.js"></script>
|
||||
|
||||
<!-- for bootstrap wysiwyg -->
|
||||
|
||||
<!-- for popovers -->
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
if( $(".popoverButton").length > 0 ){
|
||||
$(".popoverButton").popover();
|
||||
}
|
||||
});
|
||||
if( $(".popoverButton").length > 0 )
|
||||
$(".popoverButton").popover();
|
||||
</script>
|
||||
|
||||
<!-- bootstrap x-editable -->
|
||||
|
@ -86,7 +73,7 @@
|
|||
url:baseurl+'/admin_area/index.php?mode=update_pharse',
|
||||
pk: function(){
|
||||
var id = $(this).attr("id");
|
||||
|
||||
|
||||
id = id.match(/([0-9]+)$/g);
|
||||
return id.pop();
|
||||
},
|
||||
|
@ -107,7 +94,7 @@
|
|||
});
|
||||
|
||||
$(function()
|
||||
{
|
||||
{
|
||||
$(".saveTodo").click(function(e){
|
||||
var self = this;
|
||||
var newVal = $(this).parent().parent().find("input[name='todo']").val();
|
||||
|
@ -140,26 +127,26 @@
|
|||
}
|
||||
});
|
||||
|
||||
$("#todolist").on("click", ".editable-clear-x", function(e){
|
||||
e.preventDefault();
|
||||
var self = this;
|
||||
var id = $(this).parents(".editable-container").prev().attr("id");
|
||||
id = id.match(/([0-9]+)$/g);
|
||||
id = id.pop();
|
||||
var ajaxCall = $.ajax({
|
||||
url: "{$baseurl}" + "/admin_area/index.php",
|
||||
type: "post",
|
||||
data: {
|
||||
id: id,
|
||||
mode: "delete_todo",
|
||||
},
|
||||
});
|
||||
ajaxCall.success(function(data){
|
||||
$(self).parents("p").remove();
|
||||
$(self).parents(".editable-container").remove();
|
||||
});
|
||||
e.stopPropagation();
|
||||
});
|
||||
$("#todolist").on("click", ".editable-clear-x", function(e){
|
||||
e.preventDefault();
|
||||
var self = this;
|
||||
var id = $(this).parents(".editable-container").prev().attr("id");
|
||||
id = id.match(/([0-9]+)$/g);
|
||||
id = id.pop();
|
||||
var ajaxCall = $.ajax({
|
||||
url: "{$baseurl}" + "/admin_area/index.php",
|
||||
type: "post",
|
||||
data: {
|
||||
id: id,
|
||||
mode: "delete_todo",
|
||||
},
|
||||
});
|
||||
ajaxCall.success(function(data){
|
||||
$(self).parents("p").remove();
|
||||
$(self).parents(".editable-container").remove();
|
||||
});
|
||||
e.stopPropagation();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
@ -179,4 +166,4 @@
|
|||
{include_header type=$type file=$file}
|
||||
{/foreach}
|
||||
<!-- Ending Headers -->
|
||||
{/if}
|
||||
{/if}
|
||||
|
|
|
@ -2,141 +2,144 @@
|
|||
<div id="navbar" class="navbar-container container">
|
||||
<div class="navbar-header pull-left">
|
||||
<div class="logoContainer clearfix">
|
||||
<a class="navbar-brand" href="{$admin_baseurl}">
|
||||
<img class="pull-left" src="{$imageurl}/login_logo.png" height="30">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="navbar-header pull-right" role="navigation">
|
||||
<ul class="nav ace-nav fontawesome-icons">
|
||||
<li class="purple">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="icon-bell-alt icon-animated-bell"></i>
|
||||
<span class="badge badge-important">{math equation="x + a + b + c + d + e" x={get_videos active='no' count_only=true} a={get_groups active='no' count_only=true} b=$cbgroup->action->count_flagged_objects() c=$cbvid->action->count_flagged_objects() d=$userquery->action->count_flagged_objects() e={get_users count_only=yes status='ToActivate'}}</span>
|
||||
<a class="navbar-brand" href="{$baseurl}/admin_area">
|
||||
<img class="pull-left" src="{$imageurl}/login_logo.png" height="30">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="navbar-header pull-right" role="navigation">
|
||||
<ul class="nav ace-nav fontawesome-icons">
|
||||
<li class="purple">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="icon-bell-alt icon-animated-bell"></i>
|
||||
<span class="badge badge-important">{math equation="x + a + b + c + d + e" x={get_videos active='no' count_only=true} a={get_groups active='no' count_only=true} b=$cbgroup->action->count_flagged_objects() c=$cbvid->action->count_flagged_objects() d=$userquery->action->count_flagged_objects() e={get_users count_only=yes status='ToActivate'}}</span>
|
||||
</a>
|
||||
|
||||
<ul class="dropdown-navbar navbar-pink dropdown-menu dropdown-caret dropdown-close pull-right">
|
||||
<li class="dropdown-header">
|
||||
<i class="icon-warning-sign"></i>
|
||||
{math equation="x + a + b + c + d + e" x={get_videos active='no' count_only=true} a={get_groups active='no' count_only=true} b=$cbgroup->action->count_flagged_objects() c=$cbvid->action->count_flagged_objects() d=$userquery->action->count_flagged_objects() e={get_users status='ToActivate' count_only=true}} Notifications
|
||||
</li>
|
||||
<li>
|
||||
<a href="video_manager.php?search=search&active=no">
|
||||
<div class="clearfix">
|
||||
<span class="pull-left">
|
||||
<i class="btn btn-xs no-hover btn-pink icon-facetime-video"></i>
|
||||
Approve Videos
|
||||
</span>
|
||||
<span class="badge badge-info pull-right">{get_videos active='no' count_only=true} </span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<ul class="dropdown-navbar navbar-pink dropdown-menu dropdown-caret dropdown-close pull-right">
|
||||
<li class="dropdown-header">
|
||||
<i class="icon-warning-sign"></i>
|
||||
{math equation="x + a + b + c + d + e" x={get_videos active='no' count_only=true} a={get_groups active='no' count_only=true} b=$cbgroup->action->count_flagged_objects() c=$cbvid->action->count_flagged_objects() d=$userquery->action->count_flagged_objects() e={get_users status='ToActivate' count_only=true}} Notifications
|
||||
</li>
|
||||
<li>
|
||||
<a href="video_manager.php?search=search&active=no">
|
||||
<div class="clearfix">
|
||||
<span class="pull-left">
|
||||
<i class="btn btn-xs no-hover btn-pink icon-facetime-video"></i>
|
||||
Approve Videos
|
||||
</span>
|
||||
<span class="badge badge-info pull-right">{get_videos active='no' count_only=true} </span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="members.php?search=yes&status=ToActivate">
|
||||
<div class="clearfix">
|
||||
<span class="pull-left">
|
||||
<i class="btn btn-xs no-hover btn-success icon-user"></i>
|
||||
Approve Members
|
||||
</span>
|
||||
<span class="badge badge-success pull-right">{get_users status='ToActivate' count_only=true}</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="members.php?search=yes&status=ToActivate">
|
||||
<div class="clearfix">
|
||||
<span class="pull-left">
|
||||
<i class="btn btn-xs no-hover btn-success icon-user"></i>
|
||||
Approve Members
|
||||
</span>
|
||||
<span class="badge badge-success pull-right">{get_users status='ToActivate' count_only=true}</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="photo_manager.php?active=no&search=yes">
|
||||
<div class="clearfix">
|
||||
<span class="pull-left">
|
||||
<i class="btn btn-xs no-hover btn-info icon-group"></i>
|
||||
Approve Photos
|
||||
</span>
|
||||
<span class="badge badge-info pull-right">{get_groups active='no' count_only=true}</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="flagged_videos.php">
|
||||
<div class="clearfix">
|
||||
<span class="pull-left">
|
||||
<i class="btn btn-xs no-hover btn-error icon-flag"></i>
|
||||
Flagged
|
||||
</span>
|
||||
<span class="badge badge-info pull-right">{math equation="x + y + z" x=$cbgroup->action->count_flagged_objects() y=$cbvid->action->count_flagged_objects() z=$userquery->action->count_flagged_objects()} </span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="groups_manager.php?active=no&search=yes">
|
||||
<div class="clearfix">
|
||||
<span class="pull-left">
|
||||
<i class="btn btn-xs no-hover btn-info icon-group"></i>
|
||||
Approve Groups
|
||||
</span>
|
||||
<span class="badge badge-info pull-right">{get_groups active='no' count_only=true}</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="flagged_videos.php">
|
||||
<div class="clearfix">
|
||||
<span class="pull-left">
|
||||
<i class="btn btn-xs no-hover btn-error icon-flag"></i>
|
||||
Flagged
|
||||
</span>
|
||||
<span class="badge badge-info pull-right">{math equation="x + y + z" x=$cbgroup->action->count_flagged_objects() y=$cbvid->action->count_flagged_objects() z=$userquery->action->count_flagged_objects()} </span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="{$baseurl}/admin_area/notification_settings.php">
|
||||
See all notifications
|
||||
<i class="icon-arrow-right"></i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{$baseurl}/admin_area/notification_settings.php">
|
||||
See all notifications
|
||||
<i class="icon-arrow-right"></i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="dropdown blue">
|
||||
<a data-toggle="dropdown" class="dropdown-toggle clickable" href="#">
|
||||
<i class="glyphicon glyphicon-arrow-down"></i>
|
||||
<span class="badge badge-important">Display Option</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu " role="menu" aria-labelledby="dropdownMenu1">
|
||||
<li class="dropdown-header">
|
||||
<i class="icon-info-sign"></i>
|
||||
<form id="display_opts" name="display_opts" method="post" action="">
|
||||
Results Per Page :
|
||||
<input name="admin_pages" type="text" style="width:50px" value="{$Cbucket->configs.admin_pages}"/>
|
||||
<input type="submit" name="update_dp_options" id="button" value="Update" class="btn btn-primary btn-xs"/>
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="dropdown blue">
|
||||
<a data-toggle="dropdown" class="dropdown-toggle clickable" href="#">
|
||||
<i class="glyphicon glyphicon-arrow-down"></i>
|
||||
<span class="badge badge-important">Display Option</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu " role="menu" aria-labelledby="dropdownMenu1">
|
||||
<li class="dropdown-header">
|
||||
<i class="icon-info-sign"></i>
|
||||
<form id="display_opts" name="display_opts" method="post" action="">
|
||||
Results Per Page :
|
||||
<input name="admin_pages" type="text" style="width:50px" value="{$Cbucket->configs.admin_pages}"/>
|
||||
<input type="submit" name="update_dp_options" id="button" value="Update" class="btn btn-primary btn-xs"/>
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="blue">
|
||||
<a target="_blank" href="{$baseurl}">
|
||||
<i class="glyphicon glyphicon-home"></i>
|
||||
<span class="badge badge-success"></span>
|
||||
</a>
|
||||
<li class="blue">
|
||||
<a target="_blank" href="{$baseurl}">
|
||||
<i class="glyphicon glyphicon-home"></i>
|
||||
<span class="badge badge-success"></span>
|
||||
</a>
|
||||
|
||||
<li class="blue">
|
||||
<a data-toggle="dropdown" href="#" class="dropdown-toggle">
|
||||
<img src="{$userquery->getUserThumb($u)}" class="img-circle" width="25" height="25"/>
|
||||
<span class="user-info">
|
||||
{$userquery->username}<br>
|
||||
{assign var=levels value=$userquery->get_levels()}
|
||||
{section name=l loop=$levels}
|
||||
{$levels[l].user_level_name}
|
||||
{/section}
|
||||
</span>
|
||||
<i class="icon-caret-down"></i>
|
||||
</a>
|
||||
<ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
|
||||
<li>
|
||||
<a href="main.php">
|
||||
<i class="icon-cog"></i>
|
||||
Settings
|
||||
</a>
|
||||
</li>
|
||||
<span class="user-info">
|
||||
{$userquery->username}<br>
|
||||
{assign var=levels value=$userquery->get_levels()}
|
||||
{section name=l loop=$levels}
|
||||
{$levels[l].user_level_name}
|
||||
{/section}
|
||||
</span>
|
||||
<i class="icon-caret-down"></i>
|
||||
</a>
|
||||
<ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
|
||||
<li>
|
||||
<a href="main.php">
|
||||
<i class="icon-cog"></i>
|
||||
Settings
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="{$baseurl}/admin_area/view_user.php?uid={userid()}"><i class="icon-user"></i> Profile</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.php">
|
||||
<i class="icon-user"></i>
|
||||
Profile
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
<li class="divider"></li>
|
||||
|
||||
<li>
|
||||
<a href="logout.php">
|
||||
<i class="icon-off"></i>
|
||||
Logout
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="logout.php">
|
||||
<i class="icon-off"></i>
|
||||
Logout
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.navbar-header -->
|
||||
</div>
|
||||
<!-- /.navbar-header -->
|
||||
<!-- /.container -->
|
||||
|
|
|
@ -1,4 +1,76 @@
|
|||
{$secret_Id = $secret_Id|@json_encode}
|
||||
{if $edit_lang != 'yes'}
|
||||
<h3>API KEYS</h3>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<form name="lang_ids" method="post" action="?default">
|
||||
<label>ClientID :</label> <input type="text" name="client_id" value={$client_id}></br></br>
|
||||
<label> SecretID :</label> <input type="text" name="sec_id" value={$secret_Id}></br></br>
|
||||
<input type="submit" name="set_language" id="set_language" value="Set Language Ids" class="btn btn-primary" />
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-md-6" style="float:right;">
|
||||
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">How to get API Keys</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="myModal" class="modal fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Bing API</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p><strong>Step 1. Sign in and Register.</strong></br>
|
||||
Sign-in to Windows Azure Marketplace. If this is your first time, you’ll likely see this registration page.
|
||||
Fill out your details, and press the ‘Continue’ button.
|
||||
You’ll be taken to the Terms of Use page. Read it carefully, and if you accept it, check the box at the bottom of the screen that says ‘I accept the Terms of Use’, and press the ‘Register’ button.
|
||||
</p>
|
||||
<p><strong>Step 2. Subscribe to the Microsoft Translator API.</strong></br>
|
||||
In this section you’ll subscribe to the Microsoft Translator API in the Windows Azure Marketplace. There are a number of service options you can choose, and in this walkthrough you’ll see how to use the free one.
|
||||
</p>
|
||||
<p><strong>Step 2.1. Find the Microsoft Translator API service in the Windows Azure Marketplace
|
||||
</strong></br>
|
||||
If you’ve completed the Windows Azure Marketplace registration (Step 1), then visit <a href="https://datamarket.azure.com/home/">https://datamarket.azure.com/home/</a> to see the main Marketplace home page. At the top of the screen, you’ll see a ‘Search’ box.
|
||||
Type ‘translator’ into this box and press enter, or click the button on the right that is shaped like a magnifying glass.
|
||||
</p>
|
||||
<p><strong>Step 2.2. Subscribe to the Translator API service.
|
||||
</strong></br>
|
||||
Click on ’Microsoft Translator’ and you’ll be taken to the Microsoft Translator API Offer page on Windows Azure Marketplace.
|
||||
(Note: For a short cut, you can also go directly to the screen by visiting this URL: <a href="https://datamarket.azure.com/dataset/bing/microsofttranslator">https://datamarket.azure.com/dataset/bing/microsofttranslator</a>
|
||||
On the right hand side of the screen, you’ll see a number of different monthly volume offers. Choose the one that meets your monthly volume usage needs. For this guide, you’ll use the free 2 million characters per month subscription offer, which you can find at the bottom of the list.
|
||||
Press the ‘Sign Up’ link on your chosen offer and you’ll be taken to a page where you are asked to confirm and agree that you will adhere to the Translator API ‘Offer Terms and Privacy Policy’.
|
||||
If you agree, check the box and press the Sign Up button.
|
||||
You’ll then be taken to the page confirming that you’ve successfully subscribed to the service and the volume goes into effect at that time. In the next step, you’ll get your developer credentials from Windows Azure Marketplace, and you’ll use these when building your apps.
|
||||
</p>
|
||||
<p><strong>Step 3. Getting your Developer Credentials</strong></br>
|
||||
This step assumes that you have:
|
||||
· Completed Steps 1 and 2
|
||||
· You have registered for a Windows Azure Marketplace account
|
||||
· You have used your Marketplace account to subscribe to the Microsoft Translator API service.
|
||||
</p>
|
||||
<p><strong>Step 3.1. Registering your application on the Windows Azure Marketplace.</strong></br>
|
||||
Sign in to <a href= "https://datamarket.azure.com/home/">https://datamarket.azure.com/home/</a>, and you’ll see the familiar welcome page.
|
||||
At the bottom of the page, you’ll see a number of links, organized into columns.
|
||||
One of these reads ‘Develop’, and under it you’ll see a link that says ‘Register your Application’.
|
||||
Select this and you’ll be taken to the screen that allows you register your application.
|
||||
</p>
|
||||
<p><strong>Step 3.2. Getting your Client ID and Client Secret</strong></br>
|
||||
You use this to get the Client ID and Client Secret values that your application will need to authenticate your service when you build your application.
|
||||
· Fill out the Client ID, and Name fields.
|
||||
· The Client Secret field is already completed for you. Do not change it.
|
||||
· Fill out the ‘Redirect URI’ field with any valid URL that uses https, for example https://microsoft.com. This field is not used by the Microsoft Translator API.
|
||||
· You can also leave the ‘Enable subdomain access’ checkbox unchecked, as Translator doesn’t use it.
|
||||
Remember and note the Client ID and Client Secret fields. You will need these when you write your app.
|
||||
</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="heading">
|
||||
<h2>Language Settings</h2>
|
||||
</div>
|
||||
|
@ -241,7 +313,7 @@
|
|||
var NewLang,langExists,sizeOfArray;
|
||||
var percentPakro,allTextLines = [];
|
||||
var set=true;
|
||||
var sec = '{$secret_Id}';
|
||||
var sec = {$secret_Id};
|
||||
var firstHit = true;
|
||||
var dialogLangPack= $('<div class="alert-msg-holder" id="headErr"><div role="alert" class="alert alert-success alert-dismissible alert-ajax"><button aria-label="Close" data-dismiss="alert" class="close" type="button"><span aria-hidden="true">×</span></button><strong>Language Pack Uploaded </strong></div></div>');
|
||||
var log = $('<div class="alert-msg-holder" id="headErr"><div role="alert" class="alert alert-danger alert-dismissible alert-ajax"><button aria-label="Close" data-dismiss="alert" class="close" type="button"><span aria-hidden="true">×</span></button><strong>Invalid keys stored in database </strong></div></div>');
|
||||
|
@ -354,11 +426,9 @@
|
|||
$.each( thePhrases, function( phrase_code, phrase ) {
|
||||
totalPhrases = totalPhrases + 1;
|
||||
});
|
||||
totalPhrases = totalPhrases -1;
|
||||
|
||||
function sendAjax(data) {
|
||||
goodToGo = false;
|
||||
|
||||
$.ajax({
|
||||
//async: false,
|
||||
url: 'ajaxLang.php',
|
||||
|
@ -366,9 +436,7 @@
|
|||
data: data,
|
||||
dataType: 'json',
|
||||
beforeSend: function() {
|
||||
|
||||
|
||||
},
|
||||
},
|
||||
success:function(xhr) {
|
||||
|
||||
if (xhr.phrase != 'aye') {
|
||||
|
@ -386,8 +454,8 @@
|
|||
currentKey = currentKey + 1;
|
||||
phrase_code = Object.keys(thePhrases)[currentKey];
|
||||
phrase = thePhrases[phrase_code];
|
||||
|
||||
phraseNum = phraseNum + 1;
|
||||
|
||||
data = {
|
||||
'selectFieldValue': $('#lang_option').val(),
|
||||
'langDetect': $('#lang_option option:selected').attr('data-check'),
|
||||
|
@ -396,13 +464,12 @@
|
|||
'totalPhrases' : totalPhrases,
|
||||
'phraseNum' : phraseNum
|
||||
}
|
||||
|
||||
sendAjax(data);
|
||||
} else {
|
||||
$('#lang_option, #submit_lang1').attr("disabled",false);
|
||||
$('#submit_lang1').val('Successfully completed');
|
||||
$('#submit_lang1').text('Successfully completed');
|
||||
}
|
||||
if (!xhr.status == 'success') {
|
||||
$('#lang_option, #submit_lang1').attr("disabled",false);
|
||||
alert("Unable to translate "+phrase);
|
||||
}
|
||||
//alert("NOW");
|
||||
|
@ -430,7 +497,7 @@
|
|||
sendAjax(data);
|
||||
|
||||
|
||||
|
||||
phraseNum = phraseNum + 1;
|
||||
|
||||
});
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
|
||||
|
||||
{$adminMenu = $Cbucket->AdminMenu}
|
||||
|
||||
<ul class="nav nav-list" id="sidebar">
|
||||
{if $smarty.const.MAIN_PAGE == 'Dashboard'}
|
||||
<li class="active open">
|
||||
|
@ -15,7 +14,7 @@
|
|||
</li>
|
||||
{foreach from=$adminMenu key=name item=oneMenuItem}
|
||||
{$class='glyphicon glyphicon-stats'}
|
||||
{if $name=='General Configurations'}
|
||||
{if $name=='Stats And Configurations'}
|
||||
{$class='glyphicon glyphicon-stats'}
|
||||
{elseif $name=='Videos'}
|
||||
{$class='glyphicon glyphicon-facetime-video'}
|
||||
|
@ -68,7 +67,7 @@
|
|||
{/if}
|
||||
|
||||
{foreach from=$oneMenuItem key=name item=oneSubMenuItem}
|
||||
|
||||
|
||||
{if $smarty.const.SUB_PAGE == $name}
|
||||
|
||||
<li class="active">
|
||||
|
|
|
@ -231,13 +231,6 @@
|
|||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label for="pick_geo_country">Pick signup country geologically(if yes default country won't work)</label>
|
||||
<select name="pick_geo_country" id="pick_geo_country" class="form-control">
|
||||
<option value="yes" {if $row.pick_geo_country!='no'} selected="selected"{/if}>Yes</option>
|
||||
<option value="no" {if $row.pick_geo_country=='no'} selected="selected"{/if}>No</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
|
@ -268,12 +261,12 @@
|
|||
Channels & Photos
|
||||
</a>
|
||||
</li>
|
||||
<!-- <li class="">
|
||||
<a data-toggle="tab" href="#groups">
|
||||
|
||||
Groups
|
||||
</a>
|
||||
</li> -->
|
||||
<li class="">
|
||||
<a data-toggle="tab" href="#groups">
|
||||
|
||||
Groups
|
||||
</a>
|
||||
</li>
|
||||
<li class="">
|
||||
<a data-toggle="tab" href="#general">
|
||||
|
||||
|
@ -406,22 +399,6 @@
|
|||
<label for="php_path8">Max categories for each video</label>
|
||||
<input class="form-control" name="video_categories" type="text" id="php_path8" value="{$row.video_categories}" size="15" maxlength="5" />
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- changes made -->
|
||||
<div class="col-md-4">
|
||||
<label for="video_round_views">Enable round views on watch video page</label>
|
||||
<select name="video_round_views" id="video_round_views" class="form-control">
|
||||
<option value="yes" {if $row.video_round_views!='no'} selected="selected"{/if}>Yes</option>
|
||||
<option value="no" {if $row.video_round_views=='no'} selected="selected"{/if}>No</option>
|
||||
</select>
|
||||
</div>
|
||||
<!-- changes made -->
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
|
@ -496,51 +473,51 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div id="groups" class="tab-pane">
|
||||
<h2>Groups</h2>
|
||||
<div id="groups" class="tab-pane">
|
||||
<h2>Groups</h2>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<label for="groupsSelection">Enable group selection</label>
|
||||
<select class="form-control" name="groupsSection" id="groupsSection">
|
||||
<option value="yes" {if $row.groupsSection!='no'} selected="selected"{/if}>Yes</option>
|
||||
<option value="no" {if $row.groupsSection=='no'} selected="selected"{/if}>No</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<label for="grp_thumb_height">Group Thumb Height</label>
|
||||
<input name="grp_thumb_height" type="text" id="grp_thumb_height" class="form-control" value="{$row.grp_thumb_height}" size="15" maxlength="5" />
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<label for="grp_thumb_width">Group Thumb Width</label>
|
||||
<input name="grp_thumb_width" type="text" id="grp_thumb_width" class="form-control" value="{$row.grp_thumb_width}" size="15" maxlength="5" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<label for="groupsSelection">Enable group selection</label>
|
||||
<select class="form-control" name="groupsSection" id="groupsSection">
|
||||
<option value="yes" {if $row.groupsSection!='no'} selected="selected"{/if}>Yes</option>
|
||||
<option value="no" {if $row.groupsSection=='no'} selected="selected"{/if}>No</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<label for="grp_thumb_height">Group Thumb Height</label>
|
||||
<input name="grp_thumb_height" type="text" id="grp_thumb_height" class="form-control" value="{$row.grp_thumb_height}" size="15" maxlength="5" />
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<label for="grp_thumb_width">Group Thumb Width</label>
|
||||
<input name="grp_thumb_width" type="text" id="grp_thumb_width" class="form-control" value="{$row.grp_thumb_width}" size="15" maxlength="5" />
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<label for="grp_max_title">Group max title</label>
|
||||
<input class="form-control" name="grp_max_title" type="text" id="grp_max_title" value="{$row.grp_max_title}" size="15" maxlength="5" />
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label for="grp_max_desc">Group max description</label>
|
||||
<input class="form-control" name="grp_max_desc" type="text" id="grp_max_desc" value="{$row.grp_max_desc}" size="15" maxlength="5" />
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<label for="max_topic_lenght">Max group topic length</label>
|
||||
<input class="form-control" name="max_topic_length" type="text" id="max_topic_length" value="{$row.max_topic_length}" size="15" maxlength="5" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-4">
|
||||
<label for="grp_max_title">Group max title</label>
|
||||
<input class="form-control" name="grp_max_title" type="text" id="grp_max_title" value="{$row.grp_max_title}" size="15" maxlength="5" />
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label for="grp_max_desc">Group max description</label>
|
||||
<input class="form-control" name="grp_max_desc" type="text" id="grp_max_desc" value="{$row.grp_max_desc}" size="15" maxlength="5" />
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<label for="max_topic_lenght">Max group topic length</label>
|
||||
<input class="form-control" name="max_topic_length" type="text" id="max_topic_length" value="{$row.max_topic_length}" size="15" maxlength="5" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group1">
|
||||
<label for="grp_categories">Max categories for each group</label>
|
||||
<input class="form-control" name="grp_categories" type="text" id="grp_categories" value="{$row.grp_categories}" size="15" maxlength="5" />
|
||||
</div>
|
||||
|
||||
|
||||
</div> -->
|
||||
|
||||
<div class="form-group1">
|
||||
<label for="grp_categories">Max categories for each group</label>
|
||||
<input class="form-control" name="grp_categories" type="text" id="grp_categories" value="{$row.grp_categories}" size="15" maxlength="5" />
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div id="general" class="tab-pane">
|
||||
<h2>General</h2>
|
||||
<div class="row">
|
||||
|
@ -631,7 +608,7 @@
|
|||
</div>
|
||||
|
||||
|
||||
<!-- <div class="col-md-4">
|
||||
<div class="col-md-4">
|
||||
<h5>Use Crons</h5>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="use_crons" value="yes" id="use_crons_0" {if $row.use_crons =='yes'} checked="checked"{/if} />Yes
|
||||
|
@ -640,7 +617,7 @@
|
|||
<label class="radio-inline">
|
||||
<input type="radio" name="use_crons" value="no" id="use_crons_1" {if $row.use_crons =='no'} checked="checked"{/if} />No
|
||||
</label>
|
||||
</div> -->
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<label for="ffmpegpath">FFMPEG Path</label>
|
||||
|
@ -767,14 +744,14 @@
|
|||
</div>
|
||||
<div class="row">
|
||||
|
||||
<!-- <div class="col-md-4">
|
||||
<div class="col-md-4">
|
||||
<h5>Quick Conversion</h5>
|
||||
<label class="checkbox" for="quick_conv">
|
||||
<input type="checkbox" name="quick_conv" id="quick_conv" value="yes" {if $row.quick_conv=='yes'} checked="checked"{/if}/>
|
||||
Turn on Quick Conversion
|
||||
<a href="javascript:void(0)" target="_blank"><img src="{$imageurl}/help.png" alt="info" border="0" class="tipsy_tip" title="If you check this option, videos will be converted as soon as uploading is complete, make sure your php path is correct before enabling this option otherwise may cause your website inaccessible" /></a>
|
||||
</label>
|
||||
</div> -->
|
||||
</div>
|
||||
|
||||
<!--
|
||||
<div class="col-md-4">
|
||||
|
@ -1165,17 +1142,6 @@
|
|||
<input class="form-control" name="videos_items_uvid_page" type="text" id="videos_items_uvid_page" value="{$row.videos_items_uvid_page}" size="6" maxlength="3" />
|
||||
- 'user videos' page
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label for="videos_items_uvid_page">Home Page Popup Video</label>
|
||||
<select class="form-control" name="popup_video">
|
||||
<option value="no" {if $row.popup_video == "no"}
|
||||
selected="selected"
|
||||
{/if}>No</option>
|
||||
<option value="yes" {if $row.popup_video == "yes"}
|
||||
selected="selected"
|
||||
{/if}>Yes</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -1372,7 +1338,7 @@
|
|||
</label>
|
||||
</div>
|
||||
|
||||
<!-- <div class="col-md-4">
|
||||
<div class="col-md-4">
|
||||
<label for="varification_captcha">Image verification (captcha)</label>
|
||||
<select class="form-control" name="captcha_type">
|
||||
<option value="0" {if $row.captcha_type == 0}
|
||||
|
@ -1385,7 +1351,7 @@
|
|||
selected="selected"
|
||||
{/if}>Secured</option>
|
||||
</select>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
|
@ -1488,10 +1454,9 @@
|
|||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<label for="max_profile_pic_width">Max profile pic dimension</label>
|
||||
<input class="form-control" name="max_profile_pic_width" type="text" id="max_profile_pic_width" value="{$row.max_profile_pic_width}" size="6" maxlength="10" />
|
||||
Pixels
|
||||
<br>
|
||||
<label for="max_profile_pic_width">Max profile pic dimension</label>
|
||||
<input class="form-control" name="max_profile_pic_width" type="text" id="max_profile_pic_width" value="{$row.max_profile_pic_width}" size="6" maxlength="10" />
|
||||
<br>
|
||||
<label for="max_bg_width">Max Background Dimension</label>
|
||||
<input class="form-control" name="max_bg_width" type="text" id="max_bg_width" value="{$row.max_bg_width}" size="6" maxlength="10" />
|
||||
Pixels
|
||||
|
|
|
@ -162,14 +162,4 @@
|
|||
$(document).ready(function() {
|
||||
$('#page_content').summernote();
|
||||
});
|
||||
</script>
|
||||
|
||||
<style type="text/css">
|
||||
.form-group .note-image-input {
|
||||
display: none;
|
||||
}
|
||||
.form-group h5 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
</style>
|
||||
</script>
|
|
@ -1,127 +0,0 @@
|
|||
|
||||
<!-- Manage playlist backend -->
|
||||
{$myAccountLinks = $userquery->my_account_links()}
|
||||
<div class="row cb-box">
|
||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="account_box">
|
||||
{if $mode =='manage_playlist'}
|
||||
<h2>{lang code='manage_playlists'}</h2>
|
||||
<!-- searching -->
|
||||
<div class="heading clearfix">
|
||||
{include file="$layout_dir/blocks/advanced_playlist_search.html" }
|
||||
</div>
|
||||
<!-- searching -->
|
||||
|
||||
<!-- Getting List of Playlist -->
|
||||
<form class="marginTop" name="manage_playlists" method="post">
|
||||
<div>
|
||||
<input type="submit" class="btn btn-primary btn-sm" value="{lang code='delete_selected'}" name="delete_playlists"/>
|
||||
</div><br>
|
||||
<div class="account_table">
|
||||
<table class="table table-bordered table-striped marginTop">
|
||||
<tr>
|
||||
<td width="25">
|
||||
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/>
|
||||
</td>
|
||||
<td width="150"><strong>{lang code='vdo_title'}</strong></td>
|
||||
<td><strong>{lang code='Details'}</strong></td>
|
||||
<td width="130"><strong>{lang code='date_added'}</strong></td>
|
||||
<td width="80" class="last_td"><strong>{lang code='total_items'}</strong></td>
|
||||
<td width="130"><strong>{lang code='view_edit_playlist'}</strong></td>
|
||||
<td width="80"><strong>{lang code='delete'}</strong></td>
|
||||
</tr>
|
||||
|
||||
{if $playlists!=true}
|
||||
<h4 style="text-align: center;">
|
||||
<strong>{lang code='no_playlist_found'}</strong>
|
||||
</h4>
|
||||
{/if}
|
||||
|
||||
{section name=plist loop=$playlists}
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" name="check_playlist[]" id="check_playlist-{$playlists[plist].playlist_id}" value="{$playlists[plist].playlist_id}" />
|
||||
</td>
|
||||
<td valign="middle">
|
||||
<!-- playlist thumb code not functional right now-->
|
||||
<!--<span>{$cbvid->action->getPlaylistThumb($playlists[plist].playlist_id)}</span> -->
|
||||
<!-- playlist name code -->
|
||||
{$playlists[plist].playlist_name|truncate:100}
|
||||
</td>
|
||||
<td valign="middle">
|
||||
<span class="label label-primary"> <strong>{lang code='playlist_owner'} :
|
||||
<!-- changes made -->
|
||||
{assign var=obj value=$userquery->get_user_details($playlists[plist].userid)}
|
||||
{$obj['username']}
|
||||
<!-- changes made -->
|
||||
</strong></span>
|
||||
<span class="label label-primary"> <strong>{lang code='playlist_privacy'} : {$playlists[plist].privacy}</strong></span>
|
||||
</td>
|
||||
<td>{$playlists[plist].date_added|date_format}</td>
|
||||
<td>{$cbvid->action->count_playlist_items($playlists[plist].playlist_id)|number_format}</td>
|
||||
<td><a href="?mode=edit_playlist&pid={$playlists[plist].playlist_id}">{lang code='view_edit_playlist'}</a></td>
|
||||
<td><a href="javascript:void(0)" onmousedown="delete_video('delete_icon_a','{$playlists[plist].playlist_id}','{lang code="remove_playlist_confirm"}','?mode=manage_playlist&delete_pl={$playlists[plist].playlist_id}')" id="delete_icon_a-{$playlists[plist].playlist_id}">{lang code='delete'}</a></td>
|
||||
</tr>
|
||||
{/section}
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
<!-- Getting List of Playlist -->
|
||||
{/if}
|
||||
|
||||
{if $mode =='edit_playlist'}
|
||||
<h2>{lang code='manage_playlists'}</h2>
|
||||
<div class="account_form">
|
||||
<form method="post" name="edit_profile">
|
||||
|
||||
<h3>{lang code='edit_playlist'}</h3>
|
||||
{assign var='playlist_fields' value=$cbvid->action->load_playlist_fields($playlist)}
|
||||
|
||||
{foreach from=$playlist_fields item=group}
|
||||
{foreach from=$group.fields item=field}
|
||||
<div class="form-group">
|
||||
<label class="label-heading" for="{$field.id}">{$field.title}</label>
|
||||
{$field.class='form-control'}
|
||||
{$formObj->createField($field)}
|
||||
</div>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
<div>
|
||||
<button name="edit_playlist" id="button1" value="submit" class="btn btn-primary">{lang code='edit_playlist'}</button></div><br>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{if $items}
|
||||
<a href="{videoLink vdetails=$items[0]}" ><button class="btn btn-success" style="float:right">{lang code='play_now'}</button></a>
|
||||
{/if}
|
||||
<form name="edit_playlist" method="post">
|
||||
<input type="submit" class="btn btn-primary" value="{lang code='delete_selected'}" name="delete_playlist_item"/>
|
||||
<div style="padding:5px;"></div>
|
||||
<div class="account_table">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<td width="25">
|
||||
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/>
|
||||
</td>
|
||||
<td>{lang code='vdo_title'}</td>
|
||||
<td width="100">{lang code='date_added'}</td>
|
||||
<td width="100">{lang code='views'}</td>
|
||||
<td width="100">{lang code='comments'}</td>
|
||||
</tr>
|
||||
{section name=plist loop=$items}
|
||||
{include file="$style_dir/blocks/manage/account_video.html" video=$items[plist] bg=$bg control="playlist" pid=$playlist.playlist_id}
|
||||
{sectionelse}
|
||||
<div align="center" style="padding:5px"><strong><em>{lang code='no_video_in_playlist'}</em></strong></div>
|
||||
{/section}
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Manage playlist backend -->
|
||||
<!-- lines added for pagination -->
|
||||
{include file="$style_dir/blocks/pagination.html" }
|
||||
<div class="marginBottomLarge"></div>
|
|
@ -105,9 +105,6 @@
|
|||
<div id="usercategory" class="tab-pane">
|
||||
<h4>User category<br><small>User category</small></h4>
|
||||
{assign var=cats value=$userquery->get_categories()}
|
||||
<label class="checkbox-inline">
|
||||
<input type='checkbox' name="cat[]" value="0" checked="checked"/>All
|
||||
</label>
|
||||
{foreach from=$cats item=cat}
|
||||
<label class="checkbox-inline">
|
||||
<input type='checkbox' name="cat[]" value="{$cat.category_id}" checked="checked"/>{$cat.category_name}</label>
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
<div class="heading">
|
||||
<h2>Mass Uploader</h2>
|
||||
</div>
|
||||
<div class="alert alert-info">
|
||||
<strong>Warning!</strong> Videos with only allowed extensions will be shown here.
|
||||
</div>
|
||||
|
||||
{$mass_upload_config = config('delete_mass_upload')}
|
||||
|
||||
{assign var=vid_files value=$cbmass->get_video_files()}
|
||||
|
@ -12,38 +8,31 @@
|
|||
{if $vid_files}
|
||||
{assign var = i value = 0}
|
||||
<div id="massUploadSelectAll">
|
||||
<h3>Select/Deselect</h3>
|
||||
<input type="checkbox" id="massUploadSelect"/>
|
||||
<h3>Select/Deselect</h3>
|
||||
<input type="checkbox" id="massUploadSelect"/>
|
||||
</div>
|
||||
<div id="massUploadCategoriesSelection">
|
||||
<h3>Mass Category Selection</h3>
|
||||
{foreach $cats as $cat}
|
||||
<label><input type="checkbox" class="checkall" value='{$cat['category_id']}'/> {$cat['category_name']}</label>
|
||||
{$i = $i+1}
|
||||
{/foreach}
|
||||
<h3>Mass Category Selection</h3>
|
||||
{foreach $cats as $cat}
|
||||
<label><input type="checkbox" class="checkall" value='{$cat['category_id']}'/> {$cat['category_name']}</label>
|
||||
{$i = $i+1}
|
||||
{/foreach}
|
||||
</div>
|
||||
<!-- checkmate -->
|
||||
{$count=0}
|
||||
<!-- checkmate -->
|
||||
<form name="mass_upload" method="post" class="cbform">
|
||||
{foreach from=$vid_files item=file name=mass_files}
|
||||
{assign var='requiredFields' value=$Upload->loadRequiredFields($file)}
|
||||
{assign var='optionFields' value=$Upload->loadOptionFields($file)}
|
||||
{assign var='locationFields' value=$Upload->loadLocationFields($file)}
|
||||
{assign var='cust_fields' value=$Upload->custom_form_fields}
|
||||
|
||||
<input class="lead" type="hidden" name="mass_up[]" value="{$file.title}" />
|
||||
|
||||
<div class="well">
|
||||
<!-- checkmate -->
|
||||
<input type="checkbox" name="filesToImport[{$count}]" class="checkboxMassImport"/>
|
||||
{$count=$count+1}
|
||||
<!-- checkmate -->
|
||||
<input type="checkbox" name="filesToImport[]" class="checkboxMassImport"/>
|
||||
<span class="label label-danger" style="cursor: pointer;" onclick="$(this).next().toggle();return false;"><b>{$file.title}</b>{$smarty.foreach.mass_files}</span>
|
||||
<div class="" style="display:none">
|
||||
{foreach from=$requiredFields item=field}
|
||||
{$field.class='form-control'}
|
||||
{if $field.id=='title'}
|
||||
{if $field.title=='Title'}
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<label for="{$field.id}"><b style="color: #000000">{$field.name}</b></label>
|
||||
|
@ -53,7 +42,7 @@
|
|||
{/foreach}
|
||||
{foreach from=$requiredFields item=field}
|
||||
{$field.class='form-control'}
|
||||
{if $field.id=='desc'}
|
||||
{if $field.title=='Description'}
|
||||
<div class="col-md-6">
|
||||
<label for="{$field.id}"><b style="color: #000000">{$field.name}</b></label>
|
||||
{$formObj->createField($field, true)}
|
||||
|
@ -64,7 +53,7 @@
|
|||
<div class="row">
|
||||
{foreach from=$requiredFields item=field}
|
||||
{$field.class='form-control'}
|
||||
{if $field.id=='category'}
|
||||
{if $field.title=='Video Category'}
|
||||
<div class="col-md-6">
|
||||
<label for="{$field.id}"><b style="color: #000000">{$field.name}</b></label>
|
||||
<div class="scroll categories">
|
||||
|
@ -75,7 +64,7 @@
|
|||
{/foreach}
|
||||
{foreach from=$requiredFields item=field}
|
||||
{$field.class='form-control'}
|
||||
{if $field.id=='tags'}
|
||||
{if $field.title=='Tags'}
|
||||
<div class="col-md-6">
|
||||
<label for="{$field.id}"><b style="color: #000000">{$field.name}</b></label>
|
||||
{$formObj->createField($field, true)}
|
||||
|
@ -109,25 +98,25 @@ Uploaded Videos are stored in mass_uploads/processed.
|
|||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$(document).on('change', '.checkall', function()
|
||||
{
|
||||
var id_cat = this.value;
|
||||
var to_check = this.checked;
|
||||
{
|
||||
$(document).on('change', '.checkall', function()
|
||||
{
|
||||
var id_cat = this.value;
|
||||
var to_check = this.checked;
|
||||
|
||||
$(".categories input").each(function() {
|
||||
if( this.value == id_cat )
|
||||
this.checked = to_check;
|
||||
});
|
||||
});
|
||||
$(".categories input").each(function() {
|
||||
if( this.value == id_cat )
|
||||
this.checked = to_check;
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('change', '#massUploadSelect', function()
|
||||
{
|
||||
var to_check = this.checked;
|
||||
$(document).on('change', '#massUploadSelect', function()
|
||||
{
|
||||
var to_check = this.checked;
|
||||
|
||||
$(".checkboxMassImport").each(function() {
|
||||
this.checked = to_check;
|
||||
});
|
||||
});
|
||||
});
|
||||
$(".checkboxMassImport").each(function() {
|
||||
this.checked = to_check;
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
|
@ -88,8 +88,7 @@
|
|||
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1" role="menu">
|
||||
<li><a role="menuitem" tabindex="-1" href="view_user.php?uid={$u.userid}">Edit</a></li>
|
||||
<li><a role="menuitem" tabindex="-1" href="view_user.php?uid={$u.userid}">View</a></li>
|
||||
<li><a role="menuitem" tabindex="-1" href="manage_playlist.php?userid={$u.userid}&search=Search">View Playlists</a></li>
|
||||
|
||||
|
||||
{if $u.usr_status == Ok}
|
||||
<li><a role="menuitem" tabindex="-1" href="?deactivate={$u.userid}">Deactivate</a></li>
|
||||
{elseif $u.usr_status == ToActivate}
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
<td class="item"><a href="members.php?search=yes&status=ToActivate">Approve Members ({get_users status='ToActivate' count_only=true})</a>
|
||||
<br/><a href="flagged_users.php">Flagged Users ({$userquery->action->count_flagged_objects()})</a>
|
||||
</td>
|
||||
<td class="item"><a href="photo_manager.php?active=no&search=yes">Approve Photos ({get_groups active='no' count_only=true})</a>
|
||||
<br/><a href="flagged_photos.php">Flagged Photos ({$cbphoto->action->count_flagged_objects()})
|
||||
<td class="item"><a href="groups_manager.php?active=no&search=yes">Approve Groups ({get_groups active='no' count_only=true})</a>
|
||||
<br/><a href="flagged_groups.php">Flagged Groupes ({$cbgroup->action->count_flagged_objects()})
|
||||
|
||||
</a>
|
||||
</td>
|
||||
|
|
|
@ -40,17 +40,15 @@
|
|||
</div>
|
||||
</form>
|
||||
<form action="upload_thumbs.php?video={$data.videoid}" method="post" enctype="multipart/form-data" name="form1">
|
||||
<!-- <div id="thumb_fileds" class="form-group">
|
||||
<a href="javascript:void(0)" onclick="$('#thumb_fileds').append('<input name=\'vid_thumb[]\' type=\'file\' /><br>')">+ Insert More</a></div> -->
|
||||
<h5>Upload New Thumb</h5>
|
||||
<div id="thumb_fileds" class="form-group">
|
||||
<a href="javascript:void(0)" onclick="$('#thumb_fileds').append('<input name=\'vid_thumb[]\' type=\'file\' /><br>')">+ Insert More</a></div>
|
||||
<input name="vid_thumb[]" type="file" />
|
||||
<label for="thumb_file"></label>
|
||||
<div class="form-group pull-right">
|
||||
<input type="submit" name="upload_thumbs" value="Upload Thumb(s)" class="btn btn-primary btn-sm"/>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<div class="form-group pull-right">
|
||||
<input type="submit" name="upload_thumbs" value="Upload Thumb(s)" class="btn btn-primary btn-sm"/>
|
||||
</div>
|
||||
</form>
|
||||
{/if}
|
||||
|
||||
|
||||
|
|
|
@ -15,14 +15,18 @@
|
|||
<div id="content" style="display: none">
|
||||
<form action="user_category.php" method="post" enctype="multipart/form-data" name="add_category" id="Add Category">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-4">
|
||||
<label>Category Name*</label>
|
||||
<input type="text" id="name" name="name" required="required" class="form-control" >
|
||||
<input type="text" id="name" name="name" class="form-control" >
|
||||
</div>
|
||||
{assign var=useSubs value=config(use_subs)}
|
||||
{if $useSubs == 1}
|
||||
<div class="col-md-4">
|
||||
<label>Parent Category</label>
|
||||
{cbCategories output="dropdown" class="form-control" name="parent_cat" id="parent_cat" blank_option=TRUE echo=TRUE type="user"}
|
||||
|
||||
<div class="col-md-6">
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>Make Default Category</label>
|
||||
<select class="form-control" name="default_categ">
|
||||
<option class="form-control" name="default" id="default_0" value="yes">Yes</option>
|
||||
|
@ -32,19 +36,10 @@
|
|||
</div>
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-8" style="margin-top: 15px">
|
||||
<hr>
|
||||
<label>Decription</label>
|
||||
<textarea class="form-control" name="desc" id="description" cols="33" rows="5">{'desc'|post_form_val}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- <div class="row">
|
||||
|
||||
<div class="col-md-8" style="margin-top: 15px">
|
||||
<textarea class="form-control" name="desc" id="desc" cols="33" rows="5">{'desc'|post_form_val}</textarea>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
|
||||
|
||||
<br>
|
||||
|
@ -70,12 +65,15 @@
|
|||
<input name="cid" value="{$cat_details.category_id}" type="hidden" />
|
||||
<input name="cur_name" value="{$cat_details.category_name}" type="hidden" />
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-4">
|
||||
<label>Category Name*</label>
|
||||
<input name="name" class="form-control" type="text" id="name" required="required" value="{$cat_details.category_name}" size="45" />
|
||||
<input name="name" class="form-control" type="text" id="name" value="{$cat_details.category_name}" size="45" />
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-4">
|
||||
<label>Parent Category</label>
|
||||
{cbCategories output="dropdown" class='form-control' selected=$cat_details.parent_id name="parent_cat" id="parent_cat" blank_option=TRUE type="user" echo=TRUE}
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>Make Default Category</label>
|
||||
<select class="form-control" name="default_categ">
|
||||
<option class="form-control" name="default" id="default_0" {if $cat_details.isdefault=='yes'} checked="checked"{/if} >Yes</option>
|
||||
|
@ -86,9 +84,7 @@
|
|||
<div class="row">
|
||||
<div class="col-md-6"></div>
|
||||
<div class="col-md-8">
|
||||
<hr>
|
||||
<label>Decription</label>
|
||||
<textarea class="form-control" name="desc" id="description" cols="33" rows="5">{$cat_details.category_desc}</textarea>
|
||||
<textarea class="form-control" name="desc" id="desc" cols="33" rows="5">{$cat_details.category_desc}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
|
@ -117,6 +113,7 @@
|
|||
<td width="20"><input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
|
||||
<td width="225" class="left_head" style="text-indent:10px">Category Name</td>
|
||||
<td width="75" align="left" class="head">Order</td>
|
||||
<td width="225" align="left" class="head">Parent Category</td>
|
||||
<td width="250" class="head">Description</td>
|
||||
<td width="100" class="head">Default</td>
|
||||
<td width="150" class="head">Action</td>
|
||||
|
@ -135,6 +132,7 @@
|
|||
{else}
|
||||
{assign var=p_name value=$cbvid->get_category_field($category[list].parent_id,'category_name')}
|
||||
{/if}
|
||||
<td>{$p_name}</td>
|
||||
<td>{if $category[list].category_desc}{$category[list].category_desc}{else}<em>N/A</em>{/if}</td>
|
||||
<td>{$category[list].isdefault}</td>
|
||||
<td>
|
||||
|
|
|
@ -68,7 +68,6 @@
|
|||
{assign var='types' value=$userquery->get_level_types()}
|
||||
{section name=t loop=$types}
|
||||
{assign var=perms value=$userquery->get_permissions($types[t].user_permission_type_id)}
|
||||
<!-- {pr($perms,true)} -->
|
||||
{if $types[t].user_permission_type_name == 'Viewing Permission'}
|
||||
<h2>Viewing Permission</h2>
|
||||
<div class="row">
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
<div class="col-md-10">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<img src="{getThumb vdetails=$video size=168x105}" width="130" height="80" id="thumbs_{$video.videoid}" title=""/>
|
||||
<img src="{getThumb vdetails=$video}" width="130" height="80" id="thumbs_{$video.videoid}" title=""/>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<a href="edit_video.php?video={$video.videoid}">
|
||||
|
|
|
@ -446,3 +446,4 @@ ul#stickies li:hover {
|
|||
transform: rotate(0deg) scale(1.25);
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
|
|
|
@ -668,41 +668,4 @@ ul.mainTabs{
|
|||
|
||||
#massUploadCategoriesSelection label{
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
|
||||
.footer {
|
||||
background: #2b2b2b none repeat scroll 0 0;
|
||||
color: #fff;
|
||||
font-size: 13px;
|
||||
line-height: 20px;
|
||||
padding: 8px 6px;
|
||||
float: left;
|
||||
width: 100%;
|
||||
z-index: 5;
|
||||
position:absolute;
|
||||
bottom:-5%;
|
||||
left:0;
|
||||
|
||||
}
|
||||
.footer_grey_bar{
|
||||
padding:5px;
|
||||
}
|
||||
.col {
|
||||
padding:0 !important;
|
||||
}
|
||||
.col-right a{
|
||||
color:#fff;
|
||||
}
|
||||
.col-right a:hover{
|
||||
color:#50c1ff;
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 400px) {
|
||||
.col-right {
|
||||
float:none !important;
|
||||
text-align:center;
|
||||
padding:4px 0;
|
||||
}
|
||||
}
|
|
@ -1,295 +0,0 @@
|
|||
/*
|
||||
* jQuery Bootstrap News Box v1.0.1
|
||||
*
|
||||
* Copyright 2014, Dragan Mitrovic
|
||||
* email: gagi270683@gmail.com
|
||||
* Free to use and abuse under the MIT license.
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
*/
|
||||
|
||||
//Utility
|
||||
if (typeof Object.create !== 'function') {
|
||||
//Douglas Crockford inheritance function
|
||||
Object.create = function (obj) {
|
||||
function F() { };
|
||||
F.prototype = obj;
|
||||
return new F();
|
||||
};
|
||||
}
|
||||
|
||||
(function ($, w, d, undefined) {
|
||||
|
||||
var NewsBox = {
|
||||
|
||||
init: function ( options, elem ) {
|
||||
//cache the references
|
||||
var self = this;
|
||||
self.elem = elem;
|
||||
self.$elem = $( elem );
|
||||
|
||||
self.newsTagName = self.$elem.find(":first-child").prop('tagName');
|
||||
self.newsClassName = self.$elem.find(":first-child").attr('class');
|
||||
|
||||
self.timer = null;
|
||||
self.resizeTimer = null; // used with window.resize event
|
||||
self.animationStarted = false;
|
||||
self.isHovered = false;
|
||||
|
||||
|
||||
if ( typeof options === 'string' ) {
|
||||
//string was passed
|
||||
if(console) {
|
||||
console.error("String property override is not supported");
|
||||
}
|
||||
throw ("String property override is not supported");
|
||||
} else {
|
||||
//object was passed
|
||||
//extend user options overrides
|
||||
self.options = $.extend( {}, $.fn.bootstrapNews.options, options );
|
||||
|
||||
self.prepareLayout();
|
||||
|
||||
|
||||
//autostart animation
|
||||
if(self.options.autoplay) {
|
||||
self.animate();
|
||||
}
|
||||
|
||||
if ( self.options.navigation ) {
|
||||
self.buildNavigation();
|
||||
}
|
||||
|
||||
//enable users to override the methods
|
||||
if( typeof self.options.onToDo === 'function') {
|
||||
self.options.onToDo.apply(self, arguments);
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
prepareLayout: function() {
|
||||
var self = this;
|
||||
|
||||
//checking mouse position
|
||||
|
||||
$(self.elem).find('.'+self.newsClassName).on('mouseenter', function(){
|
||||
self.onReset(true);
|
||||
});
|
||||
|
||||
$(self.elem).find('.'+self.newsClassName).on('mouseout', function(){
|
||||
self.onReset(false);
|
||||
});
|
||||
|
||||
//set news visible / hidden
|
||||
$.map(self.$elem.find(self.newsTagName), function(newsItem, index){
|
||||
if(index > self.options.newsPerPage - 1) {
|
||||
$(newsItem).hide();
|
||||
} else {
|
||||
$(newsItem).show();
|
||||
}
|
||||
});
|
||||
|
||||
//prevent user to select more news that it actualy have
|
||||
|
||||
if( self.$elem.find(self.newsTagName).length < self.options.newsPerPage ) {
|
||||
self.options.newsPerPage = self.$elem.find(self.newsTagName).length;
|
||||
}
|
||||
|
||||
//get height of the very first self.options.newsPerPage news
|
||||
var height = 0;
|
||||
|
||||
$.map(self.$elem.find(self.newsTagName), function( newsItem, index ) {
|
||||
if ( index < self.options.newsPerPage ) {
|
||||
height = parseInt(height) + parseInt($(newsItem).height()) + 10;
|
||||
}
|
||||
});
|
||||
|
||||
$(self.elem).css({"overflow-y": "hidden", "height": height});
|
||||
|
||||
//recalculate news box height for responsive interfaces
|
||||
$( w ).resize(function() {
|
||||
if ( self.resizeTimer !== null ) {
|
||||
clearTimeout( self.resizeTimer );
|
||||
}
|
||||
self.resizeTimer = setTimeout( function() {
|
||||
self.prepareLayout();
|
||||
}, 200 );
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
findPanelObject: function() {
|
||||
var panel = this.$elem;
|
||||
|
||||
while ( panel.parent() !== undefined ) {
|
||||
panel = panel.parent();
|
||||
if ( panel.parent().hasClass('panel') ) {
|
||||
return panel.parent();
|
||||
}
|
||||
}
|
||||
|
||||
return undefined;
|
||||
},
|
||||
|
||||
buildNavigation: function() {
|
||||
var panel = this.findPanelObject();
|
||||
if( panel ) {
|
||||
var nav = '<ul class="pagination pull-right" style="margin: 0px;">' +
|
||||
'<li><a href="#" class="prev"><span class="glyphicon glyphicon-chevron-down"></span></a></li>' +
|
||||
'<li><a href="#" class="next"><span class="glyphicon glyphicon-chevron-up"></span></a></li>' +
|
||||
'</ul><div class="clearfix"></div>';
|
||||
|
||||
|
||||
var footer = $(panel).find(".panel-footer")[0];
|
||||
if( footer ) {
|
||||
$(footer).append(nav);
|
||||
} else {
|
||||
$(panel).append('<div class="panel-footer">' + nav + '</div>');
|
||||
}
|
||||
|
||||
var self = this;
|
||||
$(panel).find('.prev').on('click', function(ev){
|
||||
ev.preventDefault();
|
||||
self.onPrev();
|
||||
});
|
||||
|
||||
$(panel).find('.next').on('click', function(ev){
|
||||
ev.preventDefault();
|
||||
self.onNext();
|
||||
});
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
onStop: function() {
|
||||
|
||||
},
|
||||
|
||||
onPause: function() {
|
||||
var self = this;
|
||||
self.isHovered = true;
|
||||
if(this.options.autoplay && self.timer) {
|
||||
clearTimeout(self.timer);
|
||||
}
|
||||
},
|
||||
|
||||
onReset: function(status) {
|
||||
var self = this;
|
||||
if(self.timer) {
|
||||
clearTimeout(self.timer);
|
||||
}
|
||||
|
||||
if(self.options.autoplay) {
|
||||
self.isHovered = status;
|
||||
self.animate();
|
||||
}
|
||||
},
|
||||
|
||||
animate: function() {
|
||||
var self = this;
|
||||
self.timer = setTimeout(function() {
|
||||
|
||||
if ( !self.options.pauseOnHover ) {
|
||||
self.isHovered = false;
|
||||
}
|
||||
|
||||
if (! self.isHovered) {
|
||||
if(self.options.direction === 'up') {
|
||||
self.onNext();
|
||||
} else {
|
||||
self.onPrev();
|
||||
}
|
||||
}
|
||||
}, self.options.newsTickerInterval);
|
||||
},
|
||||
|
||||
onPrev: function() {
|
||||
|
||||
var self = this;
|
||||
|
||||
if ( self.animationStarted ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
self.animationStarted = true;
|
||||
|
||||
var html = '<' + self.newsTagName + ' style="display:none;" class="' + self.newsClassName + '">' + $(self.$elem).find(self.newsTagName).last().html() + '</' + self.newsTagName + '>';
|
||||
$(self.$elem).prepend(html);
|
||||
$(self.$elem).find(self.newsTagName).first().slideDown(self.options.animationSpeed, function(){
|
||||
$(self.$elem).find(self.newsTagName).last().remove();
|
||||
});
|
||||
|
||||
$(self.$elem).find(self.newsTagName +':nth-child(' + parseInt(self.options.newsPerPage + 1) + ')').slideUp(self.options.animationSpeed, function(){
|
||||
self.animationStarted = false;
|
||||
self.onReset(self.isHovered);
|
||||
});
|
||||
|
||||
$(self.elem).find('.'+self.newsClassName).on('mouseenter', function(){
|
||||
self.onReset(true);
|
||||
});
|
||||
|
||||
$(self.elem).find('.'+self.newsClassName).on('mouseout', function(){
|
||||
self.onReset(false);
|
||||
});
|
||||
},
|
||||
|
||||
onNext: function() {
|
||||
var self = this;
|
||||
|
||||
if ( self.animationStarted ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
self.animationStarted = true;
|
||||
|
||||
var html = '<' + self.newsTagName + ' style="display:none;" class=' + self.newsClassName + '>' + $(self.$elem).find(self.newsTagName).first().html() + '</' + self.newsTagName + '>';
|
||||
$(self.$elem).append(html);
|
||||
|
||||
$(self.$elem).find(self.newsTagName).first().slideUp(self.options.animationSpeed, function(){
|
||||
$(this).remove();
|
||||
});
|
||||
|
||||
$(self.$elem).find(self.newsTagName +':nth-child(' + parseInt(self.options.newsPerPage + 1) + ')').slideDown(self.options.animationSpeed, function(){
|
||||
self.animationStarted = false;
|
||||
self.onReset(self.isHovered);
|
||||
});
|
||||
|
||||
$(self.elem).find('.'+self.newsClassName).on('mouseenter', function(){
|
||||
self.onReset(true);
|
||||
});
|
||||
|
||||
$(self.elem).find('.'+self.newsClassName).on('mouseout', function(){
|
||||
self.onReset(false);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
$.fn.bootstrapNews = function ( options ) {
|
||||
//enable multiple DOM object selection (class selector) + enable chaining like $(".class").bootstrapNews().chainingMethod()
|
||||
return this.each( function () {
|
||||
|
||||
var newsBox = Object.create( NewsBox );
|
||||
|
||||
newsBox.init( options, this );
|
||||
//console.log(newsBox);
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
$.fn.bootstrapNews.options = {
|
||||
newsPerPage: 4,
|
||||
navigation: true,
|
||||
autoplay: true,
|
||||
direction:'up',
|
||||
animationSpeed: 'normal',
|
||||
newsTickerInterval: 4000, //4 secs
|
||||
pauseOnHover: true,
|
||||
onStop: null,
|
||||
onPause: null,
|
||||
onReset: null,
|
||||
onPrev: null,
|
||||
onNext: null,
|
||||
onToDo: null
|
||||
};
|
||||
|
||||
})(jQuery, window, document);
|
|
@ -1 +0,0 @@
|
|||
AmCharts.themes.light={themeName:"light",AmChart:{color:"#000000",backgroundColor:"#FFFFFF"},AmCoordinateChart:{colors:["#67b7dc","#fdd400","#84b761","#cc4748","#cd82ad","#2f4074","#448e4d","#b7b83f","#b9783f","#b93e3d","#913167"]},AmStockChart:{colors:["#67b7dc","#fdd400","#84b761","#cc4748","#cd82ad","#2f4074","#448e4d","#b7b83f","#b9783f","#b93e3d","#913167"]},AmSlicedChart:{colors:["#67b7dc","#fdd400","#84b761","#cc4748","#cd82ad","#2f4074","#448e4d","#b7b83f","#b9783f","#b93e3d","#913167"],outlineAlpha:1,outlineThickness:2,labelTickColor:"#000000",labelTickAlpha:0.3},AmRectangularChart:{zoomOutButtonColor:'#000000',zoomOutButtonRollOverAlpha:0.15,zoomOutButtonImage:"lens"},AxisBase:{axisColor:"#000000",axisAlpha:0.3,gridAlpha:0.1,gridColor:"#000000"},ChartScrollbar:{backgroundColor:"#000000",backgroundAlpha:0.12,graphFillAlpha:0.5,graphLineAlpha:0,selectedBackgroundColor:"#FFFFFF",selectedBackgroundAlpha:0.4,gridAlpha:0.15},ChartCursor:{cursorColor:"#000000",color:"#FFFFFF",cursorAlpha:0.5},AmLegend:{color:"#000000"},AmGraph:{lineAlpha:0.9},GaugeArrow:{color:"#000000",alpha:0.8,nailAlpha:0,innerRadius:"40%",nailRadius:15,startWidth:15,borderAlpha:0.8,nailBorderAlpha:0},GaugeAxis:{tickColor:"#000000",tickAlpha:1,tickLength:15,minorTickLength:8,axisThickness:3,axisColor:'#000000',axisAlpha:1,bandAlpha:0.8},TrendLine:{lineColor:"#c03246",lineAlpha:0.8},AreasSettings:{alpha:0.8,color:"#67b7dc",colorSolid:"#003767",unlistedAreasAlpha:0.4,unlistedAreasColor:"#000000",outlineColor:"#FFFFFF",outlineAlpha:0.5,outlineThickness:0.5,rollOverColor:"#3c5bdc",rollOverOutlineColor:"#FFFFFF",selectedOutlineColor:"#FFFFFF",selectedColor:"#f15135",unlistedAreasOutlineColor:"#FFFFFF",unlistedAreasOutlineAlpha:0.5},LinesSettings:{color:"#000000",alpha:0.8},ImagesSettings:{alpha:0.8,labelColor:"#000000",color:"#000000",labelRollOverColor:"#3c5bdc"},ZoomControl:{buttonFillAlpha:0.7,buttonIconColor:"#a7a7a7"},SmallMap:{mapColor:"#000000",rectangleColor:"#f15135",backgroundColor:"#FFFFFF",backgroundAlpha:0.7,borderThickness:1,borderAlpha:0.8},PeriodSelector:{color:"#000000"},PeriodButton:{color:"#000000",background:"transparent",opacity:0.7,border:"1px solid rgba(0, 0, 0, .3)",MozBorderRadius:"5px",borderRadius:"5px",margin:"1px",outline:"none",boxSizing:"border-box"},PeriodButtonSelected:{color:"#000000",backgroundColor:"#b9cdf5",border:"1px solid rgba(0, 0, 0, .3)",MozBorderRadius:"5px",borderRadius:"5px",margin:"1px",outline:"none",opacity:1,boxSizing:"border-box"},PeriodInputField:{color:"#000000",background:"transparent",border:"1px solid rgba(0, 0, 0, .3)",outline:"none"},DataSetSelector:{color:"#000000",selectedBackgroundColor:"#b9cdf5",rollOverBackgroundColor:"#a8b0e4"},DataSetCompareList:{color:"#000000",lineHeight:"100%",boxSizing:"initial",webkitBoxSizing:"initial",border:"1px solid rgba(0, 0, 0, .3)"},DataSetSelect:{border:"1px solid rgba(0, 0, 0, .3)",outline:"none"}};
|
|
@ -1 +0,0 @@
|
|||
!function(e){function t(){function t(e){"remove"===e&&this.each(function(e,t){var n=i(t);n&&n.remove()}),this.find("span.mceEditor,div.mceEditor").each(function(e,t){var n=tinymce.get(t.id.replace(/_parent$/,""));n&&n.remove()})}function r(e){var n,r=this;if(null!=e)t.call(r),r.each(function(t,n){var r;(r=tinymce.get(n.id))&&r.setContent(e)});else if(r.length>0&&(n=tinymce.get(r[0].id)))return n.getContent()}function i(e){var t=null;return e&&e.id&&a.tinymce&&(t=tinymce.get(e.id)),t}function o(e){return!!(e&&e.length&&a.tinymce&&e.is(":tinymce"))}var s={};e.each(["text","html","val"],function(t,a){var l=s[a]=e.fn[a],u="text"===a;e.fn[a]=function(t){var a=this;if(!o(a))return l.apply(a,arguments);if(t!==n)return r.call(a.filter(":tinymce"),t),l.apply(a.not(":tinymce"),arguments),a;var s="",c=arguments;return(u?a:a.eq(0)).each(function(t,n){var r=i(n);s+=r?u?r.getContent().replace(/<(?:"[^"]*"|'[^']*'|[^'">])*>/g,""):r.getContent({save:!0}):l.apply(e(n),c)}),s}}),e.each(["append","prepend"],function(t,r){var a=s[r]=e.fn[r],l="prepend"===r;e.fn[r]=function(e){var t=this;return o(t)?e!==n?("string"==typeof e&&t.filter(":tinymce").each(function(t,n){var r=i(n);r&&r.setContent(l?e+r.getContent():r.getContent()+e)}),a.apply(t.not(":tinymce"),arguments),t):void 0:a.apply(t,arguments)}}),e.each(["remove","replaceWith","replaceAll","empty"],function(n,r){var i=s[r]=e.fn[r];e.fn[r]=function(){return t.call(this,r),i.apply(this,arguments)}}),s.attr=e.fn.attr,e.fn.attr=function(t,a){var l=this,u=arguments;if(!t||"value"!==t||!o(l))return a!==n?s.attr.apply(l,u):s.attr.apply(l,u);if(a!==n)return r.call(l.filter(":tinymce"),a),s.attr.apply(l.not(":tinymce"),u),l;var c=l[0],d=i(c);return d?d.getContent({save:!0}):s.attr.apply(e(c),u)}}var n,r,i,o=[],a=window;e.fn.tinymce=function(n){function s(){var r=[],o=0;i||(t(),i=!0),d.each(function(e,t){var i,a=t.id,s=n.oninit;a||(t.id=a=tinymce.DOM.uniqueId()),tinymce.get(a)||(i=new tinymce.Editor(a,n,tinymce.EditorManager),r.push(i),i.on("init",function(){var e,t=s;d.css("visibility",""),s&&++o==r.length&&("string"==typeof t&&(e=t.indexOf(".")===-1?null:tinymce.resolve(t.replace(/\.\w+$/,"")),t=tinymce.resolve(t)),t.apply(e||tinymce,r))}))}),e.each(r,function(e,t){t.render()})}var l,u,c,d=this,f="";if(!d.length)return d;if(!n)return window.tinymce?tinymce.get(d[0].id):null;if(d.css("visibility","hidden"),a.tinymce||r||!(l=n.script_url))1===r?o.push(s):s();else{r=1,u=l.substring(0,l.lastIndexOf("/")),l.indexOf(".min")!=-1&&(f=".min"),a.tinymce=a.tinyMCEPreInit||{base:u,suffix:f},l.indexOf("gzip")!=-1&&(c=n.language||"en",l=l+(/\?/.test(l)?"&":"?")+"js=true&core=true&suffix="+escape(f)+"&themes="+escape(n.theme||"modern")+"&plugins="+escape(n.plugins||"")+"&languages="+(c||""),a.tinyMCE_GZ||(a.tinyMCE_GZ={start:function(){function t(e){tinymce.ScriptLoader.markDone(tinymce.baseURI.toAbsolute(e))}t("langs/"+c+".js"),t("themes/"+n.theme+"/theme"+f+".js"),t("themes/"+n.theme+"/langs/"+c+".js"),e.each(n.plugins.split(","),function(e,n){n&&(t("plugins/"+n+"/plugin"+f+".js"),t("plugins/"+n+"/langs/"+c+".js"))})},end:function(){}}));var p=document.createElement("script");p.type="text/javascript",p.onload=p.onreadystatechange=function(t){t=t||window.event,2===r||"load"!=t.type&&!/complete|loaded/.test(p.readyState)||(tinymce.dom.Event.domLoaded=1,r=2,n.script_loaded&&n.script_loaded(),s(),e.each(o,function(e,t){t()}))},p.src=l,document.body.appendChild(p)}return d},e.extend(e.expr[":"],{tinymce:function(e){var t;return!!(e.id&&"tinymce"in window&&(t=tinymce.get(e.id),t&&t.editorManager===tinymce))}})}(jQuery);
|
|
@ -1,3 +0,0 @@
|
|||
This is where language files should be placed.
|
||||
|
||||
Please DO NOT translate these directly use this service: https://www.transifex.com/projects/p/tinymce/
|
|
@ -1,504 +0,0 @@
|
|||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
Version 2.1, February 1999
|
||||
|
||||
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the Lesser GPL. It also counts
|
||||
as the successor of the GNU Library Public License, version 2, hence
|
||||
the version number 2.1.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
Licenses are intended to guarantee your freedom to share and change
|
||||
free software--to make sure the software is free for all its users.
|
||||
|
||||
This license, the Lesser General Public License, applies to some
|
||||
specially designated software packages--typically libraries--of the
|
||||
Free Software Foundation and other authors who decide to use it. You
|
||||
can use it too, but we suggest you first think carefully about whether
|
||||
this license or the ordinary General Public License is the better
|
||||
strategy to use in any particular case, based on the explanations below.
|
||||
|
||||
When we speak of free software, we are referring to freedom of use,
|
||||
not price. Our General Public Licenses are designed to make sure that
|
||||
you have the freedom to distribute copies of free software (and charge
|
||||
for this service if you wish); that you receive source code or can get
|
||||
it if you want it; that you can change the software and use pieces of
|
||||
it in new free programs; and that you are informed that you can do
|
||||
these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
distributors to deny you these rights or to ask you to surrender these
|
||||
rights. These restrictions translate to certain responsibilities for
|
||||
you if you distribute copies of the library or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis
|
||||
or for a fee, you must give the recipients all the rights that we gave
|
||||
you. You must make sure that they, too, receive or can get the source
|
||||
code. If you link other code with the library, you must provide
|
||||
complete object files to the recipients, so that they can relink them
|
||||
with the library after making changes to the library and recompiling
|
||||
it. And you must show them these terms so they know their rights.
|
||||
|
||||
We protect your rights with a two-step method: (1) we copyright the
|
||||
library, and (2) we offer you this license, which gives you legal
|
||||
permission to copy, distribute and/or modify the library.
|
||||
|
||||
To protect each distributor, we want to make it very clear that
|
||||
there is no warranty for the free library. Also, if the library is
|
||||
modified by someone else and passed on, the recipients should know
|
||||
that what they have is not the original version, so that the original
|
||||
author's reputation will not be affected by problems that might be
|
||||
introduced by others.
|
||||
|
||||
Finally, software patents pose a constant threat to the existence of
|
||||
any free program. We wish to make sure that a company cannot
|
||||
effectively restrict the users of a free program by obtaining a
|
||||
restrictive license from a patent holder. Therefore, we insist that
|
||||
any patent license obtained for a version of the library must be
|
||||
consistent with the full freedom of use specified in this license.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the
|
||||
ordinary GNU General Public License. This license, the GNU Lesser
|
||||
General Public License, applies to certain designated libraries, and
|
||||
is quite different from the ordinary General Public License. We use
|
||||
this license for certain libraries in order to permit linking those
|
||||
libraries into non-free programs.
|
||||
|
||||
When a program is linked with a library, whether statically or using
|
||||
a shared library, the combination of the two is legally speaking a
|
||||
combined work, a derivative of the original library. The ordinary
|
||||
General Public License therefore permits such linking only if the
|
||||
entire combination fits its criteria of freedom. The Lesser General
|
||||
Public License permits more lax criteria for linking other code with
|
||||
the library.
|
||||
|
||||
We call this license the "Lesser" General Public License because it
|
||||
does Less to protect the user's freedom than the ordinary General
|
||||
Public License. It also provides other free software developers Less
|
||||
of an advantage over competing non-free programs. These disadvantages
|
||||
are the reason we use the ordinary General Public License for many
|
||||
libraries. However, the Lesser license provides advantages in certain
|
||||
special circumstances.
|
||||
|
||||
For example, on rare occasions, there may be a special need to
|
||||
encourage the widest possible use of a certain library, so that it becomes
|
||||
a de-facto standard. To achieve this, non-free programs must be
|
||||
allowed to use the library. A more frequent case is that a free
|
||||
library does the same job as widely used non-free libraries. In this
|
||||
case, there is little to gain by limiting the free library to free
|
||||
software only, so we use the Lesser General Public License.
|
||||
|
||||
In other cases, permission to use a particular library in non-free
|
||||
programs enables a greater number of people to use a large body of
|
||||
free software. For example, permission to use the GNU C Library in
|
||||
non-free programs enables many more people to use the whole GNU
|
||||
operating system, as well as its variant, the GNU/Linux operating
|
||||
system.
|
||||
|
||||
Although the Lesser General Public License is Less protective of the
|
||||
users' freedom, it does ensure that the user of a program that is
|
||||
linked with the Library has the freedom and the wherewithal to run
|
||||
that program using a modified version of the Library.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow. Pay close attention to the difference between a
|
||||
"work based on the library" and a "work that uses the library". The
|
||||
former contains code derived from the library, whereas the latter must
|
||||
be combined with the library in order to run.
|
||||
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library or other
|
||||
program which contains a notice placed by the copyright holder or
|
||||
other authorized party saying it may be distributed under the terms of
|
||||
this Lesser General Public License (also called "this License").
|
||||
Each licensee is addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data
|
||||
prepared so as to be conveniently linked with application programs
|
||||
(which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work
|
||||
which has been distributed under these terms. A "work based on the
|
||||
Library" means either the Library or any derivative work under
|
||||
copyright law: that is to say, a work containing the Library or a
|
||||
portion of it, either verbatim or with modifications and/or translated
|
||||
straightforwardly into another language. (Hereinafter, translation is
|
||||
included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for
|
||||
making modifications to it. For a library, complete source code means
|
||||
all the source code for all modules it contains, plus any associated
|
||||
interface definition files, plus the scripts used to control compilation
|
||||
and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running a program using the Library is not restricted, and output from
|
||||
such a program is covered only if its contents constitute a work based
|
||||
on the Library (independent of the use of the Library in a tool for
|
||||
writing it). Whether that is true depends on what the Library does
|
||||
and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's
|
||||
complete source code as you receive it, in any medium, provided that
|
||||
you conspicuously and appropriately publish on each copy an
|
||||
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||
all the notices that refer to this License and to the absence of any
|
||||
warranty; and distribute a copy of this License along with the
|
||||
Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy,
|
||||
and you may at your option offer warranty protection in exchange for a
|
||||
fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion
|
||||
of it, thus forming a work based on the Library, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no
|
||||
charge to all third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a
|
||||
table of data to be supplied by an application program that uses
|
||||
the facility, other than as an argument passed when the facility
|
||||
is invoked, then you must make a good faith effort to ensure that,
|
||||
in the event an application does not supply such function or
|
||||
table, the facility still operates, and performs whatever part of
|
||||
its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has
|
||||
a purpose that is entirely well-defined independent of the
|
||||
application. Therefore, Subsection 2d requires that any
|
||||
application-supplied function or table used by this function must
|
||||
be optional: if the application does not supply it, the square
|
||||
root function must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Library,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Library, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library
|
||||
with the Library (or with a work based on the Library) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||
License instead of this License to a given copy of the Library. To do
|
||||
this, you must alter all the notices that refer to this License, so
|
||||
that they refer to the ordinary GNU General Public License, version 2,
|
||||
instead of to this License. (If a newer version than version 2 of the
|
||||
ordinary GNU General Public License has appeared, then you can specify
|
||||
that version instead if you wish.) Do not make any other change in
|
||||
these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for
|
||||
that copy, so the ordinary GNU General Public License applies to all
|
||||
subsequent copies and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of
|
||||
the Library into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or
|
||||
derivative of it, under Section 2) in object code or executable form
|
||||
under the terms of Sections 1 and 2 above provided that you accompany
|
||||
it with the complete corresponding machine-readable source code, which
|
||||
must be distributed under the terms of Sections 1 and 2 above on a
|
||||
medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy
|
||||
from a designated place, then offering equivalent access to copy the
|
||||
source code from the same place satisfies the requirement to
|
||||
distribute the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the
|
||||
Library, but is designed to work with the Library by being compiled or
|
||||
linked with it, is called a "work that uses the Library". Such a
|
||||
work, in isolation, is not a derivative work of the Library, and
|
||||
therefore falls outside the scope of this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library
|
||||
creates an executable that is a derivative of the Library (because it
|
||||
contains portions of the Library), rather than a "work that uses the
|
||||
library". The executable is therefore covered by this License.
|
||||
Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file
|
||||
that is part of the Library, the object code for the work may be a
|
||||
derivative work of the Library even though the source code is not.
|
||||
Whether this is true is especially significant if the work can be
|
||||
linked without the Library, or if the work is itself a library. The
|
||||
threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data
|
||||
structure layouts and accessors, and small macros and small inline
|
||||
functions (ten lines or less in length), then the use of the object
|
||||
file is unrestricted, regardless of whether it is legally a derivative
|
||||
work. (Executables containing this object code plus portions of the
|
||||
Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may
|
||||
distribute the object code for the work under the terms of Section 6.
|
||||
Any executables containing that work also fall under Section 6,
|
||||
whether or not they are linked directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also combine or
|
||||
link a "work that uses the Library" with the Library to produce a
|
||||
work containing portions of the Library, and distribute that work
|
||||
under terms of your choice, provided that the terms permit
|
||||
modification of the work for the customer's own use and reverse
|
||||
engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the
|
||||
Library is used in it and that the Library and its use are covered by
|
||||
this License. You must supply a copy of this License. If the work
|
||||
during execution displays copyright notices, you must include the
|
||||
copyright notice for the Library among them, as well as a reference
|
||||
directing the user to the copy of this License. Also, you must do one
|
||||
of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding
|
||||
machine-readable source code for the Library including whatever
|
||||
changes were used in the work (which must be distributed under
|
||||
Sections 1 and 2 above); and, if the work is an executable linked
|
||||
with the Library, with the complete machine-readable "work that
|
||||
uses the Library", as object code and/or source code, so that the
|
||||
user can modify the Library and then relink to produce a modified
|
||||
executable containing the modified Library. (It is understood
|
||||
that the user who changes the contents of definitions files in the
|
||||
Library will not necessarily be able to recompile the application
|
||||
to use the modified definitions.)
|
||||
|
||||
b) Use a suitable shared library mechanism for linking with the
|
||||
Library. A suitable mechanism is one that (1) uses at run time a
|
||||
copy of the library already present on the user's computer system,
|
||||
rather than copying library functions into the executable, and (2)
|
||||
will operate properly with a modified version of the library, if
|
||||
the user installs one, as long as the modified version is
|
||||
interface-compatible with the version that the work was made with.
|
||||
|
||||
c) Accompany the work with a written offer, valid for at
|
||||
least three years, to give the same user the materials
|
||||
specified in Subsection 6a, above, for a charge no more
|
||||
than the cost of performing this distribution.
|
||||
|
||||
d) If distribution of the work is made by offering access to copy
|
||||
from a designated place, offer equivalent access to copy the above
|
||||
specified materials from the same place.
|
||||
|
||||
e) Verify that the user has already received a copy of these
|
||||
materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the
|
||||
Library" must include any data and utility programs needed for
|
||||
reproducing the executable from it. However, as a special exception,
|
||||
the materials to be distributed need not include anything that is
|
||||
normally distributed (in either source or binary form) with the major
|
||||
components (compiler, kernel, and so on) of the operating system on
|
||||
which the executable runs, unless that component itself accompanies
|
||||
the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license
|
||||
restrictions of other proprietary libraries that do not normally
|
||||
accompany the operating system. Such a contradiction means you cannot
|
||||
use both them and the Library together in an executable that you
|
||||
distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the
|
||||
Library side-by-side in a single library together with other library
|
||||
facilities not covered by this License, and distribute such a combined
|
||||
library, provided that the separate distribution of the work based on
|
||||
the Library and of the other library facilities is otherwise
|
||||
permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work
|
||||
based on the Library, uncombined with any other library
|
||||
facilities. This must be distributed under the terms of the
|
||||
Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact
|
||||
that part of it is a work based on the Library, and explaining
|
||||
where to find the accompanying uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute
|
||||
the Library except as expressly provided under this License. Any
|
||||
attempt otherwise to copy, modify, sublicense, link with, or
|
||||
distribute the Library is void, and will automatically terminate your
|
||||
rights under this License. However, parties who have received copies,
|
||||
or rights, from you under this License will not have their licenses
|
||||
terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Library or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Library (or any work based on the
|
||||
Library), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the
|
||||
Library), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute, link with or modify the Library
|
||||
subject to these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties with
|
||||
this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Library at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Library by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Library under this License may add
|
||||
an explicit geographical distribution limitation excluding those countries,
|
||||
so that distribution is permitted only in or among countries not thus
|
||||
excluded. In such case, this License incorporates the limitation as if
|
||||
written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new
|
||||
versions of the Lesser General Public License from time to time.
|
||||
Such new versions will be similar in spirit to the present version,
|
||||
but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library
|
||||
specifies a version number of this License which applies to it and
|
||||
"any later version", you have the option of following the terms and
|
||||
conditions either of that version or of any later version published by
|
||||
the Free Software Foundation. If the Library does not specify a
|
||||
license version number, you may choose any version ever published by
|
||||
the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free
|
||||
programs whose distribution conditions are incompatible with these,
|
||||
write to the author to ask for permission. For software which is
|
||||
copyrighted by the Free Software Foundation, write to the Free
|
||||
Software Foundation; we sometimes make exceptions for this. Our
|
||||
decision will be guided by the two goals of preserving the free status
|
||||
of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Libraries
|
||||
|
||||
If you develop a new library, and you want it to be of the greatest
|
||||
possible use to the public, we recommend making it free software that
|
||||
everyone can redistribute and change. You can do so by permitting
|
||||
redistribution under these terms (or, alternatively, under the terms of the
|
||||
ordinary General Public License).
|
||||
|
||||
To apply these terms, attach the following notices to the library. It is
|
||||
safest to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least the
|
||||
"copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the library's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the library, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
||||
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1990
|
||||
Ty Coon, President of Vice
|
||||
|
||||
That's all there is to it!
|
||||
|
||||
|
|
@ -1 +0,0 @@
|
|||
tinymce.PluginManager.add("advlist",function(e){function t(t){return e.$.contains(e.getBody(),t)}function n(e){return e&&/^(OL|UL|DL)$/.test(e.nodeName)&&t(e)}function r(e,t){var n=[];return t&&tinymce.each(t.split(/[ ,]/),function(e){n.push({text:e.replace(/\-/g," ").replace(/\b\w/g,function(e){return e.toUpperCase()}),data:"default"==e?"":e})}),n}function i(t,n){e.undoManager.transact(function(){var r,i=e.dom,o=e.selection;if(r=i.getParent(o.getNode(),"ol,ul"),!r||r.nodeName!=t||n===!1){var a={"list-style-type":n?n:""};e.execCommand("UL"==t?"InsertUnorderedList":"InsertOrderedList",!1,a)}r=i.getParent(o.getNode(),"ol,ul"),r&&tinymce.util.Tools.each(i.select("ol,ul",r).concat([r]),function(e){e.nodeName!==t&&n!==!1&&(e=i.rename(e,t)),i.setStyle(e,"listStyleType",n?n:null),e.removeAttribute("data-mce-style")}),e.focus()})}function o(t){var n=e.dom.getStyle(e.dom.getParent(e.selection.getNode(),"ol,ul"),"listStyleType")||"";t.control.items().each(function(e){e.active(e.settings.data===n)})}var a,s,l=function(e,t){var n=e.settings.plugins?e.settings.plugins:"";return tinymce.util.Tools.inArray(n.split(/[ ,]/),t)!==-1};a=r("OL",e.getParam("advlist_number_styles","default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman")),s=r("UL",e.getParam("advlist_bullet_styles","default,circle,disc,square"));var u=function(t){return function(){var r=this;e.on("NodeChange",function(e){var i=tinymce.util.Tools.grep(e.parents,n);r.active(i.length>0&&i[0].nodeName===t)})}};l(e,"lists")&&(e.addCommand("ApplyUnorderedListStyle",function(e,t){i("UL",t["list-style-type"])}),e.addCommand("ApplyOrderedListStyle",function(e,t){i("OL",t["list-style-type"])}),e.addButton("numlist",{type:a.length>0?"splitbutton":"button",tooltip:"Numbered list",menu:a,onPostRender:u("OL"),onshow:o,onselect:function(e){i("OL",e.control.settings.data)},onclick:function(){i("OL",!1)}}),e.addButton("bullist",{type:s.length>0?"splitbutton":"button",tooltip:"Bullet list",onPostRender:u("UL"),menu:s,onshow:o,onselect:function(e){i("UL",e.control.settings.data)},onclick:function(){i("UL",!1)}}))});
|
|
@ -1 +0,0 @@
|
|||
tinymce.PluginManager.add("anchor",function(e){var t=function(e){return!e.attr("href")&&(e.attr("id")||e.attr("name"))&&!e.firstChild},n=function(e){return function(n){for(var r=0;r<n.length;r++)t(n[r])&&n[r].attr("contenteditable",e)}},r=function(e){return/^[A-Za-z][A-Za-z0-9\-:._]*$/.test(e)},i=function(){var t=e.selection.getNode(),n="A"==t.tagName&&""===e.dom.getAttrib(t,"href"),i="";n&&(i=t.id||t.name||""),e.windowManager.open({title:"Anchor",body:{type:"textbox",name:"id",size:40,label:"Id",value:i},onsubmit:function(i){var o=i.data.id;return r(o)?void(n?(t.removeAttribute("name"),t.id=o):(e.selection.collapse(!0),e.execCommand("mceInsertContent",!1,e.dom.createHTML("a",{id:o})))):(i.preventDefault(),void e.windowManager.alert("Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores."))}})};tinymce.Env.ceFalse&&e.on("PreInit",function(){e.parser.addNodeFilter("a",n("false")),e.serializer.addNodeFilter("a",n(null))}),e.addCommand("mceAnchor",i),e.addButton("anchor",{icon:"anchor",tooltip:"Anchor",onclick:i,stateSelector:"a:not([href])"}),e.addMenuItem("anchor",{icon:"anchor",text:"Anchor",context:"insert",onclick:i})});
|
|
@ -1 +0,0 @@
|
|||
tinymce.PluginManager.add("autolink",function(e){function t(e){i(e,-1,"(",!0)}function n(e){i(e,0,"",!0)}function r(e){i(e,-1,"",!1)}function i(e,t,n){function r(e,t){if(t<0&&(t=0),3==e.nodeType){var n=e.data.length;t>n&&(t=n)}return t}function i(e,t){1!=e.nodeType||e.hasChildNodes()?s.setStart(e,r(e,t)):s.setStartBefore(e)}function o(e,t){1!=e.nodeType||e.hasChildNodes()?s.setEnd(e,r(e,t)):s.setEndAfter(e)}var s,l,u,c,d,f,p,h,m,g;if("A"!=e.selection.getNode().tagName){if(s=e.selection.getRng(!0).cloneRange(),s.startOffset<5){if(h=s.endContainer.previousSibling,!h){if(!s.endContainer.firstChild||!s.endContainer.firstChild.nextSibling)return;h=s.endContainer.firstChild.nextSibling}if(m=h.length,i(h,m),o(h,m),s.endOffset<5)return;l=s.endOffset,c=h}else{if(c=s.endContainer,3!=c.nodeType&&c.firstChild){for(;3!=c.nodeType&&c.firstChild;)c=c.firstChild;3==c.nodeType&&(i(c,0),o(c,c.nodeValue.length))}l=1==s.endOffset?2:s.endOffset-1-t}u=l;do i(c,l>=2?l-2:0),o(c,l>=1?l-1:0),l-=1,g=s.toString();while(" "!=g&&""!==g&&160!=g.charCodeAt(0)&&l-2>=0&&g!=n);s.toString()==n||160==s.toString().charCodeAt(0)?(i(c,l),o(c,u),l+=1):0===s.startOffset?(i(c,0),o(c,u)):(i(c,l),o(c,u)),f=s.toString(),"."==f.charAt(f.length-1)&&o(c,u-1),f=s.toString(),p=f.match(a),p&&("www."==p[1]?p[1]="http://www.":/@$/.test(p[1])&&!/^mailto:/.test(p[1])&&(p[1]="mailto:"+p[1]),d=e.selection.getBookmark(),e.selection.setRng(s),e.execCommand("createlink",!1,p[1]+p[2]),e.settings.default_link_target&&e.dom.setAttrib(e.selection.getNode(),"target",e.settings.default_link_target),e.selection.moveToBookmark(d),e.nodeChanged())}}var o,a=/^(https?:\/\/|ssh:\/\/|ftp:\/\/|file:\/|www\.|(?:mailto:)?[A-Z0-9._%+\-]+@)(.+)$/i;return e.settings.autolink_pattern&&(a=e.settings.autolink_pattern),e.on("keydown",function(t){if(13==t.keyCode)return r(e)}),tinymce.Env.ie?void e.on("focus",function(){if(!o){o=!0;try{e.execCommand("AutoUrlDetect",!1,!0)}catch(e){}}}):(e.on("keypress",function(n){if(41==n.keyCode)return t(e)}),void e.on("keyup",function(t){if(32==t.keyCode)return n(e)}))});
|
|
@ -1 +0,0 @@
|
|||
tinymce.PluginManager.add("autoresize",function(e){function t(){return e.plugins.fullscreen&&e.plugins.fullscreen.isFullscreen()}function n(r){var a,s,l,u,c,d,f,p,h,m,g,v,y=tinymce.DOM;if(s=e.getDoc()){if(l=s.body,u=s.documentElement,c=i.autoresize_min_height,!l||r&&"setcontent"===r.type&&r.initial||t())return void(l&&u&&(l.style.overflowY="auto",u.style.overflowY="auto"));f=e.dom.getStyle(l,"margin-top",!0),p=e.dom.getStyle(l,"margin-bottom",!0),h=e.dom.getStyle(l,"padding-top",!0),m=e.dom.getStyle(l,"padding-bottom",!0),g=e.dom.getStyle(l,"border-top-width",!0),v=e.dom.getStyle(l,"border-bottom-width",!0),d=l.offsetHeight+parseInt(f,10)+parseInt(p,10)+parseInt(h,10)+parseInt(m,10)+parseInt(g,10)+parseInt(v,10),(isNaN(d)||d<=0)&&(d=tinymce.Env.ie?l.scrollHeight:tinymce.Env.webkit&&0===l.clientHeight?0:l.offsetHeight),d>i.autoresize_min_height&&(c=d),i.autoresize_max_height&&d>i.autoresize_max_height?(c=i.autoresize_max_height,l.style.overflowY="auto",u.style.overflowY="auto"):(l.style.overflowY="hidden",u.style.overflowY="hidden",l.scrollTop=0),c!==o&&(a=c-o,y.setStyle(e.iframeElement,"height",c+"px"),o=c,tinymce.isWebKit&&a<0&&n(r))}}function r(t,i,o){tinymce.util.Delay.setEditorTimeout(e,function(){n({}),t--?r(t,i,o):o&&o()},i)}var i=e.settings,o=0;e.settings.inline||(i.autoresize_min_height=parseInt(e.getParam("autoresize_min_height",e.getElement().offsetHeight),10),i.autoresize_max_height=parseInt(e.getParam("autoresize_max_height",0),10),e.on("init",function(){var t,n;t=e.getParam("autoresize_overflow_padding",1),n=e.getParam("autoresize_bottom_margin",50),t!==!1&&e.dom.setStyles(e.getBody(),{paddingLeft:t,paddingRight:t}),n!==!1&&e.dom.setStyles(e.getBody(),{paddingBottom:n})}),e.on("nodechange setcontent keyup FullscreenStateChanged",n),e.getParam("autoresize_on_init",!0)&&e.on("init",function(){r(20,100,function(){r(5,1e3)})}),e.addCommand("mceAutoResize",n))});
|
|
@ -1 +0,0 @@
|
|||
tinymce._beforeUnloadHandler=function(){var e;return tinymce.each(tinymce.editors,function(t){t.plugins.autosave&&t.plugins.autosave.storeDraft(),!e&&t.isDirty()&&t.getParam("autosave_ask_before_unload",!0)&&(e=t.translate("You have unsaved changes are you sure you want to navigate away?"))}),e},tinymce.PluginManager.add("autosave",function(e){function t(e,t){var n={s:1e3,m:6e4};return e=/^(\d+)([ms]?)$/.exec(""+(e||t)),(e[2]?n[e[2]]:1)*parseInt(e,10)}function n(){var e=parseInt(p.getItem(c+"time"),10)||0;return!((new Date).getTime()-e>f.autosave_retention)||(r(!1),!1)}function r(t){p.removeItem(c+"draft"),p.removeItem(c+"time"),t!==!1&&e.fire("RemoveDraft")}function i(){!u()&&e.isDirty()&&(p.setItem(c+"draft",e.getContent({format:"raw",no_events:!0})),p.setItem(c+"time",(new Date).getTime()),e.fire("StoreDraft"))}function o(){n()&&(e.setContent(p.getItem(c+"draft"),{format:"raw"}),e.fire("RestoreDraft"))}function a(){d||(setInterval(function(){e.removed||i()},f.autosave_interval),d=!0)}function s(){var t=this;t.disabled(!n()),e.on("StoreDraft RestoreDraft RemoveDraft",function(){t.disabled(!n())}),a()}function l(){e.undoManager.beforeChange(),o(),r(),e.undoManager.add()}function u(t){var n=e.settings.forced_root_block;return t=tinymce.trim("undefined"==typeof t?e.getBody().innerHTML:t),""===t||new RegExp("^<"+n+"[^>]*>((\xa0| |[ \t]|<br[^>]*>)+?|)</"+n+">|<br>$","i").test(t)}var c,d,f=e.settings,p=tinymce.util.LocalStorage;c=f.autosave_prefix||"tinymce-autosave-{path}{query}-{id}-",c=c.replace(/\{path\}/g,document.location.pathname),c=c.replace(/\{query\}/g,document.location.search),c=c.replace(/\{id\}/g,e.id),f.autosave_interval=t(f.autosave_interval,"30s"),f.autosave_retention=t(f.autosave_retention,"20m"),e.addButton("restoredraft",{title:"Restore last draft",onclick:l,onPostRender:s}),e.addMenuItem("restoredraft",{text:"Restore last draft",onclick:l,onPostRender:s,context:"file"}),e.settings.autosave_restore_when_empty!==!1&&(e.on("init",function(){n()&&u()&&o()}),e.on("saveContent",function(){r()})),window.onbeforeunload=tinymce._beforeUnloadHandler,this.hasDraft=n,this.storeDraft=i,this.restoreDraft=o,this.removeDraft=r,this.isEmpty=u});
|
|
@ -1 +0,0 @@
|
|||
!function(){tinymce.create("tinymce.plugins.BBCodePlugin",{init:function(e){var t=this,n=e.getParam("bbcode_dialect","punbb").toLowerCase();e.on("beforeSetContent",function(e){e.content=t["_"+n+"_bbcode2html"](e.content)}),e.on("postProcess",function(e){e.set&&(e.content=t["_"+n+"_bbcode2html"](e.content)),e.get&&(e.content=t["_"+n+"_html2bbcode"](e.content))})},getInfo:function(){return{longname:"BBCode Plugin",author:"Ephox Corp",authorurl:"http://www.tinymce.com",infourl:"http://www.tinymce.com/wiki.php/Plugin:bbcode"}},_punbb_html2bbcode:function(e){function t(t,n){e=e.replace(t,n)}return e=tinymce.trim(e),t(/<a.*?href=\"(.*?)\".*?>(.*?)<\/a>/gi,"[url=$1]$2[/url]"),t(/<font.*?color=\"(.*?)\".*?class=\"codeStyle\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"),t(/<font.*?color=\"(.*?)\".*?class=\"quoteStyle\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"),t(/<font.*?class=\"codeStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"),t(/<font.*?class=\"quoteStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"),t(/<span style=\"color: ?(.*?);\">(.*?)<\/span>/gi,"[color=$1]$2[/color]"),t(/<font.*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[color=$1]$2[/color]"),t(/<span style=\"font-size:(.*?);\">(.*?)<\/span>/gi,"[size=$1]$2[/size]"),t(/<font>(.*?)<\/font>/gi,"$1"),t(/<img.*?src=\"(.*?)\".*?\/>/gi,"[img]$1[/img]"),t(/<span class=\"codeStyle\">(.*?)<\/span>/gi,"[code]$1[/code]"),t(/<span class=\"quoteStyle\">(.*?)<\/span>/gi,"[quote]$1[/quote]"),t(/<strong class=\"codeStyle\">(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]"),t(/<strong class=\"quoteStyle\">(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]"),t(/<em class=\"codeStyle\">(.*?)<\/em>/gi,"[code][i]$1[/i][/code]"),t(/<em class=\"quoteStyle\">(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]"),t(/<u class=\"codeStyle\">(.*?)<\/u>/gi,"[code][u]$1[/u][/code]"),t(/<u class=\"quoteStyle\">(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]"),t(/<\/(strong|b)>/gi,"[/b]"),t(/<(strong|b)>/gi,"[b]"),t(/<\/(em|i)>/gi,"[/i]"),t(/<(em|i)>/gi,"[i]"),t(/<\/u>/gi,"[/u]"),t(/<span style=\"text-decoration: ?underline;\">(.*?)<\/span>/gi,"[u]$1[/u]"),t(/<u>/gi,"[u]"),t(/<blockquote[^>]*>/gi,"[quote]"),t(/<\/blockquote>/gi,"[/quote]"),t(/<br \/>/gi,"\n"),t(/<br\/>/gi,"\n"),t(/<br>/gi,"\n"),t(/<p>/gi,""),t(/<\/p>/gi,"\n"),t(/ |\u00a0/gi," "),t(/"/gi,'"'),t(/</gi,"<"),t(/>/gi,">"),t(/&/gi,"&"),e},_punbb_bbcode2html:function(e){function t(t,n){e=e.replace(t,n)}return e=tinymce.trim(e),t(/\n/gi,"<br />"),t(/\[b\]/gi,"<strong>"),t(/\[\/b\]/gi,"</strong>"),t(/\[i\]/gi,"<em>"),t(/\[\/i\]/gi,"</em>"),t(/\[u\]/gi,"<u>"),t(/\[\/u\]/gi,"</u>"),t(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,'<a href="$1">$2</a>'),t(/\[url\](.*?)\[\/url\]/gi,'<a href="$1">$1</a>'),t(/\[img\](.*?)\[\/img\]/gi,'<img src="$1" />'),t(/\[color=(.*?)\](.*?)\[\/color\]/gi,'<font color="$1">$2</font>'),t(/\[code\](.*?)\[\/code\]/gi,'<span class="codeStyle">$1</span> '),t(/\[quote.*?\](.*?)\[\/quote\]/gi,'<span class="quoteStyle">$1</span> '),e}}),tinymce.PluginManager.add("bbcode",tinymce.plugins.BBCodePlugin)}();
|
|
@ -1 +0,0 @@
|
|||
tinymce.PluginManager.add("code",function(e){function t(){var t=e.windowManager.open({title:"Source code",body:{type:"textbox",name:"code",multiline:!0,minWidth:e.getParam("code_dialog_width",600),minHeight:e.getParam("code_dialog_height",Math.min(tinymce.DOM.getViewPort().h-200,500)),spellcheck:!1,style:"direction: ltr; text-align: left"},onSubmit:function(t){e.focus(),e.undoManager.transact(function(){e.setContent(t.data.code)}),e.selection.setCursorLocation(),e.nodeChanged()}});t.find("#code").value(e.getContent({source_view:!0}))}e.addCommand("mceCodeEditor",t),e.addButton("code",{icon:"code",tooltip:"Source code",onclick:t}),e.addMenuItem("code",{icon:"code",text:"Source code",context:"tools",onclick:t})});
|
|
@ -1,138 +0,0 @@
|
|||
/* http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript */
|
||||
/**
|
||||
* prism.js default theme for JavaScript, CSS and HTML
|
||||
* Based on dabblet (http://dabblet.com)
|
||||
* @author Lea Verou
|
||||
*/
|
||||
|
||||
code[class*="language-"],
|
||||
pre[class*="language-"] {
|
||||
color: black;
|
||||
text-shadow: 0 1px white;
|
||||
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
||||
direction: ltr;
|
||||
text-align: left;
|
||||
white-space: pre;
|
||||
word-spacing: normal;
|
||||
word-break: normal;
|
||||
word-wrap: normal;
|
||||
line-height: 1.5;
|
||||
|
||||
-moz-tab-size: 4;
|
||||
-o-tab-size: 4;
|
||||
tab-size: 4;
|
||||
|
||||
-webkit-hyphens: none;
|
||||
-moz-hyphens: none;
|
||||
-ms-hyphens: none;
|
||||
hyphens: none;
|
||||
}
|
||||
|
||||
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
|
||||
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
|
||||
text-shadow: none;
|
||||
background: #b3d4fc;
|
||||
}
|
||||
|
||||
pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
|
||||
code[class*="language-"]::selection, code[class*="language-"] ::selection {
|
||||
text-shadow: none;
|
||||
background: #b3d4fc;
|
||||
}
|
||||
|
||||
@media print {
|
||||
code[class*="language-"],
|
||||
pre[class*="language-"] {
|
||||
text-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Code blocks */
|
||||
pre[class*="language-"] {
|
||||
padding: 1em;
|
||||
margin: .5em 0;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
:not(pre) > code[class*="language-"],
|
||||
pre[class*="language-"] {
|
||||
background: #f5f2f0;
|
||||
}
|
||||
|
||||
/* Inline code */
|
||||
:not(pre) > code[class*="language-"] {
|
||||
padding: .1em;
|
||||
border-radius: .3em;
|
||||
}
|
||||
|
||||
.token.comment,
|
||||
.token.prolog,
|
||||
.token.doctype,
|
||||
.token.cdata {
|
||||
color: slategray;
|
||||
}
|
||||
|
||||
.token.punctuation {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.namespace {
|
||||
opacity: .7;
|
||||
}
|
||||
|
||||
.token.property,
|
||||
.token.tag,
|
||||
.token.boolean,
|
||||
.token.number,
|
||||
.token.constant,
|
||||
.token.symbol,
|
||||
.token.deleted {
|
||||
color: #905;
|
||||
}
|
||||
|
||||
.token.selector,
|
||||
.token.attr-name,
|
||||
.token.string,
|
||||
.token.char,
|
||||
.token.builtin,
|
||||
.token.inserted {
|
||||
color: #690;
|
||||
}
|
||||
|
||||
.token.operator,
|
||||
.token.entity,
|
||||
.token.url,
|
||||
.language-css .token.string,
|
||||
.style .token.string {
|
||||
color: #a67f59;
|
||||
background: hsla(0, 0%, 100%, .5);
|
||||
}
|
||||
|
||||
.token.atrule,
|
||||
.token.attr-value,
|
||||
.token.keyword {
|
||||
color: #07a;
|
||||
}
|
||||
|
||||
.token.function {
|
||||
color: #DD4A68;
|
||||
}
|
||||
|
||||
.token.regex,
|
||||
.token.important,
|
||||
.token.variable {
|
||||
color: #e90;
|
||||
}
|
||||
|
||||
.token.important,
|
||||
.token.bold {
|
||||
font-weight: bold;
|
||||
}
|
||||
.token.italic {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.token.entity {
|
||||
cursor: help;
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
tinymce.PluginManager.add("colorpicker",function(e){function t(t,n){function r(e){var t=new tinymce.util.Color(e),n=t.toRgb();o.fromJSON({r:n.r,g:n.g,b:n.b,hex:t.toHex().substr(1)}),i(t.toHex())}function i(e){o.find("#preview")[0].getEl().style.background=e}var o=e.windowManager.open({title:"Color",items:{type:"container",layout:"flex",direction:"row",align:"stretch",padding:5,spacing:10,items:[{type:"colorpicker",value:n,onchange:function(){var e=this.rgb();o&&(o.find("#r").value(e.r),o.find("#g").value(e.g),o.find("#b").value(e.b),o.find("#hex").value(this.value().substr(1)),i(this.value()))}},{type:"form",padding:0,labelGap:5,defaults:{type:"textbox",size:7,value:"0",flex:1,spellcheck:!1,onchange:function(){var e,t,n=o.find("colorpicker")[0];return e=this.name(),t=this.value(),"hex"==e?(t="#"+t,r(t),void n.value(t)):(t={r:o.find("#r").value(),g:o.find("#g").value(),b:o.find("#b").value()},n.value(t),void r(t))}},items:[{name:"r",label:"R",autofocus:1},{name:"g",label:"G"},{name:"b",label:"B"},{name:"hex",label:"#",value:"000000"},{name:"preview",type:"container",border:1}]}]},onSubmit:function(){t("#"+this.toJSON().hex)}});r(n)}e.settings.color_picker_callback||(e.settings.color_picker_callback=t)});
|
|
@ -1 +0,0 @@
|
|||
tinymce.PluginManager.add("contextmenu",function(e){var t,n,r=e.settings.contextmenu_never_use_native,i=function(e){return e.ctrlKey&&!r},o=function(){return tinymce.Env.mac&&tinymce.Env.webkit},a=function(){return n===!0};return e.on("mousedown",function(t){o()&&2===t.button&&!i(t)&&e.selection.isCollapsed()&&e.once("contextmenu",function(t){e.selection.placeCaretAt(t.clientX,t.clientY)})}),e.on("contextmenu",function(r){var o;if(!i(r)){if(r.preventDefault(),o=e.settings.contextmenu||"link openlink image inserttable | cell row column deletetable",t)t.show();else{var a=[];tinymce.each(o.split(/[ ,]/),function(t){var n=e.menuItems[t];"|"==t&&(n={text:t}),n&&(n.shortcut="",a.push(n))});for(var s=0;s<a.length;s++)"|"==a[s].text&&(0!==s&&s!=a.length-1||a.splice(s,1));t=new tinymce.ui.Menu({items:a,context:"contextmenu",classes:"contextmenu"}).renderTo(),t.on("hide",function(e){e.control===this&&(n=!1)}),e.on("remove",function(){t.remove(),t=null})}var l={x:r.pageX,y:r.pageY};e.inline||(l=tinymce.DOM.getPos(e.getContentAreaContainer()),l.x+=r.clientX,l.y+=r.clientY),t.moveTo(l.x,l.y),n=!0}}),{isContextMenuVisible:a}});
|
|
@ -1 +0,0 @@
|
|||
tinymce.PluginManager.add("directionality",function(e){function t(t){var n,r=e.dom,i=e.selection.getSelectedBlocks();i.length&&(n=r.getAttrib(i[0],"dir"),tinymce.each(i,function(e){r.getParent(e.parentNode,"*[dir='"+t+"']",r.getRoot())||(n!=t?r.setAttrib(e,"dir",t):r.setAttrib(e,"dir",null))}),e.nodeChanged())}function n(e){var t=[];return tinymce.each("h1 h2 h3 h4 h5 h6 div p".split(" "),function(n){t.push(n+"[dir="+e+"]")}),t.join(",")}e.addCommand("mceDirectionLTR",function(){t("ltr")}),e.addCommand("mceDirectionRTL",function(){t("rtl")}),e.addButton("ltr",{title:"Left to right",cmd:"mceDirectionLTR",stateSelector:n("ltr")}),e.addButton("rtl",{title:"Right to left",cmd:"mceDirectionRTL",stateSelector:n("rtl")})});
|
Before Width: | Height: | Size: 354 B |
Before Width: | Height: | Size: 329 B |
Before Width: | Height: | Size: 331 B |
Before Width: | Height: | Size: 342 B |
Before Width: | Height: | Size: 340 B |
Before Width: | Height: | Size: 336 B |
Before Width: | Height: | Size: 338 B |
Before Width: | Height: | Size: 343 B |
Before Width: | Height: | Size: 321 B |
Before Width: | Height: | Size: 323 B |
Before Width: | Height: | Size: 344 B |
Before Width: | Height: | Size: 338 B |
Before Width: | Height: | Size: 328 B |
Before Width: | Height: | Size: 337 B |
Before Width: | Height: | Size: 350 B |
Before Width: | Height: | Size: 336 B |
|
@ -1 +0,0 @@
|
|||
tinymce.PluginManager.add("emoticons",function(e,t){function n(){var e;return e='<table role="list" class="mce-grid">',tinymce.each(r,function(n){e+="<tr>",tinymce.each(n,function(n){var r=t+"/img/smiley-"+n+".gif";e+='<td><a href="#" data-mce-url="'+r+'" data-mce-alt="'+n+'" tabindex="-1" role="option" aria-label="'+n+'"><img src="'+r+'" style="width: 18px; height: 18px" role="presentation" /></a></td>'}),e+="</tr>"}),e+="</table>"}var r=[["cool","cry","embarassed","foot-in-mouth"],["frown","innocent","kiss","laughing"],["money-mouth","sealed","smile","surprised"],["tongue-out","undecided","wink","yell"]];e.addButton("emoticons",{type:"panelbutton",panel:{role:"application",autohide:!0,html:n,onclick:function(t){var n=e.dom.getParent(t.target,"a");n&&(e.insertContent('<img src="'+n.getAttribute("data-mce-url")+'" alt="'+n.getAttribute("data-mce-alt")+'" />'),this.hide())}},tooltip:"Emoticons"})});
|
|
@ -1,8 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<h3>Custom dialog</h3>
|
||||
Input some text: <input id="content">
|
||||
<button onclick="top.tinymce.activeEditor.windowManager.getWindows()[0].close();">Close window</button>
|
||||
</body>
|
||||
</html>
|
|
@ -1 +0,0 @@
|
|||
tinymce.PluginManager.add("example",function(e,t){e.addButton("example",{text:"My button",icon:!1,onclick:function(){e.windowManager.open({title:"Example plugin",body:[{type:"textbox",name:"title",label:"Title"}],onsubmit:function(t){e.insertContent("Title: "+t.data.title)}})}}),e.addMenuItem("example",{text:"Example plugin",context:"tools",onclick:function(){e.windowManager.open({title:"TinyMCE site",url:t+"/dialog.html",width:600,height:400,buttons:[{text:"Insert",onclick:function(){var t=e.windowManager.getWindows()[0];e.insertContent(t.getContentWindow().document.getElementById("content").value),t.close()}},{text:"Close",onclick:"close"}]})}})});
|
|
@ -1 +0,0 @@
|
|||
tinymce.PluginManager.add("example_dependency",function(){},["example"]);
|
|
@ -1 +0,0 @@
|
|||
tinymce.PluginManager.add("fullscreen",function(e){function t(){var e,t,n=window,r=document,i=r.body;return i.offsetWidth&&(e=i.offsetWidth,t=i.offsetHeight),n.innerWidth&&n.innerHeight&&(e=n.innerWidth,t=n.innerHeight),{w:e,h:t}}function n(){var e=tinymce.DOM.getViewPort();return{x:e.x,y:e.y}}function r(e){scrollTo(e.x,e.y)}function i(){function i(){f.setStyle(m,"height",t().h-(h.clientHeight-m.clientHeight))}var p,h,m,g,v=document.body,y=document.documentElement;d=!d,h=e.getContainer(),p=h.style,m=e.getContentAreaContainer().firstChild,g=m.style,d?(c=n(),o=g.width,a=g.height,g.width=g.height="100%",l=p.width,u=p.height,p.width=p.height="",f.addClass(v,"mce-fullscreen"),f.addClass(y,"mce-fullscreen"),f.addClass(h,"mce-fullscreen"),f.bind(window,"resize",i),i(),s=i):(g.width=o,g.height=a,l&&(p.width=l),u&&(p.height=u),f.removeClass(v,"mce-fullscreen"),f.removeClass(y,"mce-fullscreen"),f.removeClass(h,"mce-fullscreen"),f.unbind(window,"resize",s),r(c)),e.fire("FullscreenStateChanged",{state:d})}var o,a,s,l,u,c,d=!1,f=tinymce.DOM;if(!e.settings.inline)return e.on("init",function(){e.addShortcut("Ctrl+Shift+F","",i)}),e.on("remove",function(){s&&f.unbind(window,"resize",s)}),e.addCommand("mceFullScreen",i),e.addMenuItem("fullscreen",{text:"Fullscreen",shortcut:"Ctrl+Shift+F",selectable:!0,onClick:function(){i(),e.focus()},onPostRender:function(){var t=this;e.on("FullscreenStateChanged",function(e){t.active(e.state)})},context:"view"}),e.addButton("fullscreen",{tooltip:"Fullscreen",shortcut:"Ctrl+Shift+F",onClick:i,onPostRender:function(){var t=this;e.on("FullscreenStateChanged",function(e){t.active(e.state)})}}),{isFullscreen:function(){return d}}});
|