Deutschland United States United Kingdom
ContentLion - Open Source CMS

Blame activate.php

Rev 7 | Details | Compare with Previous | Last modification | View Log

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