Deutschland United States United Kingdom
ContentLion - Open Source CMS

activate.php

Rev 2 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log

<?PHP
  $dirpath = Settings::getInstance()->get("root")."content/articles";
  if(!file_exists($dirpath."/admin/plugins/skinwizard")){
    FileServer::createFolder($dirpath,"admin/plugins/skinwizard");
  }
  Page::create("admin/plugins/skinwizard/base","Plugin_SkinWizard_BaseForm","{LANG:PLUGIN_SKINWIZARD_CHOOSE_BASE}");
  Page::create("admin/plugins/skinwizard/colors","Plugin_SkinWizard_ColorForm","{LANG:PLUGIN_SKINWIZARD_CHOOSE_COLOR}");
  Page::create("admin/plugins/skinwizard/font","Plugin_SkinWizard_FontForm","{LANG:PLUGIN_SKINWIZARD_CHOOSE_FONT}");
  Page::create("admin/plugins/skinwizard/size","Plugin_SkinWizard_SizeForm","{LANG:PLUGIN_SKINWIZARD_CHOOSE_SIZES}");
  Page::create("admin/plugins/skinwizard/generator","Plugin_SkinWizard_GeneratingForm","{LANG:PLUGIN_SKINWIZARD_SAVE}");
  $newSkinEntry        = new MenuEntry();
  $newSkinEntry->menu  = 8;
  $newSkinEntry->title = "Skin";
  $url = UrlRewriting::GetUrlByAlias("admin/plugins/skinwizard/base","blank=true");
  $newSkinEntry->href  = "javascript:showIFrameDialog('{LANG:PLUGIN_SKINWIZARD_NEW_SKIN}',660,575,'".$url."',true);";
  $newSkinEntry->type  = 1;
  $newSkinEntry->save();
?>