Changeset 3323703
- Timestamp:
- 07/07/2025 02:41:59 PM (8 months ago)
- Location:
- gb-forms-db/trunk
- Files:
-
- 6 edited
-
core/class/GBFDBAdmin.php (modified) (1 diff)
-
core/class/GBFLeads.php (modified) (1 diff)
-
core/class/class-start.php (modified) (1 diff)
-
core/functions.php (modified) (5 diffs)
-
gb-forms-db.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gb-forms-db/trunk/core/class/GBFDBAdmin.php
r2814118 r3323703 404 404 return false; 405 405 406 gbfdb_print_log($callback); 406 407 if(isset($_POST) && isset($_POST[$field_name])){ 407 if(is_callable($callback)){ 408 return call_user_func($callback); 409 } 408 $this->save_admin_data(); 410 409 } 411 410 return false; -
gb-forms-db/trunk/core/class/GBFLeads.php
r3013965 r3323703 453 453 $lead_title = __("unknown","gb-forms-db"); 454 454 if($title["subject"] != ''){ 455 $lead_title = (is_array($title["subject"]) ? $title["subject"][0] : $title["subject"]);455 $lead_title = $title["subject"]; 456 456 }else if($title["name"] != ''){ 457 $lead_title = (is_array($title["name"]) ? $title["name"][0] : $title["name"]);457 $lead_title = $title["name"]; 458 458 }else if($title["email"] != ''){ 459 $lead_title = (is_array($title["email"]) ? $title["email"][0] : $title["email"]);459 $lead_title = $title["email"]; 460 460 }else if($title["date"] != ''){ 461 $lead_title = (is_array($title["date"]) ? $title["date"][0] : $title["date"]);461 $lead_title = $title["date"]; 462 462 } 463 463 -
gb-forms-db/trunk/core/class/class-start.php
r2774759 r3323703 122 122 //End fo "do only if class NOT exists" 123 123 endif; 124 125 gbfdb(); -
gb-forms-db/trunk/core/functions.php
r2954442 r3323703 9 9 } 10 10 function gbcf_includes(){ 11 gbfdb(); 11 12 load_plugin_textdomain( 'gb-forms-db', false, 'gb-forms-db/languages' ); 12 13 13 if(is_admin()){ 14 14 include_once (GBFDBDIR.'core/class/GBFDBAdmin.php'); … … 28 28 add_action( 'gbfdb_check_new_leads', 'gbfdb_hourly_check_new_leads', 10); 29 29 function gbfdb_hourly_check_new_leads() { 30 if(!function_exists('GBFLeads')){31 include_once (GBFDBDIR.'core/class/GBFLeads.php');32 }33 30 $GBFLeads = new GBFLeads(); 34 31 $GBFLeads->checkNewData(); … … 365 362 } 366 363 $out = "!@#"; 367 $out .= call_user_func($_POST['function'],$data); 364 if($_POST['function'] == 'gbfdb_all_forms_save'){ 365 $out .= gbfdb_all_forms_save($_POST['function'],$data); 366 }else{ 367 $out .= "0"; 368 } 369 368 370 $out .= "#@!"; 369 371 }else{ … … 526 528 } 527 529 530 528 531 /************************************/ 529 532 //DEBUG 530 533 /************************************/ 531 if ( ! function_exists( 'gb _print_log' ) ):532 function gb _print_log($array, $var_dump = false, $place = ''){534 if ( ! function_exists( 'gbfdb_print_log' ) ): 535 function gbfdb_print_log($array, $var_dump = false, $place = ''){ 533 536 //die(print_r(debug_backtrace(),true)); 537 $dir = plugin_dir_path( __FILE__ ); 534 538 if($place == ''){ 535 539 $place_array = debug_backtrace(); … … 540 544 $var_dump = true; 541 545 } 542 $file = fopen( GBFDBDIR."debug.txt","a");546 $file = fopen($dir."log/"."debug.txt","a"); 543 547 $date = new DateTime('NOW'); 544 548 fwrite($file,"\n----------\n".print_r($date->format('d/m/Y - H:i:s')." --- \n".$place."\n".print_r($array,true),true)); -
gb-forms-db/trunk/gb-forms-db.php
r2826473 r3323703 4 4 * Plugin URI: https://www.gb-plugins.com/gb-forms-db/ 5 5 * Description: save all forms leads as GB Forms DB based on CPT 6 * Version: 1.0. 26 * Version: 1.0.3 7 7 * Author: gilwebdeveloper 8 8 * Author URI: http://gbweb.co.il/ -
gb-forms-db/trunk/readme.txt
r2954442 r3323703 3 3 Tags: contact, form, multiple contact forms, leads, lead collector, DB, Data base, data table, CVS export, lead to CVS, DB custom form, DB NInja form, DB Elenementor form, DB Contact form 7, DB Pojo Forms, DB Gravity forms,multilingual 4 4 Requires at least: 5.5 5 Tested up to: 6. 36 Stable tag: 1.0. 25 Tested up to: 6.8.1. 6 Stable tag: 1.0.1 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 77 77 4. One lead view with all the lead info 78 78 79 80 81 = 1.0.2 =82 Fixed PHP issues83 84 79 = 1.0.1 = 85 80 Fixed CSS issues
Note: See TracChangeset
for help on using the changeset viewer.