PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 1.07.11
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v1.07.11
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / formidable.php

formidable.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 1.07.11, at formidable.php

114 lines 3.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: Formidable
4 Description: Quickly and easily create drag-and-drop forms
5 Version: 1.07.11
6 Plugin URI: http://formidablepro.com/
7 Author URI: http://strategy11.com
8 Author: Strategy11
9 Text Domain: formidable
10 */
11
12 /* Copyright 2010 Strategy11 (email : support@strategy11.com)
13
14 This program is free software; you can redistribute it and/or modify
15 it under the terms of the GNU General Public License, version 2, as
16 published by the Free Software Foundation.
17
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
22 */
23
24 require_once(dirname( __FILE__ ) .'/classes/models/FrmSettings.php');
25
26 global $frm_vars;
27 $frm_vars = array(
28 'load_css' => false, 'forms_loaded' => array(),
29 'created_entries' => array(), 'pro_is_installed' => false
30 );
31
32 require_once(dirname( __FILE__ ) .'/classes/helpers/FrmAppHelper.php');
33 $obj = new FrmAppHelper();
34
35 /***** SETUP SETTINGS OBJECT *****/
36 global $frm_settings;
37
38 $frm_settings = get_transient('frm_options');
39 if(!is_object($frm_settings)){
40 if($frm_settings){ //workaround for W3 total cache conflict
41 $frm_settings = unserialize(serialize($frm_settings));
42 }else{
43 $frm_settings = get_option('frm_options');
44
45 // If unserializing didn't work
46 if(!is_object($frm_settings)){
47 if($frm_settings) //workaround for W3 total cache conflict
48 $frm_settings = unserialize(serialize($frm_settings));
49 else
50 $frm_settings = new FrmSettings();
51 update_option('frm_options', $frm_settings);
52 set_transient('frm_options', $frm_settings);
53 }
54 }
55 }
56 $frm_settings->set_default_options(); // Sets defaults for unset options
57
58 $frm_path = FrmAppHelper::plugin_path();
59
60 // Instansiate Models
61 require_once($frm_path .'/classes/models/FrmDb.php');
62 require_once($frm_path .'/classes/models/FrmField.php');
63 require_once($frm_path .'/classes/models/FrmForm.php');
64 require_once($frm_path .'/classes/models/FrmEntry.php');
65 require_once($frm_path .'/classes/models/FrmEntryMeta.php');
66 require_once($frm_path .'/classes/models/FrmNotification.php');
67
68 global $frmdb;
69 global $frm_field;
70 global $frm_form;
71 global $frm_entry;
72 global $frm_entry_meta;
73
74 $frmdb = new FrmDb();
75 $frm_field = new FrmField();
76 $frm_form = new FrmForm();
77 $frm_entry = new FrmEntry();
78 $frm_entry_meta = new FrmEntryMeta();
79 $obj = new FrmNotification();
80
81
82 // Instansiate Controllers
83 require_once($frm_path .'/classes/controllers/FrmAppController.php');
84 require_once($frm_path .'/classes/controllers/FrmFieldsController.php');
85 require_once($frm_path .'/classes/controllers/FrmFormsController.php');
86 require_once($frm_path .'/classes/controllers/FrmEntriesController.php');
87
88 FrmAppController::load_hooks();
89 FrmEntriesController::load_hooks();
90 FrmFieldsController::load_hooks();
91 FrmFormsController::load_hooks();
92
93 if(is_admin()){
94 require_once($frm_path .'/classes/controllers/FrmSettingsController.php');
95 FrmSettingsController::load_hooks();
96
97 require_once($frm_path .'/classes/controllers/FrmStatisticsController.php');
98 FrmStatisticsController::load_hooks();
99
100 require_once($frm_path .'/classes/controllers/FrmXMLController.php');
101 FrmXMLController::load_hooks();
102 }
103
104 // Instansiate Helpers
105 require_once($frm_path .'/classes/helpers/FrmEntriesHelper.php');
106 require_once($frm_path .'/classes/helpers/FrmFieldsHelper.php');
107 require_once($frm_path .'/classes/helpers/FrmFormsHelper.php');
108
109 if ( file_exists($frm_path . '/pro/formidable-pro.php') ) {
110 require_once($frm_path .'/pro/formidable-pro.php');
111 }
112
113 include_once($frm_path .'/deprecated.php');
114 unset($frm_path);