Пример #1
0
		<script type="text/javascript" src="../clientscript/vbulletin_stylegeneratorcolor.js?v=' . SIMPLE_VERSION . '"></script>
		<script type="text/javascript" src="../clientscript/vbulletin_stylegenerator.js?v=' . SIMPLE_VERSION . '"></script>';
}

if ($_REQUEST['do'] != 'download')
{
	print_cp_header($vbphrase['style_manager'], iif($_REQUEST['do'] == 'files', 'js_fetch_style_title()'), $stylegeneratorjs);
	?><script type="text/javascript" src="../clientscript/vbulletin_templatemgr.js?v=<?php echo SIMPLE_VERSION; ?>"></script><?php
}

// #############################################################################
// find custom templates that need updating

if ($_REQUEST['do'] == 'findupdates')
{
	$customcache = fetch_changed_templates();
	if (empty($customcache))
	{
		print_stop_message('all_templates_are_up_to_date');
	}

	cache_styles();

	print_form_header('template', 'dismissmerge');
	print_table_header($vbphrase['updated_default_templates']);
	print_description_row('<span class="smallfont">' .
		construct_phrase($vbphrase['updated_default_templates_desc'],
		$vbulletin->options['templateversion']) . '</span>');
	print_table_break(' ');

	$have_dismissible = false;
Пример #2
0
 /**
  * Find custom templates that need updating
  *
  * @return array Templates that need updating.
  */
 public function findUpdates()
 {
     $this->checkHasAdminPermission('canadmintemplates');
     require_once DIR . '/includes/adminfunctions.php';
     require_once DIR . '/includes/adminfunctions_template.php';
     $customcache = fetch_changed_templates();
     // TODO: Product API
     $full_product_info = fetch_product_list(true);
     $stylecache = vB_Library::instance('Style')->fetchStyles(false, false);
     $return = array();
     foreach ($stylecache as $styleid => $style) {
         if (is_array($customcache["{$styleid}"])) {
             $return[] = $customcache["{$styleid}"];
         }
     }
     return $return;
 }