function __construct()
 {
     $this->galleries = special_galleries::GetData();
     $cmd = common::GetCommand();
     switch ($cmd) {
         case 'newdrag':
             $this->NewDrag();
             return;
     }
     $this->EditGalleries();
 }
 /**
  * Handle the renaming of galleries for admin_menu_tools.php
  *
  * @static
  *
  */
 function RenamedGallery($old_title, $new_title)
 {
     $galleries = special_galleries::GetData();
     if (!isset($galleries[$old_title])) {
         return;
     }
     if (gpFiles::ArrayInsert($old_title, $new_title, $galleries[$old_title], $galleries, 0, 1)) {
         special_galleries::SaveIndex($galleries);
     }
 }