Changeset 3030228
- Timestamp:
- 02/01/2024 05:16:38 PM (2 years ago)
- Location:
- constellation-client-portal
- Files:
-
- 131 added
- 1 deleted
- 4 edited
-
tags/1.7.4 (deleted)
-
tags/1.7.6 (added)
-
tags/1.7.6/LICENSE.txt (added)
-
tags/1.7.6/README.txt (added)
-
tags/1.7.6/admin (added)
-
tags/1.7.6/admin/class-ars-constellation-client-portal-admin.php (added)
-
tags/1.7.6/admin/class-ars-constellation-client-portal-client-pages.php (added)
-
tags/1.7.6/admin/class-ars-constellation-client-portal-company.php (added)
-
tags/1.7.6/admin/class-ars-constellation-client-portal-core-authorization.php (added)
-
tags/1.7.6/admin/class-ars-constellation-client-portal-core-file-checks.php (added)
-
tags/1.7.6/admin/class-ars-constellation-client-portal-file.php (added)
-
tags/1.7.6/admin/class-ars-constellation-client-portal-invoice.php (added)
-
tags/1.7.6/admin/class-ars-constellation-client-portal-settings.php (added)
-
tags/1.7.6/admin/class-ars-constellation-client-portal-users.php (added)
-
tags/1.7.6/admin/css (added)
-
tags/1.7.6/admin/css/ars-constellation-client-portal-admin.css (added)
-
tags/1.7.6/admin/css/jquery-ui (added)
-
tags/1.7.6/admin/css/jquery-ui/1.11.1 (added)
-
tags/1.7.6/admin/css/jquery-ui/1.11.1/themes (added)
-
tags/1.7.6/admin/css/jquery-ui/1.11.1/themes/cupertino (added)
-
tags/1.7.6/admin/css/jquery-ui/1.11.1/themes/cupertino/jquery-ui.css (added)
-
tags/1.7.6/admin/css/select2.min.css (added)
-
tags/1.7.6/admin/index.php (added)
-
tags/1.7.6/admin/js (added)
-
tags/1.7.6/admin/js/ars-constellation-client-portal-admin.js (added)
-
tags/1.7.6/admin/js/i18n (added)
-
tags/1.7.6/admin/js/i18n/af.js (added)
-
tags/1.7.6/admin/js/i18n/ar.js (added)
-
tags/1.7.6/admin/js/i18n/az.js (added)
-
tags/1.7.6/admin/js/i18n/bg.js (added)
-
tags/1.7.6/admin/js/i18n/bs.js (added)
-
tags/1.7.6/admin/js/i18n/ca.js (added)
-
tags/1.7.6/admin/js/i18n/cs.js (added)
-
tags/1.7.6/admin/js/i18n/da.js (added)
-
tags/1.7.6/admin/js/i18n/de.js (added)
-
tags/1.7.6/admin/js/i18n/dsb.js (added)
-
tags/1.7.6/admin/js/i18n/el.js (added)
-
tags/1.7.6/admin/js/i18n/en.js (added)
-
tags/1.7.6/admin/js/i18n/es.js (added)
-
tags/1.7.6/admin/js/i18n/et.js (added)
-
tags/1.7.6/admin/js/i18n/eu.js (added)
-
tags/1.7.6/admin/js/i18n/fa.js (added)
-
tags/1.7.6/admin/js/i18n/fi.js (added)
-
tags/1.7.6/admin/js/i18n/fr.js (added)
-
tags/1.7.6/admin/js/i18n/gl.js (added)
-
tags/1.7.6/admin/js/i18n/he.js (added)
-
tags/1.7.6/admin/js/i18n/hi.js (added)
-
tags/1.7.6/admin/js/i18n/hr.js (added)
-
tags/1.7.6/admin/js/i18n/hsb.js (added)
-
tags/1.7.6/admin/js/i18n/hu.js (added)
-
tags/1.7.6/admin/js/i18n/hy.js (added)
-
tags/1.7.6/admin/js/i18n/id.js (added)
-
tags/1.7.6/admin/js/i18n/is.js (added)
-
tags/1.7.6/admin/js/i18n/it.js (added)
-
tags/1.7.6/admin/js/i18n/ja.js (added)
-
tags/1.7.6/admin/js/i18n/km.js (added)
-
tags/1.7.6/admin/js/i18n/ko.js (added)
-
tags/1.7.6/admin/js/i18n/lt.js (added)
-
tags/1.7.6/admin/js/i18n/lv.js (added)
-
tags/1.7.6/admin/js/i18n/mk.js (added)
-
tags/1.7.6/admin/js/i18n/ms.js (added)
-
tags/1.7.6/admin/js/i18n/nb.js (added)
-
tags/1.7.6/admin/js/i18n/nl.js (added)
-
tags/1.7.6/admin/js/i18n/pl.js (added)
-
tags/1.7.6/admin/js/i18n/ps.js (added)
-
tags/1.7.6/admin/js/i18n/pt-BR.js (added)
-
tags/1.7.6/admin/js/i18n/pt.js (added)
-
tags/1.7.6/admin/js/i18n/ro.js (added)
-
tags/1.7.6/admin/js/i18n/ru.js (added)
-
tags/1.7.6/admin/js/i18n/sk.js (added)
-
tags/1.7.6/admin/js/i18n/sl.js (added)
-
tags/1.7.6/admin/js/i18n/sr-Cyrl.js (added)
-
tags/1.7.6/admin/js/i18n/sr.js (added)
-
tags/1.7.6/admin/js/i18n/sv.js (added)
-
tags/1.7.6/admin/js/i18n/th.js (added)
-
tags/1.7.6/admin/js/i18n/tr.js (added)
-
tags/1.7.6/admin/js/i18n/uk.js (added)
-
tags/1.7.6/admin/js/i18n/vi.js (added)
-
tags/1.7.6/admin/js/i18n/zh-CN.js (added)
-
tags/1.7.6/admin/js/i18n/zh-TW.js (added)
-
tags/1.7.6/admin/js/select2.full.min.js (added)
-
tags/1.7.6/admin/js/select2.min.js (added)
-
tags/1.7.6/ars-constellation-client-portal.php (added)
-
tags/1.7.6/assets (added)
-
tags/1.7.6/assets/css (added)
-
tags/1.7.6/assets/css/font-awesome (added)
-
tags/1.7.6/assets/css/font-awesome/css (added)
-
tags/1.7.6/assets/css/font-awesome/css/all.css (added)
-
tags/1.7.6/assets/css/font-awesome/css/all.min.css (added)
-
tags/1.7.6/assets/css/font-awesome/webfonts (added)
-
tags/1.7.6/assets/css/font-awesome/webfonts/fa-brands-400.eot (added)
-
tags/1.7.6/assets/css/font-awesome/webfonts/fa-brands-400.svg (added)
-
tags/1.7.6/assets/css/font-awesome/webfonts/fa-brands-400.ttf (added)
-
tags/1.7.6/assets/css/font-awesome/webfonts/fa-brands-400.woff (added)
-
tags/1.7.6/assets/css/font-awesome/webfonts/fa-brands-400.woff2 (added)
-
tags/1.7.6/assets/css/font-awesome/webfonts/fa-regular-400.eot (added)
-
tags/1.7.6/assets/css/font-awesome/webfonts/fa-regular-400.svg (added)
-
tags/1.7.6/assets/css/font-awesome/webfonts/fa-regular-400.ttf (added)
-
tags/1.7.6/assets/css/font-awesome/webfonts/fa-regular-400.woff (added)
-
tags/1.7.6/assets/css/font-awesome/webfonts/fa-regular-400.woff2 (added)
-
tags/1.7.6/assets/css/font-awesome/webfonts/fa-solid-900.eot (added)
-
tags/1.7.6/assets/css/font-awesome/webfonts/fa-solid-900.svg (added)
-
tags/1.7.6/assets/css/font-awesome/webfonts/fa-solid-900.ttf (added)
-
tags/1.7.6/assets/css/font-awesome/webfonts/fa-solid-900.woff (added)
-
tags/1.7.6/assets/css/font-awesome/webfonts/fa-solid-900.woff2 (added)
-
tags/1.7.6/assets/img (added)
-
tags/1.7.6/assets/img/accp-full-logo.png (added)
-
tags/1.7.6/includes (added)
-
tags/1.7.6/includes/ars-constellation-client-portal-install-uninstall.php (added)
-
tags/1.7.6/includes/class-ars-constellation-client-portal-activator.php (added)
-
tags/1.7.6/includes/class-ars-constellation-client-portal-deactivator.php (added)
-
tags/1.7.6/includes/class-ars-constellation-client-portal-i18n.php (added)
-
tags/1.7.6/includes/class-ars-constellation-client-portal-loader.php (added)
-
tags/1.7.6/includes/class-ars-constellation-client-portal-utility-functions.php (added)
-
tags/1.7.6/includes/class-ars-constellation-client-portal.php (added)
-
tags/1.7.6/includes/index.php (added)
-
tags/1.7.6/index.php (added)
-
tags/1.7.6/languages (added)
-
tags/1.7.6/languages/ars-constellation-client-portal.pot (added)
-
tags/1.7.6/public (added)
-
tags/1.7.6/public/assets (added)
-
tags/1.7.6/public/assets/index.php (added)
-
tags/1.7.6/public/class-ars-constellation-client-portal-public.php (added)
-
tags/1.7.6/public/css (added)
-
tags/1.7.6/public/css/ars-constellation-client-portal-list-shortcode-styles.css (added)
-
tags/1.7.6/public/css/ars-constellation-client-portal-public.css (added)
-
tags/1.7.6/public/index.php (added)
-
tags/1.7.6/public/js (added)
-
tags/1.7.6/public/js/ars-constellation-client-portal-public.js (added)
-
tags/1.7.6/public/shortcodes (added)
-
tags/1.7.6/public/shortcodes/class-ars-constellation-client-portal-list-shortcodes.php (added)
-
tags/1.7.6/uninstall.php (added)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/admin/class-ars-constellation-client-portal-admin.php (modified) (51 diffs)
-
trunk/admin/class-ars-constellation-client-portal-company.php (modified) (1 diff)
-
trunk/ars-constellation-client-portal.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
constellation-client-portal/trunk/README.txt
r3018869 r3030228 5 5 Requires at least: 5.0.0 6 6 Tested up to: 6.4 7 Stable tag: 1.7. 57 Stable tag: 1.7.6 8 8 Requires PHP: 7.4 9 9 License: GPLv3 or later … … 127 127 = Company Menu (Pro) = 128 128 129 **[accp_company_menu]** 129 `[accp_company_menu]` 130 130 131 131 = Company Menu Shortcode Parameters = … … 200 200 201 201 == Changelog == 202 = 1.7.6 (Pro) - 2024-2-1 = 203 * Update: Minor code formatting updates. 204 205 = 1.7.6 (Core) - 2024-2-1 = 206 * Update: Minor code formatting updates. 207 * Update: Wrapped all unwrapped shortcode examples in the readme file with backticks to prevent smart quotes from causing errors when cutting/pasting into WP. 208 202 209 = 1.7.5 (Pro) - 2024-1-8 = 203 210 * Feature: Added functionality that allows a pay-all total to be displayed in invoice lists on the front-end. -
constellation-client-portal/trunk/admin/class-ars-constellation-client-portal-admin.php
r3004306 r3030228 339 339 } 340 340 341 // Set mime type header. 341 /** 342 * Set mime type header. 343 */ 342 344 header( 'Content-Type: ' . $mimetype ); 343 345 344 // Set file check header. 346 /** 347 * Set file check header. 348 */ 345 349 header( 'File-Check: validated' ); 346 350 347 // Actually serve the file. 351 /** 352 * Actually serve the file. 353 */ 348 354 readfile( $file ); 349 355 350 } 351 352 /* End File Check Redirects */ 356 } 353 357 354 358 … … 402 406 } 403 407 408 404 409 /** 405 410 * Flush rewrite rules on plugin upgrade. … … 445 450 446 451 /** 447 * Add additional menu items to the 448 * plugin action menu. 452 * Add additional menu items to the plugin action menu. 449 453 */ 450 454 function accp_add_links_to_plugin_row_actions_menu( $actions, $plugin_file, $plugin_data, $context ){ 451 455 452 // Add a Settings menu item 456 /** 457 * Add a Settings menu item. 458 */ 453 459 $new_actions['accp_settings'] = sprintf( __( '<a href="%s">Settings</a>', 'accp' ), esc_url( admin_url( 'admin.php?page=accp-settings' ) ) ); 454 460 455 // Add a Settings menu item 461 /** 462 * Add a Quick Start menu item. 463 */ 456 464 $new_actions['accp_quick_start'] = sprintf( __( '<a href="%s" target="_blank">Quick Start</a>', 'accp' ), esc_url( 'https://adrianrodriguezstudios.com/documentation-constellation-client-portal/#quick-start' ) ); 457 465 … … 466 474 function accp_add_upgrade_link_to_plugin_row_actions_menu( $actions, $plugin_file, $plugin_data, $context ){ 467 475 468 // Add a Settings menu item 476 /** 477 * Add a Upgrade menu item. 478 */ 469 479 $new_actions['accp_upgrade'] = sprintf( __( '<a href="%s" target="_blank" style="font-weight: bold;">Upgrade to Pro</a>', 'accp' ), esc_url( 'https://adrianrodriguezstudios.com/constellation-client-portal/?utm_source=accp-upgrade-link' ) ); 470 480 … … 483 493 function accp_delete_file_on_post_delete(){ 484 494 485 // Verify the nonce 495 /** 496 * Verify the nonce. 497 */ 486 498 $nonce = filter_var($_POST['file_del_nonce'], FILTER_SANITIZE_STRING); 487 499 … … 496 508 if($post_type != 'accp_clientcompany'){ 497 509 498 // Check if the post has a file 510 /** 511 * Check if the post has a file. 512 */ 499 513 if ( !empty($accp_file) ) { 500 514 … … 504 518 if( file_exists($accp_file_full_path) ){ 505 519 506 // If there is a file, delete it 520 /** 521 * If there is a file, delete it. 522 */ 507 523 unlink( $accp_file_full_path ); 508 524 509 // Also delete the associated post 525 /** 526 * Also delete the associated post. 527 */ 510 528 wp_delete_post($post_id, true); 511 529 … … 514 532 }else{ 515 533 516 // If the file no longer exists, 517 // just delete the post 534 /** 535 * If the file no longer exists, 536 * just delete the post. 537 */ 518 538 wp_delete_post($post_id, true); 519 539 … … 524 544 }else{ 525 545 526 // If the post doesn't have file just delete the post 546 /** 547 * If the post doesn't have file just delete the post. 548 */ 527 549 wp_delete_post($post_id, true); 528 550 … … 532 554 533 555 } 556 534 557 535 558 /** … … 540 563 541 564 wp_die(); 542 } 565 566 } 567 543 568 544 569 /** … … 553 578 return; 554 579 555 // Query for related post notes. 580 /** 581 * Query for related post notes. 582 */ 556 583 $args = array( 557 584 'post_type' => 'accp_post_note', … … 598 625 global $post; 599 626 600 // Verify the nonce 627 /** 628 * Verify the nonce. 629 */ 601 630 $nonce = filter_var($_POST['bulk_delete_nonce'], FILTER_SANITIZE_STRING); 602 631 … … 617 646 if($post_type !== 'accp_clientcompany'){ 618 647 619 // Check if the post has file 648 /** 649 * Check if the post has file. 650 */ 620 651 if (!empty($accp_file) ) { 621 652 … … 625 656 if( file_exists($accp_file_full_path) ){ 626 657 627 // If there is a file, delete it 658 /** 659 * If there is a file, delete it. 660 */ 628 661 unlink( $accp_file_full_path ); 629 662 630 // Also delete the associated post 663 /** 664 * Also delete the associated post. 665 */ 631 666 wp_delete_post($post_id, true); 632 667 … … 635 670 }else{ 636 671 637 // If the file no longer exists, 638 // just delete the post 672 /** 673 * If the file no longer exists, 674 * just delete the post. 675 */ 639 676 wp_delete_post($post_id, true); 640 677 … … 645 682 }else{ 646 683 647 // If the post doesn't have file just delete the post 684 /** 685 * If the post doesn't have a file just delete the post. 686 */ 648 687 wp_delete_post($post_id, true); 649 688 … … 660 699 661 700 } 701 662 702 } 663 703 664 704 die(); 705 665 706 } 666 707 … … 675 716 function accp_bulk_delete_file_on_empty_trash(){ 676 717 677 // Verify the nonce 718 /** 719 * Verify the nonce. 720 */ 678 721 $nonce = filter_var($_POST['empty_trash_nonce'], FILTER_SANITIZE_STRING); 679 722 … … 719 762 if( file_exists($accp_file_full_path) ){ 720 763 721 // If there is a file, delete it. 764 /** 765 * If there is a file, delete it. 766 */ 722 767 unlink( $accp_file_full_path ); 723 768 724 // Also delete the associated post. 769 /** 770 * Also delete the associated post. 771 */ 725 772 wp_delete_post($post_id, true); 726 773 … … 729 776 }else{ 730 777 731 // If the file no longer exists, 732 // just delete the post. 778 /** 779 * If the file no longer exists, 780 * just delete the post. 781 */ 733 782 wp_delete_post($post_id, true); 734 783 … … 739 788 }else{ 740 789 741 // If the post doesn't have a file just delete the post. 790 /** 791 * If the post doesn't have a file just delete the post. 792 */ 742 793 wp_delete_post($post_id, true); 743 794 … … 886 937 $user_id_array = array(); 887 938 888 // Set up an array of assigned user ID's 939 /** 940 * Set up an array of assigned user ID's. 941 */ 889 942 foreach ($users as $user) { 890 943 $user_id_array[] = $user->ID; … … 894 947 if( $post_type == 'accp_clientcompany' ){ 895 948 896 // Check if the current user is logged in or if their user id 897 // is in the list of users assigned to the company - Admins are exempt 949 /** 950 * Check if the current user is logged in or if their user id 951 * is in the list of users assigned to the company - Admins are exempt. 952 */ 898 953 if (!current_user_can('manage_options') && $current_user_id === 0 || !current_user_can('manage_options') && !in_array($current_user_id, $user_id_array) ){ 899 954 900 // If the current user id is 0 redirect to the home page 955 /** 956 * If the current user id is 0 redirect to the home page. 957 */ 901 958 wp_redirect('/'); 902 exit; 959 exit; 960 903 961 } 904 962 } … … 954 1012 955 1013 foreach ( $screens as $screen ) { 1014 956 1015 add_meta_box('clientfile', __('Client File', 'ars-constellation-client-portal'), array($this, 'accp_client_file_meta_fields'), $screen, 'normal', 'high'); 1016 957 1017 } 958 1018 … … 983 1043 $accp_file_full_path = $accp_clientfiles_full_dir_path . '/' . $company_dir . '/' . basename($accp_file_path); 984 1044 985 // Verify that the actual file (not post) still exists. 1045 /** 1046 * Verify that the actual file (not post) still exists. 1047 */ 986 1048 clearstatcache(); 987 1049 … … 1054 1116 echo '<p>' . esc_html(get_the_title($post_company)) . '</p>'; 1055 1117 1056 // Only display the Reassign button if the file exists. 1118 /** 1119 * Only display the Reassign button if the file exists. 1120 */ 1057 1121 if ( !empty($accp_file) ){ 1058 1122 … … 1113 1177 <?php 1114 1178 1115 } 1116 1179 } 1117 1180 1118 1181 … … 1140 1203 $new_company_dir = get_post_meta($selected_company, 'accp_dir', true); 1141 1204 1142 // Create the new company dir if it does not exist. 1205 /** 1206 * Create the new company dir if it does not exist. 1207 */ 1143 1208 if (empty($new_company_dir)){ 1144 1209 … … 1157 1222 $new_file_url = $accp_clientfiles_dir_url . '/' . $new_company_dir . '/' . basename($new_full_path); 1158 1223 1159 // Copy the file to the new company directory. 1224 /** 1225 * Verify that the actual file (not post) still exists. 1226 */ 1160 1227 clearstatcache(); 1161 1228 1162 // Check if the file name already exists in the new dir. 1229 /** 1230 * Check if the file name already exists in the new dir. 1231 */ 1163 1232 if(!file_exists($new_full_path)){ 1164 1233 1165 // If the file does not already exist copy it to the new dir. 1234 /** 1235 * If the file does not already exist copy it to the new dir. 1236 */ 1166 1237 copy($accp_file_full_path, $new_full_path); 1167 1238 1168 // Prep file meta data to store in the file post. 1239 /** 1240 * Prep file meta data to store in the file post. 1241 */ 1169 1242 $file_array = array( 1170 1243 'file' => $new_file_name, … … 1175 1248 }else{ 1176 1249 1177 // Otherwise loop through and add a number to the file name as needed, 1178 // to ensure that the filename is unique. 1250 /** 1251 * Otherwise loop through and add a number to the file name as needed, 1252 * to ensure that the filename is unique. 1253 */ 1179 1254 $i = 2; 1180 1255 … … 1183 1258 $parts = explode('.', $new_full_path); 1184 1259 1185 // Remove any numbers in brackets in the file name 1260 /** 1261 * Remove any numbers in brackets in the file name. 1262 */ 1186 1263 $parts[0] = preg_replace('/\(([0-9]*)\)$/', '', $parts[0]); 1187 1264 $parts[0] .= '-' . $i; … … 1198 1275 } 1199 1276 1200 // Copy the file with the incremented file name to the new company dir. 1277 /** 1278 * Copy the file with the incremented file name to the new company dir. 1279 */ 1201 1280 copy($accp_file_full_path, $new_full_path); 1202 1281 1203 // Update the $new_file_url var and meta info so that the correct 1204 // file name and url are stored in the post meta. 1282 /** 1283 * Update the $new_file_url var and meta info so that the correct 1284 * file name and url are stored in the post meta. 1285 */ 1205 1286 $new_file_url = $accp_clientfiles_dir_url . '/' . $new_company_dir . '/' . basename($new_full_path); 1206 1287 $new_file_name = 's/' . $new_company_dir . '/' . basename($new_full_path); … … 1215 1296 1216 1297 1217 // Delete the old file if the 'leave copy' option is unchecked. 1298 /** 1299 * Delete the old file if the 'leave copy' option is unchecked. 1300 */ 1218 1301 if ($leave_copy == 0){ 1219 1302 clearstatcache(); … … 1221 1304 } 1222 1305 1223 // Update the file meta info (assigned company and file data). 1306 /** 1307 * Update the file meta info (assigned company and file data). 1308 */ 1224 1309 update_post_meta($post_id, 'accp_file', $file_array); // File info 1225 1310 update_post_meta($post_id, 'accp_user', $selected_company); // Newly assigned company … … 1268 1353 $accp_clientfiles_full_dir_path = $this->accp_utility_functions->accp_get_clientfiles_path(); 1269 1354 1270 // Create the new company dir if it does not exist. 1355 /** 1356 * Create the new company dir if it does not exist. 1357 */ 1271 1358 if ( empty($new_company_dir) ) { 1272 1359 … … 1327 1414 1328 1415 $this->accp_add_directory_update_note($company_id, $note_content); 1329 1330 1416 1331 1417 … … 1388 1474 1389 1475 echo esc_html($new_truncated_path); 1390 1391 1476 1392 1477 } … … 1512 1597 1513 1598 /** 1514 * Return false if no tposts were returned.1599 * Return false if no posts were returned. 1515 1600 */ 1516 1601 if( $post_count < 1 ) … … 1635 1720 1636 1721 $this->accp_add_directory_update_note($company_id, $note_content); 1637 1638 1722 1639 1723 … … 2041 2125 if( !is_readable($file) ) return; 2042 2126 2043 // Define mime type 2044 //TODO: Add a filter to allow developers to filter the output mime_types list 2127 /** 2128 * Define mime type. 2129 * TODO: Add a filter to allow developers to filter the output mime_types list. 2130 */ 2045 2131 $defined_mime_types = $this->accp_defined_file_mime_types(); 2046 2132 $file_extension = strtolower(substr(strrchr($file,"."), 1)); 2047 2133 2048 // Set jpeg extension to jpg 2134 /** 2135 * Set jpeg extension to jpg. 2136 */ 2049 2137 if($file_extension == 'jpeg'){ 2050 2138 $file_extension = 'jpg'; … … 2068 2156 if( $mime_type == '' || $mime_type == NULL || $mime_type == 'undefined'){ 2069 2157 $mime_type = 'application/force-download'; 2070 } 2071 2072 //TODO: Add a filter to allow developers to filter the output $mime_type 2158 } 2073 2159 2074 2160 $name = rawurldecode($name); … … 2111 2197 } 2112 2198 2113 // Output the file 2199 /** 2200 * Output the file. 2201 */ 2114 2202 $chunk_size = 1 * (1024 * 1024); 2115 2203 $bytes_send = 0; … … 2167 2255 * Disable zlib.output_compression. 2168 2256 */ 2169 2170 2257 private function maybe_disable_zlib_output_compression(){ 2171 2258 … … 2625 2712 } 2626 2713 2627 // Assigned Company 2714 /** 2715 * Assigned Company 2716 */ 2628 2717 if(isset($_POST['client_company'])){ 2629 2718 … … 2633 2722 } 2634 2723 2635 // User Client Status 2724 /** 2725 * User Client Status 2726 */ 2636 2727 if(isset($_POST['client_status'])){ 2637 2728 … … 2641 2732 } 2642 2733 2643 // Additional Companies 2734 /** 2735 * Additional Companies 2736 */ 2644 2737 if (!empty($_POST['client_additional_company'])){ 2645 2738 … … 2675 2768 ){ 2676 2769 2677 // Add content to the clientfile trash page 2770 /** 2771 * Add content to the clientfile trash page. 2772 */ 2678 2773 if (strpos($_SERVER['REQUEST_URI'],'post_status=trash') !== false) { 2679 2774 2680 // Add a nonce to the accp_clientfile trash header that can be used for ajax calls 2775 /** 2776 * Add a nonce to the accp_clientfile trash header that can be used for ajax calls. 2777 */ 2681 2778 $clientfile_admin_nonce = wp_create_nonce('clientfile_admin_nonce'); 2682 2779 2683 2780 echo '<span id="clientfile-admin-nonce" data-nonce="' . esc_attr($clientfile_admin_nonce) . '" class="hidden"> </span>'; 2684 2781 2685 // Add an admin notice on the trash page 2782 /** 2783 * Add an admin notice on the trash page. 2784 */ 2686 2785 if($screen->parent_file !== 'admin.php?page=accp-settings.php'){ 2687 2786 echo '<span class="delete-screen-notice">Deleting posts on this screen will also delete any file attached to the post.</span>'; … … 2696 2795 2697 2796 /** 2698 * Define TCP MIME Types2797 * Define MIME Types. 2699 2798 * 2700 2799 * @return array Returns list of defined mime types (enabled and disabled). … … 2875 2974 public function add_menu_accp_add_sub_menu_items_to_main_menu_item(){ 2876 2975 2877 // Company menu page. 2976 /** 2977 * Company menu page. 2978 */ 2878 2979 //add_submenu_page('admin.php?page=accp-settings.php', 'Companies', 'Companies', 'manage_options', 'edit.php?post_type=accp_clientcompany' ); 2879 2980 add_submenu_page('accp-settings', 'Companies', 'Companies', 'manage_options', 'edit.php?post_type=accp_clientcompany' ); … … 2887 2988 function accp_generate_user_password(){ 2888 2989 2889 // Verify the nonce 2990 /** 2991 * Verify the nonce. 2992 */ 2890 2993 $nonce = filter_var($_POST['nonce'], FILTER_SANITIZE_STRING); 2891 2994 -
constellation-client-portal/trunk/admin/class-ars-constellation-client-portal-company.php
r2995913 r3030228 568 568 } 569 569 570 571 570 /** 572 571 * Assign the home page to the Company. -
constellation-client-portal/trunk/ars-constellation-client-portal.php
r3018869 r3030228 5 5 * Plugin URI: https://adrianrodriguezstudios.com/constellation-client-portal/ 6 6 * Description: Create private pages for each of your clients, post private files, and protect your client files from unauthorized users and search engines. <strong>Important:</strong> All Site-level File Protection features will cease to function if the plugin is disabled or uninstalled. 7 * Version: 1.7. 57 * Version: 1.7.6 8 8 * Author: ARS 9 9 * Author URI: https://adrianrodriguezstudios.com … … 55 55 */ 56 56 define('ACCP_PLUGIN_NAME', 'ARS_CONSTELLATION_CLIENT_PORTAL'); 57 define('ACCP_PLUGIN_VERSION', '1.7. 5'); // Change the version in the header as well.57 define('ACCP_PLUGIN_VERSION', '1.7.6'); // Change the version in the header as well. 58 58 define( ACCP_PLUGIN_NAME, ACCP_PLUGIN_VERSION ); 59 59 define('ACCP_PLUGIN_FILE_NAME', __FILE__);
Note: See TracChangeset
for help on using the changeset viewer.