if (isset($lock["stability-flags"][$name])) { $sfr[$name] = getflag($lock["stability-flags"][$name]); } } $require = array_merge($require, mkdep($sfr)); } // same for platform-dev requirements, but they go into a require-dev section later, so only installs with --dev pull those in if ($rootDev["require"]) { $lock["packages-dev"][] = $rootDev; $requireDev = [$rootDev["name"] => $rootDev["version"]]; $sfr = []; // for any root platform require-dev with implicit or explicit stability flags we must create a dummy require-dev for that flag in the new root // the reason is that the actual requiring of the package version happens in the "composer.json/composer.lock" metapackage, but stability flags that allow e.g. an RC install are ignored there - they only take effect in the root "require-dev" section so that dependencies don't push unstable stuff onto users foreach ($lock["platform-dev"] as $name => $version) { if (isset($lock["stability-flags"][$name])) { $sfr[$name] = getflag($lock["stability-flags"][$name]); } } $requireDev = array_merge($requireDev, mkdep($sfr)); } // collect platform requirements from regular packages in lock file foreach ($lock["packages"] as $package) { if (mkmetas($package, $metapaks, $have_runtime_req)) { $require[$package["name"]] = $package["version"]; } } // collect platform requirements from dev packages in lock file foreach ($lock["packages-dev"] as $package) { if (mkmetas($package, $metapaks, $have_dev_runtime_req)) { $requireDev[$package["name"]] = $package["version"]; }
$template->assign_block_vars("head.flags", array('FLAG' => getflag(1, "god_kodtaz_access"), 'TEXT' => $language['FLAG_GoD_KT_4'])); //Request Ikkinz Raids 1-3 $template->assign_block_vars("head", array('ID' => 16, 'NAME' => $language['FLAG_GoD_Ikky_R3'])); $template->assign_block_vars("head.flags", array('FLAG' => getflag(2, "ikky"), 'TEXT' => $language['FLAG_GoD_Ikky_2'])); $template->assign_block_vars("head.flags", array('FLAG' => getflag(3, "ikky"), 'TEXT' => $language['FLAG_GoD_Ikky_3'])); $template->assign_block_vars("head.flags", array('FLAG' => getflag(4, "ikky"), 'TEXT' => $language['FLAG_GoD_Ikky_4'])); $template->assign_block_vars("head.flags", array('FLAG' => getflag(5, "ikky"), 'TEXT' => $language['FLAG_GoD_Ikky_5'])); $template->assign_block_vars("head.flags", array('FLAG' => getflag(6, "ikky"), 'TEXT' => $language['FLAG_GoD_Ikky_6'])); $template->assign_block_vars("head.flags", array('FLAG' => getflag(7, "ikky"), 'TEXT' => $language['FLAG_GoD_Ikky_7'])); $template->assign_block_vars("head.flags", array('FLAG' => getflag(8, "ikky"), 'TEXT' => $language['FLAG_GoD_Ikky_8'])); $template->assign_block_vars("head.flags", array('FLAG' => getflag(9, "ikky"), 'TEXT' => $language['FLAG_GoD_Ikky_9'])); $template->assign_block_vars("head.flags", array('FLAG' => getflag(10, "ikky"), 'TEXT' => $language['FLAG_GoD_Ikky_10'])); $template->assign_block_vars("head.flags", array('FLAG' => getflag(11, "ikky"), 'TEXT' => $language['FLAG_GoD_Ikky_11'])); $template->assign_block_vars("head.flags", array('FLAG' => getflag(12, "ikky"), 'TEXT' => $language['FLAG_GoD_Ikky_12'])); //request Ikkinz Raid 4 $template->assign_block_vars("head", array('ID' => 17, 'NAME' => $language['FLAG_GoD_Ikky_R4'])); $template->assign_block_vars("head.flags", array('FLAG' => getflag(13, "ikky"), 'TEXT' => $language['FLAG_GoD_Ikky_13'])); $template->assign_block_vars("head.flags", array('FLAG' => getflag(14, "ikky"), 'TEXT' => $language['FLAG_GoD_Ikky_14'])); //Qvic $template->assign_block_vars("head", array('ID' => 18, 'NAME' => $language['FLAG_GoD_Qvic_1'])); $template->assign_block_vars("head.flags", array('FLAG' => getflag(1, "god_qvic_access"), 'TEXT' => $language['FLAG_GoD_Qvic_2'])); //Txevu $template->assign_block_vars("head", array('ID' => 19, 'NAME' => $language['FLAG_GoD_Txevu_1'])); $template->assign_block_vars("head.flags", array('FLAG' => getflag(1, "god_txevu_access"), 'TEXT' => $language['FLAG_GoD_Txevu_2'])); $template->pparse('flags'); $template->destroy; //added to monitor database performance 9/28/2014 if (defined('DB_PERFORMANCE')) { print dbp_dump_buffer('query'); } include "include/footer.php";
function syncFlag() { if (isHasNew() == '1') { updateOldFlag(getflag()); } }