├── inc
├── test.xls
├── test_pro.xls
├── upgrade.php
├── test.csv
├── test_pro.csv
├── helpers.php
├── integration.php
├── errors-handler.php
├── excel
│ └── oleread.php
├── admin-page.php
└── creator.php
├── uninstall.php
├── .gitignore
├── assets
├── images
│ └── batchcreatepro.jpg
├── jquery-ui
│ ├── images
│ │ ├── animated-overlay.gif
│ │ ├── ui-icons_222222_256x240.png
│ │ ├── ui-icons_228ef1_256x240.png
│ │ ├── ui-icons_ef8c08_256x240.png
│ │ ├── ui-icons_ffd27a_256x240.png
│ │ ├── ui-icons_ffffff_256x240.png
│ │ ├── ui-bg_flat_10_000000_40x100.png
│ │ ├── ui-bg_glass_65_ffffff_1x400.png
│ │ ├── ui-bg_glass_100_f6f6f6_1x400.png
│ │ ├── ui-bg_glass_100_fdf5ce_1x400.png
│ │ ├── ui-bg_gloss-wave_35_f6a828_500x100.png
│ │ ├── ui-bg_diagonals-thick_18_b81900_40x40.png
│ │ ├── ui-bg_diagonals-thick_20_666666_40x40.png
│ │ ├── ui-bg_highlight-soft_100_eeeeee_1x100.png
│ │ └── ui-bg_highlight-soft_75_ffe45c_1x100.png
│ ├── jquery.ui.progressbar.js
│ ├── jquery-ui-1.10.3.custom.min.css
│ └── jquery-ui-1.10.3.custom.css
└── css
│ └── icons.css
├── .gitmodules
├── sql.txt
├── package.json
├── dev-README.md
├── changelog.txt
├── Gruntfile.js
├── admin
├── tables
│ └── queue-table.php
└── pages
│ └── network-main-page.php
├── batch-create.php
├── model
└── model.php
├── README.md
├── languages
└── incsub_batch_create.pot
└── license.txt
/inc/test.xls:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/batch-create/master/inc/test.xls
--------------------------------------------------------------------------------
/inc/test_pro.xls:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/batch-create/master/inc/test_pro.xls
--------------------------------------------------------------------------------
/uninstall.php:
--------------------------------------------------------------------------------
1 | create_schema();
6 | }
--------------------------------------------------------------------------------
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "externals"]
2 | path = externals
3 | url = git@bitbucket.org:incsub/wpmudev-dashboard-notification.git
4 | branch = master
5 |
--------------------------------------------------------------------------------
/assets/jquery-ui/images/ui-icons_222222_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/batch-create/master/assets/jquery-ui/images/ui-icons_222222_256x240.png
--------------------------------------------------------------------------------
/assets/jquery-ui/images/ui-icons_228ef1_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/batch-create/master/assets/jquery-ui/images/ui-icons_228ef1_256x240.png
--------------------------------------------------------------------------------
/assets/jquery-ui/images/ui-icons_ef8c08_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/batch-create/master/assets/jquery-ui/images/ui-icons_ef8c08_256x240.png
--------------------------------------------------------------------------------
/assets/jquery-ui/images/ui-icons_ffd27a_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/batch-create/master/assets/jquery-ui/images/ui-icons_ffd27a_256x240.png
--------------------------------------------------------------------------------
/assets/jquery-ui/images/ui-icons_ffffff_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/batch-create/master/assets/jquery-ui/images/ui-icons_ffffff_256x240.png
--------------------------------------------------------------------------------
/assets/jquery-ui/images/ui-bg_flat_10_000000_40x100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/batch-create/master/assets/jquery-ui/images/ui-bg_flat_10_000000_40x100.png
--------------------------------------------------------------------------------
/assets/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/batch-create/master/assets/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png
--------------------------------------------------------------------------------
/assets/jquery-ui/images/ui-bg_glass_100_f6f6f6_1x400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/batch-create/master/assets/jquery-ui/images/ui-bg_glass_100_f6f6f6_1x400.png
--------------------------------------------------------------------------------
/assets/jquery-ui/images/ui-bg_glass_100_fdf5ce_1x400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/batch-create/master/assets/jquery-ui/images/ui-bg_glass_100_fdf5ce_1x400.png
--------------------------------------------------------------------------------
/assets/jquery-ui/images/ui-bg_gloss-wave_35_f6a828_500x100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/batch-create/master/assets/jquery-ui/images/ui-bg_gloss-wave_35_f6a828_500x100.png
--------------------------------------------------------------------------------
/assets/jquery-ui/images/ui-bg_diagonals-thick_18_b81900_40x40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/batch-create/master/assets/jquery-ui/images/ui-bg_diagonals-thick_18_b81900_40x40.png
--------------------------------------------------------------------------------
/assets/jquery-ui/images/ui-bg_diagonals-thick_20_666666_40x40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/batch-create/master/assets/jquery-ui/images/ui-bg_diagonals-thick_20_666666_40x40.png
--------------------------------------------------------------------------------
/assets/jquery-ui/images/ui-bg_highlight-soft_100_eeeeee_1x100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/batch-create/master/assets/jquery-ui/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
--------------------------------------------------------------------------------
/assets/jquery-ui/images/ui-bg_highlight-soft_75_ffe45c_1x100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpmudev/batch-create/master/assets/jquery-ui/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
--------------------------------------------------------------------------------
/inc/test.csv:
--------------------------------------------------------------------------------
1 | demoblogname1,Demo Blog Title 1,username1,userpass1,useremail@domain.com,administrator
2 | demoblogname2,Demo Blog Title 2,username2,userpass2,useremail2@domain.com,editor
3 |
--------------------------------------------------------------------------------
/inc/test_pro.csv:
--------------------------------------------------------------------------------
1 | demoblogname1,Demo Blog Title 1,username,userpass1,username@domain.com,administrator,1,permanent
2 | demoblogname2,Demo Blog Title 2,username,userpass2,username@domain.com,administrator,2,2016-03-21
--------------------------------------------------------------------------------
/sql.txt:
--------------------------------------------------------------------------------
1 | CREATE TABLE IF NOT EXISTS `wp_batch_create_queue` (
2 | `batch_create_ID` bigint(20) unsigned NOT NULL auto_increment,
3 | `batch_create_site` bigint(20),
4 | `batch_create_blog_name` varchar(255) NOT NULL default 'null',
5 | `batch_create_blog_title` varchar(255) NOT NULL default 'null',
6 | `batch_create_user_name` varchar(255) NOT NULL default 'null',
7 | `batch_create_user_pass` varchar(255) NOT NULL default 'null',
8 | `batch_create_user_email` varchar(255) NOT NULL default 'null',
9 | `batch_create_user_role` varchar(255) NOT NULL default 'null',
10 | PRIMARY KEY (`batch_create_ID`)
11 | ) ENGINE=MyISAM;
12 |
--------------------------------------------------------------------------------
/assets/css/icons.css:
--------------------------------------------------------------------------------
1 | #icon-origin {
2 | background: transparent url( '../images/icon32.png' ) no-repeat ;
3 | }
4 |
5 | #toplevel_page_origin_main_page .wp-menu-image,
6 | #toplevel_page_origin_network_page .wp-menu-image {
7 | background: transparent url( '../images/icons.png' ) no-repeat 0px -27px;
8 | }
9 |
10 | #toplevel_page_origin_main_page.wp-has-current-submenu .wp-menu-image,
11 | #toplevel_page_origin_main_page:hover .wp-menu-image,
12 | #toplevel_page_origin_network_page.wp-has-current-submenu .wp-menu-image,
13 | #toplevel_page_origin_network_page:hover .wp-menu-image {
14 | background: transparent url( '../images/icons.png' ) no-repeat 0px -0px;
15 | }
16 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "batch-create",
3 | "version": "1.5.2",
4 | "main": "batch-create.php",
5 | "projectEditUrl": "https://premium.wpmudev.org/wp-admin/edit.php?post_type=project&page=projects-manage&manage_files=84",
6 | "description": "",
7 | "scripts": {
8 | "build": "grunt build"
9 | },
10 | "dependencies": {},
11 | "devDependencies": {
12 | "grunt": "~0.4.5",
13 | "grunt-checktextdomain": "^0.1.1",
14 | "grunt-contrib-clean": "~0.5.0",
15 | "grunt-contrib-compress": "~0.8.0",
16 | "grunt-contrib-copy": "~0.5.0",
17 | "grunt-contrib-jshint": "^1.0.0",
18 | "grunt-contrib-uglify": "^1.0.1",
19 | "grunt-contrib-watch": "^1.0.0",
20 | "grunt-exec": "~0.4.5",
21 | "grunt-open": "^0.2.3",
22 | "grunt-phpunit": "^0.3.6",
23 | "grunt-potomo": "~2.1.0",
24 | "grunt-search": "^0.1.8",
25 | "grunt-wp-i18n": "~0.5.0",
26 | "load-grunt-tasks": "~0.2.0"
27 | },
28 | "author": "WPMU DEV",
29 | "license": "GPLv2"
30 | }
31 |
--------------------------------------------------------------------------------
/dev-README.md:
--------------------------------------------------------------------------------
1 | # Batch Create
2 |
3 | ## Development guide
4 |
5 | ### Branches
6 | There are two main branches:
7 |
8 | * `development`: Every development work should be done here first
9 | * `master`: Whenever a new version is ready, merge `development` branch into this one and push
10 |
11 | ### Development workflow
12 |
13 | Batch Create contains a few automated tasks that helps the developer to make faster and less buggy releases.
14 |
15 | #### Requirements:
16 |
17 | 1. Install nodejs: [https://github.com/joyent/node/wiki/installing-node.js-via-package-manager]
18 | 2. Install Grunt globally `sudo npm install -g grunt`
19 | 3. Execute `git submodule update --init --recursive` to download every submodule
20 |
21 | #### Dependencies installation
22 |
23 | Batch Create requires a few node dependencies for development. Use `npm install` to install all of them.
24 |
25 | #### Releasing versions
26 |
27 | 1. Make sure that the version in `batch-create.php` matches with the version in `package.json`, otherwise the build will fail.
28 | 2. Update all Git submodules with `git submodule update --remote`
29 | 3. Now execute `npm run build`. A new folder called `build` will be created where you can grab the zip file for the new version.
30 | 4. Language files, JS Lint and text domains verification are done during the execution of this script so developer doesn't need to worry about these tasks.
31 |
32 | Don't forget to create a new tag in Git!
33 |
--------------------------------------------------------------------------------
/inc/helpers.php:
--------------------------------------------------------------------------------
1 | batch_create_ID;
36 |
37 | $extend = get_metadata( 'batch_create_queue', $queue_id, 'pro_site_extend', true );
38 | $level = get_metadata( 'batch_create_queue', $queue_id, 'pro_site_level', true );
39 |
40 | if ( $level && $extend ) {
41 | $extend = $extend < 9999999999 ? $extend - time() : $extend;
42 | $psts->extend( $blog_id, $extend, __('Manual', INCSUB_BATCH_CREATE_LANG_DOMAIN), $level );
43 | }
44 | }
45 | add_action( 'batch_create_blog_created', 'batch_create_set_pro_status', 10, 2 );
46 |
47 | function batch_create_add_pro_sites_columns( $columns ) {
48 | $columns['level'] = __( 'Pro Site Level', INCSUB_BATCH_CREATE_LANG_DOMAIN );
49 | $columns['extend'] = __( 'Until', INCSUB_BATCH_CREATE_LANG_DOMAIN );
50 | return $columns;
51 | }
52 | add_filter( 'batch_create_queue_columns', 'batch_create_add_pro_sites_columns' );
53 |
54 | function batch_create_display_pro_sites_columns( $content, $column, $item ) {
55 | if ( $column == 'level' ) {
56 | $level = get_metadata( 'batch_create_queue', $item['batch_create_ID'], 'pro_site_level', true );
57 | return $level ? $level : __( 'Not Pro', INCSUB_BATCH_CREATE_LANG_DOMAIN );
58 | }
59 | if ( $column == 'extend' ) {
60 | $extend = get_metadata( 'batch_create_queue', $item['batch_create_ID'], 'pro_site_extend', true );
61 | $extend = is_numeric( $extend ) && $extend < 9999999999 ? date_i18n( get_option( 'date_format' ), $extend ) : __( 'Permanent', INCSUB_BATCH_CREATE_LANG_DOMAIN );
62 | return $extend;
63 | }
64 | }
65 | add_filter( 'batch_create_display_queue_column', 'batch_create_display_pro_sites_columns', 10, 3 );
66 |
67 | function batch_create_add_pro_sites_instructions() {
68 | $test_xls_url = INCSUB_BATCH_CREATE_PLUGIN_URL . 'inc/test_pro.xls';
69 | $test_csv_url = INCSUB_BATCH_CREATE_PLUGIN_URL . 'inc/test_pro.csv';
70 | ?>
71 |
72 |
73 |
this .xls or this .csv file and use it as a template to create your batch file with Pro Sites columns.', INCSUB_BATCH_CREATE_LANG_DOMAIN ), $test_xls_url, $test_csv_url ); ?>
';
220 | foreach ( $this->tabs as $key => $name ): ?>
221 |
222 | ';
225 |
226 | }
227 |
228 | /**
229 | * Render the content of the page
230 | *
231 | * Need to be implemented in the subclass
232 | */
233 | public abstract function render_content();
234 |
235 | /**
236 | * Override this function if you need notice
237 | * functionalities
238 | */
239 | public function show_notice() {}
240 |
241 | /**
242 | * Get the menu slug
243 | *
244 | * @return String Menu Slug
245 | */
246 | public function get_menu_slug() {
247 | return $this->menu_slug;
248 | }
249 |
250 | /**
251 | * Get the menu Page ID
252 | *
253 | * @return String WP Page ID
254 | */
255 | public function get_page_id() {
256 | return $this->page_id;
257 | }
258 |
259 | /**
260 | * Get the link to the menu
261 | *
262 | * @return String URL to the Admin Page
263 | */
264 | public function get_permalink() {
265 | return add_query_arg(
266 | 'page',
267 | $this->get_menu_slug(),
268 | is_multisite() ? network_admin_url( 'admin.php' ) : admin_url( 'admin.php' )
269 | );
270 | }
271 |
272 | /**
273 | * Get the capability needed to see the page
274 | *
275 | * @return String WP Capability
276 | */
277 | public function get_capability() {
278 | return $this->capability;
279 | }
280 |
281 | /**
282 | * Get the tabs array
283 | *
284 | * @return Array Tabs for the page
285 | */
286 | protected function get_tabs() {
287 | return $this->tabs;
288 | }
289 |
290 | /**
291 | * Get the current tab selected (if the page have tabs)
292 | *
293 | * Return the slug of the tab
294 | *
295 | * @return String Tab Slug
296 | */
297 | protected function get_current_tab() {
298 | $tabs = $this->get_tabs();
299 | if ( ! isset( $_GET['tab'] ) || ! array_key_exists( $_GET['tab'], $tabs ) ) {
300 | return key( $tabs );
301 | }
302 |
303 | return $_GET['tab'];
304 | }
305 |
306 | /**
307 | * Want to render a WP native page? You can use this function
308 | * Remember to set a table.form-table HTML tag before and after
309 | *
310 | * This function is useful when not using the WP Settings API.
311 | * For example, Network Pages does not accept that API so you
312 | * need to add fields manually. This function will save
313 | * a loot of code.
314 | *
315 | * @param String $title Title of the row
316 | * @param string/Array $callback Method that will render the markup
317 | */
318 | protected function render_row( $title, $callback ) {
319 | ?>
320 |
321 |
322 |
323 |
336 |
337 |
338 | \n"
13 | "Language-Team: LANGUAGE \n"
14 | "X-Generator: grunt-wp-i18n 0.5.4\n"
15 |
16 | #: admin/pages/network-main-page.php:29
17 | msgid ""
18 | "You have %s old source file(s) stored on your system. These are no longer "
19 | "needed. Delete them now"
20 | msgstr ""
21 |
22 | #: admin/pages/network-main-page.php:45
23 | msgid "Upload file"
24 | msgstr ""
25 |
26 | #: admin/pages/network-main-page.php:49
27 | msgid "Select a file"
28 | msgstr ""
29 |
30 | #: admin/pages/network-main-page.php:58
31 | msgid "This file has a header row"
32 | msgstr ""
33 |
34 | #: admin/pages/network-main-page.php:61
35 | msgid ""
36 | "If this box is checked, the first row in the file WILL NOT "
37 | "be processed."
38 | msgstr ""
39 |
40 | #: admin/pages/network-main-page.php:69
41 | msgid "Upload"
42 | msgstr ""
43 |
44 | #: admin/pages/network-main-page.php:166
45 | msgid "The log is empty"
46 | msgstr ""
47 |
48 | #: admin/pages/network-main-page.php:179
49 | msgid "Delete log file"
50 | msgstr ""
51 |
52 | #: admin/pages/network-main-page.php:215
53 | msgid "Blog Domain/Blog ID"
54 | msgstr ""
55 |
56 | #: admin/pages/network-main-page.php:216
57 | msgid "Blog Name"
58 | msgstr ""
59 |
60 | #: admin/pages/network-main-page.php:217 admin/tables/queue-table.php:80
61 | msgid "Username"
62 | msgstr ""
63 |
64 | #: admin/pages/network-main-page.php:218
65 | msgid "User Password"
66 | msgstr ""
67 |
68 | #: admin/pages/network-main-page.php:219
69 | msgid "User Email"
70 | msgstr ""
71 |
72 | #: admin/pages/network-main-page.php:220
73 | msgid "User Role"
74 | msgstr ""
75 |
76 | #: admin/pages/network-main-page.php:242
77 | msgid "Instructions"
78 | msgstr ""
79 |
80 | #: admin/pages/network-main-page.php:243
81 | msgid ""
82 | "Batch create is designed for quickly creating sites and/or usernames or "
83 | "adding users to an existing site in batches of 10's, 100's or 1000's by "
84 | "uploading a .xls file."
85 | msgstr ""
86 |
87 | #: admin/pages/network-main-page.php:246
88 | msgid ""
89 | "Download this .xls or this .csv file "
90 | "and use it as a template to create your batch file."
91 | msgstr ""
92 |
93 | #: admin/pages/network-main-page.php:247
94 | msgid ""
95 | "Once you've added sites and/or usernames to the template save your file as "
96 | "an Excel 97-2003 Workbook or a .csv file."
97 | msgstr ""
98 |
99 | #: admin/pages/network-main-page.php:248
100 | msgid ""
101 | "Click on 'Choose File', locate your batch file, select 'This file has a "
102 | "header row', if you kept the first row in the template file, and click "
103 | "Upload."
104 | msgstr ""
105 |
106 | #: admin/pages/network-main-page.php:249
107 | msgid ""
108 | "Once uploaded it is placed into a queue. You need to click on the link "
109 | "'here' in 'Click here to process the queue.' to start creating the "
110 | "usernames and/or sites."
111 | msgstr ""
112 |
113 | #: admin/pages/network-main-page.php:250
114 | msgid ""
115 | "You'll see a status bar displaying their progress as they're being "
116 | "created/added."
117 | msgstr ""
118 |
119 | #: admin/pages/network-main-page.php:251
120 | msgid ""
121 | "You can clear the queue by clicking on the link 'here' in 'you can clear "
122 | "the queue by clicking here."
123 | msgstr ""
124 |
125 | #: admin/pages/network-main-page.php:252
126 | msgid "Here are the different ways you can use batch create:"
127 | msgstr ""
128 |
129 | #: admin/pages/network-main-page.php:255
130 | msgid "Examples"
131 | msgstr ""
132 |
133 | #: admin/pages/network-main-page.php:261
134 | msgid ""
135 | "Create a new user with a preset password and add it as administrator to "
136 | "demositename1 (it will be created if it does not exist)."
137 | msgstr ""
138 |
139 | #: admin/pages/network-main-page.php:262
140 | msgid ""
141 | "Create a new user with an autogenerated password and add it as editor to "
142 | "demositename2 (it will be created if it does not exist)."
143 | msgstr ""
144 |
145 | #: admin/pages/network-main-page.php:263
146 | msgid ""
147 | "Create a new user with an preset password in the network but do not add it "
148 | "to any site."
149 | msgstr ""
150 |
151 | #: admin/pages/network-main-page.php:264
152 | msgid ""
153 | "Create a new user with a preset password and add it as subscriber to blog "
154 | "with ID = 3. Note: If the blog ID does not exist, a new site with domain "
155 | "\"3\" will be created."
156 | msgstr ""
157 |
158 | #: admin/pages/network-main-page.php:287
159 | msgid ""
160 | "Note: There are %d items (blogs/users) waiting to be "
161 | "processed. Click here to "
162 | "process the queue. If there is a problem, you can clear the queue by "
163 | "clicking here."
164 | msgstr ""
165 |
166 | #: admin/pages/network-main-page.php:302
167 | msgid "Items added to queue."
168 | msgstr ""
169 |
170 | #: admin/pages/network-main-page.php:305
171 | msgid "Queue cleared."
172 | msgstr ""
173 |
174 | #: admin/pages/network-main-page.php:308
175 | msgid "Old sources deleted"
176 | msgstr ""
177 |
178 | #: admin/pages/network-main-page.php:311
179 | msgid "Log file cleared"
180 | msgstr ""
181 |
182 | #: admin/pages/network-main-page.php:315
183 | msgid "Queue processing complete. See log file."
184 | msgstr ""
185 |
186 | #: admin/tables/queue-table.php:35
187 | msgid "%s"
188 | msgstr ""
189 |
190 | #: admin/tables/queue-table.php:37
191 | msgid "Delete"
192 | msgstr ""
193 |
194 | #: admin/tables/queue-table.php:78
195 | msgid "Blog name/Blog ID"
196 | msgstr ""
197 |
198 | #: admin/tables/queue-table.php:79
199 | msgid "Blog title"
200 | msgstr ""
201 |
202 | #: admin/tables/queue-table.php:81
203 | msgid "User password"
204 | msgstr ""
205 |
206 | #: admin/tables/queue-table.php:82
207 | msgid "User email"
208 | msgstr ""
209 |
210 | #: admin/tables/queue-table.php:83
211 | msgid "User role"
212 | msgstr ""
213 |
214 | #: admin/tables/queue-table.php:84
215 | msgid "Additional options"
216 | msgstr ""
217 |
218 | #: admin/tables/queue-table.php:95
219 | msgid "Delete items"
220 | msgstr ""
221 |
222 | #: admin/tables/queue-table.php:119
223 | msgid "Items deleted"
224 | msgstr ""
225 |
226 | #. Plugin Name of the plugin/theme
227 | msgid "Batch Create"
228 | msgstr ""
229 |
230 | #: batch-create.php:159
231 | msgid "Current queue"
232 | msgstr ""
233 |
234 | #: batch-create.php:160
235 | msgid "Log File"
236 | msgstr ""
237 |
238 | #: externals/wpmudev-dash-notification.php:223
239 | msgid "install"
240 | msgstr ""
241 |
242 | #: externals/wpmudev-dash-notification.php:230
243 | msgid ""
244 | "Important updates are available for %s. Install the free "
245 | "WPMU DEV Dashboard plugin now for updates and support!"
246 | msgstr ""
247 |
248 | #: externals/wpmudev-dash-notification.php:232
249 | msgid ""
250 | "%s is almost ready - install the free WPMU DEV Dashboard "
251 | "plugin for updates and support!"
252 | msgstr ""
253 |
254 | #: externals/wpmudev-dash-notification.php:236
255 | msgid ""
256 | "Important updates are available for your WPMU DEV plugins/themes. Install "
257 | "the free WPMU DEV Dashboard plugin now for updates and support!"
258 | msgstr ""
259 |
260 | #: externals/wpmudev-dash-notification.php:238
261 | msgid ""
262 | "Almost ready - install the free WPMU DEV Dashboard plugin for updates and "
263 | "support!"
264 | msgstr ""
265 |
266 | #: externals/wpmudev-dash-notification.php:244
267 | msgid "Install Plugin"
268 | msgstr ""
269 |
270 | #: externals/wpmudev-dash-notification.php:247
271 | #: externals/wpmudev-dash-notification.php:288
272 | msgid "Saving..."
273 | msgstr ""
274 |
275 | #: externals/wpmudev-dash-notification.php:248
276 | #: externals/wpmudev-dash-notification.php:289
277 | msgid "Dismiss"
278 | msgstr ""
279 |
280 | #: externals/wpmudev-dash-notification.php:264
281 | msgid "activate"
282 | msgstr ""
283 |
284 | #: externals/wpmudev-dash-notification.php:271
285 | msgid ""
286 | "Important updates are available for %s. Activate the WPMU "
287 | "DEV Dashboard to update now!"
288 | msgstr ""
289 |
290 | #: externals/wpmudev-dash-notification.php:273
291 | msgid "Just one more step to enable updates and support for %s!"
292 | msgstr ""
293 |
294 | #: externals/wpmudev-dash-notification.php:277
295 | msgid ""
296 | "Important updates are available for your WPMU DEV plugins/themes. Activate "
297 | "the WPMU DEV Dashboard to update now!"
298 | msgstr ""
299 |
300 | #: externals/wpmudev-dash-notification.php:279
301 | msgid ""
302 | "Just one more step - activate the WPMU DEV Dashboard plugin and you're all "
303 | "done!"
304 | msgstr ""
305 |
306 | #: externals/wpmudev-dash-notification.php:285
307 | msgid "Activate WPMU DEV Dashboard"
308 | msgstr ""
309 |
310 | #: externals/wpmudev-dash-notification.php:952
311 | msgid "We did not find any data for this plugin or theme..."
312 | msgstr ""
313 |
314 | #: externals/wpmudev-dash-notification.php:1131
315 | msgid "%s changelog"
316 | msgstr ""
317 |
318 | #: externals/wpmudev-dash-notification.php:1161
319 | msgid "Current"
320 | msgstr ""
321 |
322 | #: externals/wpmudev-dash-notification.php:1167
323 | msgid "New"
324 | msgstr ""
325 |
326 | #: externals/wpmudev-dash-notification.php:1184
327 | msgid "Version %s"
328 | msgstr ""
329 |
330 | #: externals/wpmudev-dash-notification.php:1202
331 | msgid "Show all changes"
332 | msgstr ""
333 |
334 | #: externals/wpmudev-dash-notification.php:1203
335 | msgid "Hide details"
336 | msgstr ""
337 |
338 | #: inc/creator.php:24
339 | msgid ""
340 | "Unable to create directory %s. Is its parent directory writable by the "
341 | "server?"
342 | msgstr ""
343 |
344 | #: inc/creator.php:30
345 | msgid ""
346 | "Unable to create log file %s. Is its parent directory writable by the "
347 | "server?"
348 | msgstr ""
349 |
350 | #: inc/creator.php:42
351 | msgid "You need to select a file"
352 | msgstr ""
353 |
354 | #: inc/creator.php:48
355 | msgid ""
356 | "The file type you uploaded is not supported. Please upload a .csv or .xls "
357 | "file."
358 | msgstr ""
359 |
360 | #: inc/creator.php:54
361 | msgid "Error uploading the file."
362 | msgstr ""
363 |
364 | #: inc/creator.php:60
365 | msgid "Error reading the uploaded file."
366 | msgstr ""
367 |
368 | #: inc/creator.php:138
369 | msgid "Queue processing error. These emails are not unique: %s"
370 | msgstr ""
371 |
372 | #: inc/creator.php:143
373 | msgid "No data was retrieved from the file. Please verify its content."
374 | msgstr ""
375 |
376 | #: inc/creator.php:279
377 | msgid "Missing email address."
378 | msgstr ""
379 |
380 | #: inc/creator.php:283
381 | msgid "Invalid email address."
382 | msgstr ""
383 |
384 | #: inc/creator.php:346
385 | msgid ""
386 | "The following words are reserved for use by WordPress functions and cannot "
387 | "be used as blog names: %s"
388 | msgstr ""
389 |
390 | #: inc/creator.php:352
391 | msgid "Missing or invalid site address."
392 | msgstr ""
393 |
394 | #: inc/creator.php:377
395 | msgid "Blog (%s) already exists (%d), user can be added"
396 | msgstr ""
397 |
398 | #: inc/creator.php:380
399 | msgid "User role empty. The user could not have been added to the blog"
400 | msgstr ""
401 |
402 | #: inc/creator.php:390
403 | msgid "Blog (%s) does NOT already exist, not adding user at this point"
404 | msgstr ""
405 |
406 | #: inc/creator.php:398
407 | msgid "Blog (%s) does NOT exist yet"
408 | msgstr ""
409 |
410 | #: inc/creator.php:404
411 | msgid "Starting new blog creation"
412 | msgstr ""
413 |
414 | #: inc/creator.php:417
415 | msgid "New user is administrator"
416 | msgstr ""
417 |
418 | #: inc/creator.php:484
419 | msgid "--- Queue item processing finished ---\n"
420 | msgstr ""
421 |
422 | #: inc/errors-handler.php:28
423 | msgid "%s plugin error: %s"
424 | msgstr ""
425 |
426 | #: inc/integration.php:42
427 | msgid "Manual"
428 | msgstr ""
429 |
430 | #: inc/integration.php:48
431 | msgid "Pro Site Level"
432 | msgstr ""
433 |
434 | #: inc/integration.php:49
435 | msgid "Until"
436 | msgstr ""
437 |
438 | #: inc/integration.php:57
439 | msgid "Not Pro"
440 | msgstr ""
441 |
442 | #: inc/integration.php:61
443 | msgid "Permanent"
444 | msgstr ""
445 |
446 | #: inc/integration.php:71
447 | msgid "Pro Sites Integration"
448 | msgstr ""
449 |
450 | #: inc/integration.php:72
451 | msgid ""
452 | "Batch Create allows you to add new columns in the Excel/CSV file to specify "
453 | "the Pro Site level and the expiration date. Here is an example: "
454 | msgstr ""
455 |
456 | #: inc/integration.php:73
457 | msgid ""
458 | "Download this .xls or this .csv file "
459 | "and use it as a template to create your batch file with Pro Sites columns."
460 | msgstr ""
461 |
462 | #. Plugin URI of the plugin/theme
463 | msgid "http://premium.wpmudev.org/project/batch-create"
464 | msgstr ""
465 |
466 | #. Description of the plugin/theme
467 | msgid ""
468 | "Create hundred or thousands of blogs and users automatically by simply "
469 | "uploading a csv text file - subdomain and user creation automation has "
470 | "never been so easy."
471 | msgstr ""
472 |
473 | #. Author of the plugin/theme
474 | msgid "WPMU DEV"
475 | msgstr ""
476 |
477 | #. Author URI of the plugin/theme
478 | msgid "http://premium.wpmudev.org/"
479 | msgstr ""
--------------------------------------------------------------------------------
/license.txt:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 2, June 1991
3 |
4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5 | 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
6 |
7 | Everyone is permitted to copy and distribute verbatim copies
8 | of this license document, but changing it is not allowed.
9 |
10 | Preamble
11 |
12 | The licenses for most software are designed to take away your
13 | freedom to share and change it. By contrast, the GNU General Public
14 | License is intended to guarantee your freedom to share and change free
15 | software--to make sure the software is free for all its users. This
16 | General Public License applies to most of the Free Software
17 | Foundation's software and to any other program whose authors commit to
18 | using it. (Some other Free Software Foundation software is covered by
19 | the GNU Library General Public License instead.) You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | this service if you wish), that you receive source code or can get it
26 | if you want it, that you can change the software or use pieces of it
27 | in new free programs; and that you know you can do these things.
28 |
29 | To protect your rights, we need to make restrictions that forbid
30 | anyone to deny you these rights or to ask you to surrender the rights.
31 | These restrictions translate to certain responsibilities for you if you
32 | distribute copies of the software, or if you modify it.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must give the recipients all the rights that
36 | you have. You must make sure that they, too, receive or can get the
37 | source code. And you must show them these terms so they know their
38 | rights.
39 |
40 | We protect your rights with two steps: (1) copyright the software, and
41 | (2) offer you this license which gives you legal permission to copy,
42 | distribute and/or modify the software.
43 |
44 | Also, for each author's protection and ours, we want to make certain
45 | that everyone understands that there is no warranty for this free
46 | software. If the software is modified by someone else and passed on, we
47 | want its recipients to know that what they have is not the original, so
48 | that any problems introduced by others will not reflect on the original
49 | authors' reputations.
50 |
51 | Finally, any free program is threatened constantly by software
52 | patents. We wish to avoid the danger that redistributors of a free
53 | program will individually obtain patent licenses, in effect making the
54 | program proprietary. To prevent this, we have made it clear that any
55 | patent must be licensed for everyone's free use or not licensed at all.
56 |
57 | The precise terms and conditions for copying, distribution and
58 | modification follow.
59 |
60 | GNU GENERAL PUBLIC LICENSE
61 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
62 |
63 | 0. This License applies to any program or other work which contains
64 | a notice placed by the copyright holder saying it may be distributed
65 | under the terms of this General Public License. The "Program", below,
66 | refers to any such program or work, and a "work based on the Program"
67 | means either the Program or any derivative work under copyright law:
68 | that is to say, a work containing the Program or a portion of it,
69 | either verbatim or with modifications and/or translated into another
70 | language. (Hereinafter, translation is included without limitation in
71 | the term "modification".) Each licensee is addressed as "you".
72 |
73 | Activities other than copying, distribution and modification are not
74 | covered by this License; they are outside its scope. The act of
75 | running the Program is not restricted, and the output from the Program
76 | is covered only if its contents constitute a work based on the
77 | Program (independent of having been made by running the Program).
78 | Whether that is true depends on what the Program does.
79 |
80 | 1. You may copy and distribute verbatim copies of the Program's
81 | source code as you receive it, in any medium, provided that you
82 | conspicuously and appropriately publish on each copy an appropriate
83 | copyright notice and disclaimer of warranty; keep intact all the
84 | notices that refer to this License and to the absence of any warranty;
85 | and give any other recipients of the Program a copy of this License
86 | along with the Program.
87 |
88 | You may charge a fee for the physical act of transferring a copy, and
89 | you may at your option offer warranty protection in exchange for a fee.
90 |
91 | 2. You may modify your copy or copies of the Program or any portion
92 | of it, thus forming a work based on the Program, and copy and
93 | distribute such modifications or work under the terms of Section 1
94 | above, provided that you also meet all of these conditions:
95 |
96 | a) You must cause the modified files to carry prominent notices
97 | stating that you changed the files and the date of any change.
98 |
99 | b) You must cause any work that you distribute or publish, that in
100 | whole or in part contains or is derived from the Program or any
101 | part thereof, to be licensed as a whole at no charge to all third
102 | parties under the terms of this License.
103 |
104 | c) If the modified program normally reads commands interactively
105 | when run, you must cause it, when started running for such
106 | interactive use in the most ordinary way, to print or display an
107 | announcement including an appropriate copyright notice and a
108 | notice that there is no warranty (or else, saying that you provide
109 | a warranty) and that users may redistribute the program under
110 | these conditions, and telling the user how to view a copy of this
111 | License. (Exception: if the Program itself is interactive but
112 | does not normally print such an announcement, your work based on
113 | the Program is not required to print an announcement.)
114 |
115 | These requirements apply to the modified work as a whole. If
116 | identifiable sections of that work are not derived from the Program,
117 | and can be reasonably considered independent and separate works in
118 | themselves, then this License, and its terms, do not apply to those
119 | sections when you distribute them as separate works. But when you
120 | distribute the same sections as part of a whole which is a work based
121 | on the Program, the distribution of the whole must be on the terms of
122 | this License, whose permissions for other licensees extend to the
123 | entire whole, and thus to each and every part regardless of who wrote it.
124 | Thus, it is not the intent of this section to claim rights or contest
125 | your rights to work written entirely by you; rather, the intent is to
126 | exercise the right to control the distribution of derivative or
127 | collective works based on the Program.
128 |
129 | In addition, mere aggregation of another work not based on the Program
130 | with the Program (or with a work based on the Program) on a volume of
131 | a storage or distribution medium does not bring the other work under
132 | the scope of this License.
133 |
134 | 3. You may copy and distribute the Program (or a work based on it,
135 | under Section 2) in object code or executable form under the terms of
136 | Sections 1 and 2 above provided that you also do one of the following:
137 |
138 | a) Accompany it with the complete corresponding machine-readable
139 | source code, which must be distributed under the terms of Sections
140 | 1 and 2 above on a medium customarily used for software interchange; or,
141 |
142 | b) Accompany it with a written offer, valid for at least three
143 | years, to give any third party, for a charge no more than your
144 | cost of physically performing source distribution, a complete
145 | machine-readable copy of the corresponding source code, to be
146 | distributed under the terms of Sections 1 and 2 above on a medium
147 | customarily used for software interchange; or,
148 |
149 | c) Accompany it with the information you received as to the offer
150 | to distribute corresponding source code. (This alternative is
151 | allowed only for noncommercial distribution and only if you
152 | received the program in object code or executable form with such
153 | an offer, in accord with Subsection b above.)
154 |
155 | The source code for a work means the preferred form of the work for
156 | making modifications to it. For an executable work, complete source
157 | code means all the source code for all modules it contains, plus any
158 | associated interface definition files, plus the scripts used to
159 | control compilation and installation of the executable. However, as a
160 | special exception, the source code distributed need not include
161 | anything that is normally distributed (in either source or binary
162 | form) with the major components (compiler, kernel, and so on) of the
163 | operating system on which the executable runs, unless that component
164 | itself accompanies the executable.
165 |
166 | If distribution of executable or object code is made by offering
167 | access to copy from a designated place, then offering equivalent
168 | access to copy the source code from the same place counts as
169 | distribution of the source code, even though third parties are not
170 | compelled to copy the source along with the object code.
171 |
172 | 4. You may not copy, modify, sublicense, or distribute the Program
173 | except as expressly provided under this License. Any attempt
174 | otherwise to copy, modify, sublicense or distribute the Program is
175 | void, and will automatically terminate your rights under this License.
176 | However, parties who have received copies, or rights, from you under
177 | this License will not have their licenses terminated so long as such
178 | parties remain in full compliance.
179 |
180 | 5. You are not required to accept this License, since you have not
181 | signed it. However, nothing else grants you permission to modify or
182 | distribute the Program or its derivative works. These actions are
183 | prohibited by law if you do not accept this License. Therefore, by
184 | modifying or distributing the Program (or any work based on the
185 | Program), you indicate your acceptance of this License to do so, and
186 | all its terms and conditions for copying, distributing or modifying
187 | the Program or works based on it.
188 |
189 | 6. Each time you redistribute the Program (or any work based on the
190 | Program), the recipient automatically receives a license from the
191 | original licensor to copy, distribute or modify the Program subject to
192 | these terms and conditions. You may not impose any further
193 | restrictions on the recipients' exercise of the rights granted herein.
194 | You are not responsible for enforcing compliance by third parties to
195 | this License.
196 |
197 | 7. If, as a consequence of a court judgment or allegation of patent
198 | infringement or for any other reason (not limited to patent issues),
199 | conditions are imposed on you (whether by court order, agreement or
200 | otherwise) that contradict the conditions of this License, they do not
201 | excuse you from the conditions of this License. If you cannot
202 | distribute so as to satisfy simultaneously your obligations under this
203 | License and any other pertinent obligations, then as a consequence you
204 | may not distribute the Program at all. For example, if a patent
205 | license would not permit royalty-free redistribution of the Program by
206 | all those who receive copies directly or indirectly through you, then
207 | the only way you could satisfy both it and this License would be to
208 | refrain entirely from distribution of the Program.
209 |
210 | If any portion of this section is held invalid or unenforceable under
211 | any particular circumstance, the balance of the section is intended to
212 | apply and the section as a whole is intended to apply in other
213 | circumstances.
214 |
215 | It is not the purpose of this section to induce you to infringe any
216 | patents or other property right claims or to contest validity of any
217 | such claims; this section has the sole purpose of protecting the
218 | integrity of the free software distribution system, which is
219 | implemented by public license practices. Many people have made
220 | generous contributions to the wide range of software distributed
221 | through that system in reliance on consistent application of that
222 | system; it is up to the author/donor to decide if he or she is willing
223 | to distribute software through any other system and a licensee cannot
224 | impose that choice.
225 |
226 | This section is intended to make thoroughly clear what is believed to
227 | be a consequence of the rest of this License.
228 |
229 | 8. If the distribution and/or use of the Program is restricted in
230 | certain countries either by patents or by copyrighted interfaces, the
231 | original copyright holder who places the Program under this License
232 | may add an explicit geographical distribution limitation excluding
233 | those countries, so that distribution is permitted only in or among
234 | countries not thus excluded. In such case, this License incorporates
235 | the limitation as if written in the body of this License.
236 |
237 | 9. The Free Software Foundation may publish revised and/or new versions
238 | of the General Public License from time to time. Such new versions will
239 | be similar in spirit to the present version, but may differ in detail to
240 | address new problems or concerns.
241 |
242 | Each version is given a distinguishing version number. If the Program
243 | specifies a version number of this License which applies to it and "any
244 | later version", you have the option of following the terms and conditions
245 | either of that version or of any later version published by the Free
246 | Software Foundation. If the Program does not specify a version number of
247 | this License, you may choose any version ever published by the Free Software
248 | Foundation.
249 |
250 | 10. If you wish to incorporate parts of the Program into other free
251 | programs whose distribution conditions are different, write to the author
252 | to ask for permission. For software which is copyrighted by the Free
253 | Software Foundation, write to the Free Software Foundation; we sometimes
254 | make exceptions for this. Our decision will be guided by the two goals
255 | of preserving the free status of all derivatives of our free software and
256 | of promoting the sharing and reuse of software generally.
257 |
258 | NO WARRANTY
259 |
260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268 | REPAIR OR CORRECTION.
269 |
270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278 | POSSIBILITY OF SUCH DAMAGES.
279 |
280 | END OF TERMS AND CONDITIONS
281 |
282 |
--------------------------------------------------------------------------------
/admin/pages/network-main-page.php:
--------------------------------------------------------------------------------
1 | get_current_tab() ) {
14 |
15 | $this->display_notices();
16 |
17 | $this->show_process_queue_notice();
18 |
19 | $creator = batch_create_get_creator();
20 | $old_files = $creator->get_old_sources();
21 |
22 | if ( $old_files ) {
23 | $clear_link = add_query_arg(
24 | 'action',
25 | 'clear_old_sources',
26 | $this->get_permalink()
27 | );
28 |
29 | $message = sprintf( __( 'You have %s old source file(s) stored on your system. These are no longer needed. Delete them now', INCSUB_BATCH_CREATE_LANG_DOMAIN ), count( $old_files ), $clear_link );
30 | Incsub_Batch_Create_Errors_Handler::show_updated_notice( $message );
31 | }
32 |
33 | $test_xls_url = INCSUB_BATCH_CREATE_PLUGIN_URL . 'inc/test.xls';
34 | $test_csv_url = INCSUB_BATCH_CREATE_PLUGIN_URL . 'inc/test.csv';
35 |
36 | $form_url = add_query_arg(
37 | 'action',
38 | 'process',
39 | $this->get_permalink()
40 | );
41 | ?>
42 |
43 |
44 |
45 |
46 |
71 |
72 |
158 | get_current_tab() ) {
162 | $creator = batch_create_get_creator();
163 |
164 | $log_file = $creator->get_log_content();
165 |
166 | $log_file = $log_file ? $log_file : '
' . __( 'The log is empty', INCSUB_BATCH_CREATE_LANG_DOMAIN ) . '
this .xls or this .csv file and use it as a template to create your batch file.', INCSUB_BATCH_CREATE_LANG_DOMAIN ), $test_xls_url, $test_csv_url ); ?>