Example #1
0
 public static function fully_loaded_admin()
 {
     /*
      * Check user has the correct permissions to deploy the software 
      */
     if (!current_user_can('manage_options')) {
         return;
     }
     global $gfpdfe_data;
     /*
      * Don't run initialiser if we cannot...
      */
     if ($gfpdfe_data->allow_initilisation === false) {
         /*
          * Prompt user about a server configuration problem
          */
         add_action($gfpdfe_data->notice_type, array("GFPDF_Notices", "gf_pdf_server_problem_detected"));
         return false;
     }
     /*
      * Check if we have direct write access to the server 
      */
     GFPDF_InstallUpdater::check_filesystem_api();
     /*
      * Check if we can automatically deploy the software. 
      * 90% of sites should be able to do this as they will have 'direct' write abilities 
      * to their server files.
      */
     GFPDF_InstallUpdater::maybe_deploy();
     /*
      * Check if we need to deploy the software
      */
     self::check_deployment();
     /*
      * Check if the template folder location needs to be migrated
      */
     if (!rgpost('upgrade')) {
         GFPDF_InstallUpdater::check_template_migration();
     }
 }