<?php

$trader_personal_scheme = array(
	0 => 'Do not Use',
	1 => 'Use Skimming',
	2 => 'Use Trade Scheme'
);

$env_vars = array(
	'HTTP_REFERER' => 'Referer',
	'HTTP_ACCEPT_LANGUAGE' => 'Language',
	'GEOIP_COUNTRY_CODE' => 'modGeo Country'
);

$yes_no_options = array (
	1 => "Yes",
	0 => "No"
);


$trade_table_cols = array (
	'trade_checkbox',
	'trade_id',
	'trade_ops',
	'trade_domain',
	'This Hour' => array (
		 'hourly_row',
		 'hourly_uni',
		 'hourly_out',
		 'Clicks' => array (
		 	'hourly_clicks_url',	 	
		 	'hourly_clicks_trade',	 	
		 	'hourly_clicks_total',
		 	'hourly_quality_url',
		 	'hourly_quality_trade',
		 	'hourly_quality_total',
		 ),
		 'Prod, %' => array (
		 	'hourly_prod_trade',
		 	'hourly_prod_total'
		 ),

		 //'N.Click' => array (
		 	'hourly_next_click',
		 //),

		 'Uservars' => array (
		 	'hourly_uservars_count',
		 	'hourly_uservars_dis'
		 )
	),
	'Last 24 Hours' => array (
		 'daily_raw',
		 'daily_uni',
		 'daily_out',
		 'Clicks' => array (
		 	'daily_clicks_url',	 	
		 	'daily_clicks_trade',
		 	'daily_clicks_total',
		 	'daily_quality_trade',
		 	'daily_quality_url',
		 	'daily_quality_total',
		 ),
		 'Prod, %' => array (
		 	'daily_prod_trade',
		 	'daily_prod_total',
		 ),

		 //'N.Click' => array (
		 	'daily_next_click',
		 //),

		 'Uservars' => array (
		 	'daily_uservars_count',
		 	'daily_uservars_dis'
		 )
	),

	'Ratio' => array (
			'trade_ratio',
			'trade_limit_ratio',
			'trade_actual_ratio'
	),

	'Forces' => array (
			'trade_hourly_forces',
			'trade_fast_forces',
			'trade_boost_forces',
	),

   	'Q. Stats' => array (
    	'prod_avg_history',
    	'header_check',
		'uni2raw',
	    'last_click',
	    'traffic_quality_detailed', 
	    'traffic_clicks_quality_detailed', 
	    'traffic_out_quality_detailed', 
		'user_field',
		'bookmarks',
		'trade_top_position',
		'trade_plug_intersect',
    ), 

   	'Other Stats' => array (
		'trade_priority',
		'trade_skim',
		'trade_worth',
    	'exout',
		'alexa_rank', 
		'trade_owed',
		'trade_proxy',
		'trade_cheat',
		'hidden_links',
	),

	'trade_status'
);


$trade_fields = array (
	 'trade_checkbox' => array (
	 	'show_name' => 'Trader Checkbox',
	 	'name' =>'#', //checkbox
	 	'rows' => 3,
	 	'unsortable' => true,
	 	),
	 'trade_id' => array (
	 	'show_name' => 'Trader ID',
	 	'name' =>'#', // trader id
	 	'rows' => 3,
	 	),

	 'trade_ops' => array (
	 	'show_name' => 'Operations',
	 	'rows' => 3,
	 	'name' =>'Ops',
	 	'unsortable' => 1
	 	),

	 'trade_domain' => array (
	 	'show_name' => 'Domain',
	 	'rows' => 3,
	 	'name' =>'Domain'
	 	),


// hourly
	 'hourly_row' => array ( //r
	 	'rows' => 2,
	 	'name' =>'R.In.',
	 	'show_name' => 'Hourly Raw',
	 	),

	 'hourly_uni' => array ( //u
	 	'rows' => 2,
	 	'name' => 'U.In.',
	 	'show_name' => 'Hourly Unique',
	 	),

	 'hourly_out' => array ( //o
	 	'rows' => 2,
	 	'name' => 'Out',
	 	'show_name' => 'Hourly Out',
	 	),

	 'hourly_clicks_total' => array (//b
	 	'rows' => 2,
	 	'name' => 'Total', // click total
	 	'show_name' => 'Hourly Clicks Total',
	 	),

	 'hourly_clicks_url' => array ( //c
	 	'rows' => 2,
	 	'name' => 'Url', // click url
	 	'show_name' => 'Hourly Clicks Url',
	 	),

	 'hourly_clicks_trade' => array ( //t
	 	'rows' => 2,
	 	'name' => 'Trd', // click trade
	 	'show_name' => 'Hourly Clicks Trade',
	 	),

	 'hourly_quality_trade' => array ( //i
	 	'name' => 'T.Qty', // quality
	 	'show_name' => 'Hourly Quality Trade',
	 	),

	 'hourly_quality_url' => array ( 
	 	'name' => 'U.Qty', // quality
	 	'show_name' => 'Hourly Quality Url',
	 	),

	 'hourly_quality_total' => array ( 
	 	'name' => 'Qty', // quality
	 	'show_name' => 'Hourly Quality Total',
	 	),

	 'hourly_prod_trade' => array ( //q
	 	'name' => 'Trd',
	 	'show_name' => 'Hourly Trade Prod',
	 	),

	 'hourly_prod_total' => array ( //p
	 	'name' => 'Total',
	 	'show_name' => 'Hourly Total Prod',
	 	),

	 'hourly_next_click' => array ( //l
	 	'name' => 'N.cl',
	 	'show_name' => 'Hourly Next Click %',
	 	),

	 'hourly_uservars_count' => array ( //v
	 	'name' => 'Cnt&nbsp;%', // uservars count hour
	 	'show_name' => 'Hourly UserVar Count',
	 	),
	
	 'hourly_uservars_dis' => array ( //x
	 	'name' => 'Dis&nbsp;%',  // uservars dis hour
	 	'show_name' => 'Hourly UserVar Diss',
	 	),


	
// Daily
	 'daily_raw' => array ( //R
	 	'name' =>'R.In.',
	 	'show_name' => 'Daily Raws',
	 	),

	 'daily_uni' => array ( // U
	 	'name' => 'U.In.',
	 	'show_name' => 'Daily Uniques',
	 	),

	 'daily_out' => array ( //O
	 	'name' => 'Out',
	 	'show_name' => 'Daily Out',
	 	),

	 'daily_clicks_total' => array ( //B
	 	'name' => 'Total', // clicks total
	 	'show_name' => 'Daily Clicks Total',
	 	),

	 'daily_clicks_url' => array ( //C
	 	'name' => 'Url', // clicks url
	 	'show_name' => 'Daily Clicks Url',
	 	),

	 'daily_clicks_trade' => array ( 
	 	'name' => 'Trd', // clicks url
	 	'show_name' => 'Daily Clicks Trade',
	 	),

	 'daily_quality_url' => array ( 
	 	'show_name' => 'Daily Quality Url',
	 	'name' => 'U. Qty' // quality
	 	),

	 'daily_quality_trade' => array ( 
	 	'show_name' => 'Daily Quality Trade',
	 	'name' => 'T. Qty' // quality
	 	),

	 'daily_quality_total' => array ( //I
	 	'show_name' => 'Daily Quality Total',
	 	'name' => 'Qty' // quality
	 	),


	 'daily_prod_total' => array ( //P
	 	'show_name' => 'Daily Prod Total',
	 	'name' => 'Total' // prod
	 	),

	 'daily_prod_trade' => array ( //Q
	 	'show_name' => 'Daily Prod Trade',
	 	'name' => 'Trd' // prod trade
	 	),

	 'daily_next_click' => array ( //L
	 	'show_name' => 'Daily Next Click',
	 	'name' => 'N.cl',
	 	),

	 'daily_uservars_count' => array ( //V
	 	'show_name' => 'Daily UserVar Count',
	 	'name' => 'Cnt&nbsp;%', // uservars count day
	 	),

	 'daily_uservars_dis' => array ( //X
	 	'show_name' => 'Daily UserVar Dis',
	 	'name' => 'Dis&nbsp;%',  // uservars dis day
	 	),
	

	'trade_ratio' => array (//e
	 	'show_name' => 'Ratio',
		'name' => 'Set'
		),

	'trade_limit_ratio' => array ( //y
	 	'show_name' => 'Limit Ratio',
		'name' => 'Lim'
		),

	'trade_actual_ratio' => array ( //Y
	 	'show_name' => 'Actual Ratio',
		'name' => 'Act'
		),


	'trade_hourly_forces' => array ( // h
	 	'show_name' => 'Hourly Forces',
		'name' => 'HF'
		),

	'trade_fast_forces' => array ( //H
	 	'show_name' => 'Fast Forces',
		'name' => 'FF'
		),

	'trade_boost_forces' => array ( 
	 	'show_name' => 'Boost Forces',
		'name' => 'BF'
		),

    'prod_avg_history' => array ( //k
	 	'show_name' => 'Average Prod (All history)',
		'name' => 'Avg. Prod'
		),

    'header_check' => array ( //k
	 	'show_name' => 'Header Check',
		'name' => 'Header%'
		),

    'uni2raw' => array ( //G
	 	'show_name' => 'Uni / Raws',
		'name' => 'U/R'
		),

    'last_click' => array ( //n
	 	'show_name' => 'Last Click',
		'name' => 'L.Click'
		),

	 
	'traffic_quality_detailed' => array ( //M
	 	'show_name' => 'Detailed Traffic Quality (IN)',
	 	'name' => 'Quality.IN' 
	 	),

	'traffic_clicks_quality_detailed' => array ( 
	 	'show_name' => 'Detailed Traffic Quality (Clicks)',
	 	'name' => 'Quality.CLK'
	 	),

	'traffic_out_quality_detailed' => array ( 
	 	'show_name' => 'Detailed Traffic Quality (Out)',
	 	'name' => 'Quality.OUT'
	 	),


	'user_field' => array ( //3
	 	'show_name' => 'User Field',
		'name' => $settings['user_field_name'] //'U.Field'
		),


    'bookmarks' => array ( //F
	 	'show_name' => 'BookMarks',
		'name' => 'BM'
		),


	'trade_top_position' => array ( // K
		'show_name' => 'TopPos',
		'name' => 'TopPos'
		),
    
	'trade_worth' => array ( //1
	 	'show_name' => 'Trade Worth',
		'name' => 'T.Worth'
		),

	'trade_skim' => array ( //1
	 	'show_name' => 'Trade Real Skim',
		'name' => 'T.Skim'
		),

    'exout' => array ( //E
	 	'show_name' => 'Get Exout',
		'name' => 'Exout'
		),

	'alexa_rank' => array ( //m
	 	'name' => 'Alexa', 
	 	'show_name' => 'Alexa Traffic Rank',
	 	),

	'trade_owed' => array ( // W
	 	'show_name' => 'Owed',
		'name' => 'Owed'
		),

	'trade_proxy' => array ( // w
	 	'show_name' => 'Proxy %',
		'name' => 'Prx%'
		),

	'trade_cheat' => array ( //S
	 	'show_name' => 'Cheat Signs',
		'name' => 'Cheat<br>Signs %'
		),

	'trade_plug_intersect' => array ( //S
	 	'show_name' => 'Trade Plugs Intersection',
		'name' => 'Plug<br>Intersec %'
		),

	'trade_priority' => array ( //f
	 	'show_name' => 'Priority',
		'name' => 'Priority'
		),

	'hidden_links' => array ( // J
	 	'show_name' => 'Hidden Links',
		'name' => 'H.links'
		),

	'trade_status' => array ( //s
	 	'show_name' => 'Trade Status',
		//'name' => 'Status'
		'name' => '<div class="top_level"><span class="top_l_link" id="exp_table">&laquo;&raquo;</span>Status</div>'
		),

);


$admin_options = array(

	'2' => 'Show Trader Info popup',

	'g' => 'Divide Traders by groups in GA',

	'4' => 'Show ICQ preset messages',
	'Z' => 'Mark trader with yellow color on warnings [trade screen]',

	'5' => 'Show Trader\'s nick',
	'6' => 'Hide Inactive traders',

	'7' => 'Move Trade table headers on Mouse Wait',
	'8' => 'Save Last Sort Order (Trade Screen) ',

	'j' => 'Switch OFF AJAX features in Trade Screen',
	'a' => 'No Tabs in Trader Edit Form',
	'b' => 'Separate 0-size trades in Trade screen',
	'c' => 'Separate Feed trades in Menu',

	'd' => 'Trade: column color priority',
	'e' => 'Trade: dont count Noref in total stats',
	// g taken
	'f' => 'Trade: dont count Spiders in total stats',

);



$trade_type_options = array(
	1 => "Normal",
	2 => "Capped",
	3 => "Real Prod",
	4 => "TD Type"
);

$own_formulas = array(
	'1' => 'round(HITS * RATIO/100 * PROD_TOTAL) - OUT', // normal
	'2' => 'round(HITS * RATIO/100) - OUT',              // capped
	'3' => 'round(HITS * RATIO/100 * PROD_TRADE) - OUT;', // real
	'4' => 'round( ((HITS+CLICK_TRADE)/2) * RATIO/100 ) - OUT;' // TD Type
);



	$trade_intype_options = array(
		0 => "Unique",
		1 => "Raw",
		2 => "Average"
	);

	$trade_status_options = array(
		0 => "No",
		1 => "Yes",
		2 => "No, till Trade Activation System",
		3 => "No, till Trade Start Limit",
		4 => "Yes, but w/o Forces",
		5 => "Trash",
		// 6 => "Need Approve",
		7 => "Feed trade, skip in Rotation",
	);

	$site_types = array(
		'CJ' => "CJ",
		'top' => "Toplist",
		'tube' => "Tube",
	);


	$gallery_content_type = array(
		0 => "Pics",
		1 => "Movs",
		2 => "Flash",
		3 => "Mixed"
	);

	$gallery_status = array(
		0 => "Pool",
		1 => "Active",
		2 => "Old",
		3 => "Trash",
		4 => "To Grab",
		5 => "Preload",
		6 => "Grab Error",
		7 => "Processing",
		8 => "Manual Grab",
		9 => "Banned",
		10 => "Offline",
		11 => 'Wait. Custom Gallery',
		12 => 'Marked for Deletion',
		14 => 'Marked for Regrab',
	);

	$force_type = array(
		0 => "Normal",
		1 => "Soft",
		2 => "Special"
	);


	$checker_options = array(
		0 => 'Just log',
		1 => 'Delete',
		5 => 'Stop trade',
		10 => 'Set ratio to'
	);

   $shift_actions = array(
   		'1' => 'Delete not popular/add from Pool',
   		'2' => 'Not popular to Old/add from Pool',
   		'3' => 'Not popular to Pool/add from Pool',
   		'4' => 'Move not popular objects to other group/add from Pool',
   		'5' => 'Move most popular objects to other group/add from Pool',
   		'6' => 'Just Add from Pool',
   		'7' => 'Just Delete not popular',
   );


   $description_actions = array(
		"0" =>	'0. None',
		"1" =>	'1. Upper first and lower other',
		"2" =>	'2. Lower all characters',
		"3" =>	'3. Upper all characters',
		"4" =>	'4. Upper first character of each word'
   );

   $logo_position_options = array(
   		1 => 'Left Top',
   		2 => 'Left Bottom',
   		3 => 'Right Top',
   		4 => 'Right Bottom',
   		5 => 'Center',
   );


   $content_statuses = array(
   	'to_grab' => 'To Grab',
   	'processing' => 'Processing',
   	'error' => 'Error',
   	'to_review' => 'To Review',
   	'active' => 'Active',
   	'inactive' => 'Inactive',
   	'scheduled' => 'Scheduled',
   );

   $grab_options_abbreviation = array(
	    'cp_th' => 'copy_thumb',
    	'cnt' => 'thumb_count',
    	'gt' => 'grab_type',

		'a' => 'all_active',
		'p' => 'all_pool',
		'pr' => 'preview',

	    'cp_t' => 'copy_type',

		'ucp' => 'use_crop_profile',
        'rsz' => 'resize',

    	'e' => 'embed',
	    'e_cp' => 'extra_crop_profile',
    	'ctl' => 'content_type_limit',
    	'ctf' => 'content_type_force',

		'im' => 'image',
		'mv' => 'movie',
		'fl' => 'flash',

		'pvf' => 'parse_video_files',
		'pvfe' => 'parse_video_files_end',
		'df' => 'deep_fetch',

   );


$main_menu = array(
 'main' => 'Home',
 'trade' => 'Trade',
 'traffic_rules' => 'Traffic Rules',
 'cheat' => 'Cheat Lookup',
// 'galleries' => 'Galleries',
 'rotation' => 'Rotation',
// 'link_exchange' => 'HardLinks',
 'settings' => 'Settings',
 'maintainance' => 'Maintainance',
 'ga' => 'Global Admin',
);

$main_menu['help'] = 'Help';
$main_menu['time'] = '<span id="time_div"></span>';

/*
$menu['galleries'] = array(
 'gal_sponsors' => 'Paysites',
 'gal_galleries' => 'Galleries',
 'gal_grabber' => 'Grabber',
 'gal_export' => 'Export',
 'gal_comments' => 'Comments',
 'gal_servers' => 'Servers',
 'gal_specials' => 'Specials',
 'gal_settings' => 'Settings',
 'gal_templates' => 'Templates',
 '' => 'Old Galleries',
);
*/

$menu['link_exchange'] = array(
 '' => 'Main',
 'publish_top' => 'Publish Toplist',
 'top_positions' => 'Check Top Position'
);

$menu['main'] = array(
 '' => 'Main',
 'script_messages' => 'Script Messages',
 'publish_top' => 'Publish Toplist',
// 'top_positions' => 'TopList Positions'
);

$menu['trade'] = array(
 '' => 'List Trades',
 'add_trade' => 'Add Trade',
 'stats' => 'Statistics',
 'groups' => 'Groups',
 'timed_forces' => 'Timed forces',
 'mass_edit' => 'Mass Edit',
 'mass_mail' => 'Mass Mail',
 'history' => 'History',
 'stats_graph' => 'Traffic',
 'trash' => 'Trash',
 'timed_forces' => 'Timed forces'
);

if ($operation == 'cheat' and !$sub)  $sub = 'ac_settings';
$menu['cheat'] = array(
 'analize' => 'Links Diff',
// 'analize2' => 'Rare Links',
 'analize3' => 'Analize 3',
 'active_ips' => 'Active IPs',
 'smoothness' => 'Smoothness',
 'ip2lng' => 'IP2Lng',
 'reports' => 'Reports',
 'ac_settings' => 'Auto Anticheat',
// 'checker_log' => 'Checker log',
// 'checker_settings' => 'Checker Settings'
);

if ($operation == 'traffic_rules' and !$sub)  $sub = 'inrules';
$menu['traffic_rules'] = array(
 'inrules' => 'Incoming',
 'outrules' => 'Outgoing',
 'traffic_sell' => 'Traffic Sell',
 'dynamic_skim' => 'Dynamic Skim'
);

if ($operation == 'settings' and !$sub)  $sub = 'cj_settings';
$menu['settings'] = array(
 'pages' => 'CJ Pages',
 'toplist' => 'Toplist',
 'templates' => 'Templates',
 //'admin_colors' => 'Colors',
 'admin_layouts' => 'Layouts',
 'config_files' => 'Config Files',
 'password' => 'Password',
 'cj_settings' => 'CJ Settings',
 'new_trade' => 'New trade',
 'trade_activation' => 'Trade Activation',
 'out_settings' => 'Out settings',
 'blacklist' => 'Blacklist',
 'quality_settings' => 'Quality settings'
);

$menu['config_files'] = array(
 '' => 'Config Files',
 'galleries' => 'Easy Galleries',
);


//if ($sub == 'bl_list' and !$subsub)  $subsub = 'blacklist';
/*
$menu['bl_list'] = array(
 'banned_ips' => 'Banned IPs',
 'blacklist' => 'CJ Blacklist'
);
*/

if ($operation == 'maintainance' and !$sub)  $sub = 'logs';
$menu['maintainance'] = array(
 'logs' => 'Logs',
 'backup_mysql' => 'Mysql Backup',
 'db_repair' => 'Optimize DB',
 //'backup' => 'Old Backup',
 'import_trades' => 'Import Traders',
 'export_trades' => 'Export Traders',
 'admin_access_log' => 'Admin Access Log',
 'reset_cj' => 'Reset CJ',
);

if ($sub == 'stats' and !$subsub)  $subsub = 'stats_links';
$menu['stats'] = array(
 'stats_links' => 'Links',
 'stats_geoip' => 'GeoIP',
 'stats_ips' => 'Rep. Ips',
 'stats_quality' => 'Quality',
 'stats_refs' => 'Referers',
 'stats_lng' => 'Language',
 'stats_browser' => 'Browsers',
 'stats_bookmark' => 'Bookmarks',
 'stats_traffic' => 'Traffic',
 'stats_page_track' => 'Page Track',
);

if ($operation == 'rotation' and !$sub)  $sub = 'rot_settings';
$menu['rotation'] = array(
 'rot_sponsors' => 'Sponsors',
 'rot_groups' => 'Groups',
 'rot_models' => 'Models',
 'rot_pages' => 'Pages',
 'rot_tube' => 'Tube (CMS Pages)',
// 'rot_galleries' => 'Custom Galleries',
 'rot_stats' => 'Cell K',
 'rot_list' => 'List Thumbs',
 'rot_preload' => 'Preload V1',
 'rot_preload2' => 'V2',
 'rot_tags' => 'Tags',
 //'rot_graber' => 'Grabber',
 'rot_import' => 'Import',
 'rot_import_sets' => 'Import Sets',
 'rot_export' => 'Export',
 'rot_settings' => 'Settings',
 'rot_make' => 'Specials',
);

/*
if ($operation == 'rotation' and $sub == 'rot_galleries' and !$subsub)  $subsub = 'rot_gal_graber';
$menu['rot_galleries'] = array(
 'rot_gal_graber' => 'Graber',
 'rot_gal_templates' => 'Templates',
);
*/

$menu['rot_tube'] = array(
 'rot_cms' => 'Templates',
 'rot_cms_custom_vars' => 'Tpl Custom Vars',
 'rot_users' => 'Users',
 'rot_comments' => 'Comments',
 'reports' => 'Reports',
 'rot_checker' => 'Gallery Checker',
 'rot_tube_settings' => 'Tube Settings',
 'rot_user_edit' => '',
);


$menu['rot_settings'] = array(
 '' => 'Settings',
 'rot_replacements' => 'Import Replacements',
 'rot_crop_profiles' => 'Crop Profiles',
 'rot_servers' => 'Content Servers',
 'galleries' => 'Old Style Galleries'
// 'banned_urls' => 'Grab. Banned URLs',
// 'banned_words' => 'Grab. Banned Words'
);


$menu['rot_graber'] = array(
 '' => 'Grab Galleries',
// 'rot_manual_grab' => 'Manual Graber',
 'rot_graber_queue' => 'Graber Queue'
);


$menu['ga'] = array(
 'ga_niches' => 'Niches',
 'ga_sites' => 'Sites',
 '' => 'Stats',
// '' => 'Trades',
// 'ga_alexa' => 'Alexa',
// 'ga_settings' => 'Settings',
);

$menu['ga_sites'] = array(
 '' => 'Sites',
 'ga_site_edit' => '',
 'ga_site_edit&action_type=add_new' => 'Add Site',
);

$menu_permissions = array(
	'ac_settings' => array('rep_in_ips', 'rep_out_ips'),
	'trade' => array('trade_edit', 'trade_delete', 'trade_stats', 'trade_forces', 'trader_info', 'ff', 'hf', 'bf', 'limitratio', 
	'ratio', 'status', 'createSignupTicket', 'copySiteInfo', 'copyFTI', 'copy_trade_stats', 'new', 'save_trader_color',
	'icq_message', 'group_rename', 'graph', 'autoupdate', 'trade_plugs', 'trade_niche_stats', 'delete_scj_news'),
	'add_trade' => array('trader_exists'),
	'stats' => array('trade_stats'),
	'password' => array('password_edit'),
	'gal_galleries' => array('gal_gallery_edit', 'gal_gallery_save', 'rot_edit_crop_profile', 'rot_easyedit_crop_profile', 'gal_specials', 'rot_massedit', 
	'gal_templates', 'gal_massedit', 'synomize_text', 'gal_gallery_crop'),
    'rot_graber' => array('rot_manual_grab', 'rot_ban_gallery', 'rot_manual_grab'),
	'gal_servers' => array('gal_server_edit'),
	'gal_sponsors' => array('gal_sponsor_edit'),
	'ga_sites' => array('ga_site_edit'),
	'ga' => array('ga_traders', 'ga_add_trade', 'ga_delete_niche', 'google_pr'),
	'reports' => array('reports_view'),
	'rot_list' => array('rot_view_thumbs', 'rot_view_celldata', 'rot_view_shows', 'set_cell_koef', 'set_cell_skim', 'test_ftp', 
	'create_thumb', 'create_video_thumb', 'rot_recrop', 'get_sponsor_rss', 'rot_edit_crop_profile', 'rot_edit', 
	'rot_manual_grab', 'rot_sponsor_edit', 'rot_easyedit_crop_profile', 'rot_massedit', 'gal_gallery_edit', 'rot_servers', 'rot_server_edit', 
	'link_mysql', 'gal_gallery_crop', 'import_set_parse', 'rot_replacements', 'rot_ban_gallery', 'tube_redirect_check_refs'),
    'rot_tube' => array('rot_cms', 'rot_users', 'rot_users_edit', 'rot_comments'),
	'history' => array('history_details', 'h_details_domain'),
    'traffic_rules' => array('incoming_rules', 'outgoing_rules', 'dynamic_skim'),
    'incoming_rules' => array('incoming_rules'),
    'outgoing_rules' => array('outgoing_rules'),
    'dynamic_skim' => array('dynamic_skim'),
    'script_messages' => array('script_messages_new'),
    
    
    'cheat' => array('rep_in_ips', 'rep_out_ips')
);

$rot_settings_personal_fields = array('rotate_interval', 'ctr_recalculation_period', 'new_thumbs_shows', 'new_place_percent', 
'test_positions_start', 'skip_cell_ctr_calculation', 'skip_cell_placement', 'allow_dupes', 'new_rotation_fast_ctr', 'new_thumb_select_method', 
'test_thumbs_select_method', 'alternative_thumb_hosts', 'replace_special', 'encode_urls');


$import_fields = array(
'skip' => 'Skip', 
'url' => 'URL', 
'desc' => 'Description', 
'desc_strip_tags' => 'Description (Strip tags)', 
'thumb' => 'Thumb', 
'parse_thumb' => 'Parse Thumb', 
//'extra_thumb' => 'Extra Thumb', 
'tags' => 'Tags', 
'category' => 'Group (Category)', 
'duration' => 'Duration', 
'embed_code' => 'Embed Code', 
'alt' => 'Alt (Title)', 
//'type' => 'Type', 
//'count' => 'Img Count', 
'date' => 'Date',
'flv_url' => 'FLV URL',
'flv_size' => 'FLV Size (WxH format)',
'flv_size_x' => 'FLV Widht',
'flv_size_y' => 'FLV Height',
'flv_thumb_url' => 'FLV Preview Thumb',
'custom_var1' => 'Custom Var1',
'custom_var2' => 'Custom Var2',
'custom_var3' => 'Custom Var3',
'sponsor_site' => 'Sponsor Site',
'gallery_slug' => 'Gallery Slug',
'model' => 'Model',
'model_autocreate' => 'Model (Autocreate)',
//'gallery_text' => 'Gallery Text',
//'keyword1' => 'Gal Key1', 
//'keyword2' => 'Gal Key2', 
//'keyword3' => 'Gal Key3', 
);



$galleries_ext_fields = array('alt', 'description', 'custom_var1', 'custom_var2', 'custom_var3');

