├── .gitignore ├── LICENSE ├── README.md ├── freelancer_billing.sql └── src ├── .htaccess ├── application ├── .htaccess ├── cache │ ├── .htaccess │ └── index.html ├── config │ ├── autoload.php │ ├── config.php │ ├── constants.php │ ├── database.php │ ├── doctypes.php │ ├── foreign_chars.php │ ├── hooks.php │ ├── index.html │ ├── migration.php │ ├── mimes.php │ ├── pagination.php │ ├── profiler.php │ ├── routes.php │ ├── smileys.php │ └── user_agents.php ├── controllers │ ├── accounts.php │ ├── documents.php │ ├── index.html │ ├── invoice_notifications.php │ ├── invoice_status_updates.php │ ├── invoices.php │ ├── recurrencies.php │ ├── settings.php │ ├── system_files.php │ ├── system_logs.php │ └── updates.php ├── core │ ├── MY_Loader.php │ └── index.html ├── errors │ ├── error_404.php │ ├── error_db.php │ ├── error_general.php │ ├── error_php.php │ └── index.html ├── helpers │ ├── MY_date_helper.php │ ├── MY_form_helper.php │ ├── color_helper.php │ ├── display_helper.php │ ├── fonts_helper.php │ ├── index.html │ ├── pagination_helper.php │ ├── security_helper.php │ ├── translations_helper.php │ └── validation_helper.php ├── hooks │ └── index.html ├── index.html ├── language │ ├── index.html │ └── portuguese │ │ ├── db_lang.php │ │ ├── email_lang.php │ │ ├── form_validation_lang.php │ │ ├── general_lang.php │ │ ├── notification_templates_lang.php │ │ ├── number_lang.php │ │ └── profiler_lang.php ├── libraries │ ├── gateway.php │ ├── gateway │ │ ├── HTTPRequest.class.php │ │ ├── XmlParser.class.php │ │ ├── lib │ │ │ ├── Address.class.php │ │ │ ├── Helper.class.php │ │ │ ├── Item.class.php │ │ │ ├── Parameter.class.php │ │ │ ├── ParameterItem.class.php │ │ │ ├── PaymentParserPagSeguro.class.php │ │ │ ├── Phone.class.php │ │ │ ├── Sender.class.php │ │ │ ├── Shipping.class.php │ │ │ └── ShippingType.class.php │ │ ├── paymentGateway.class.php │ │ └── paymentRequest.class.php │ └── index.html ├── logs │ └── index.html ├── models │ ├── account.php │ ├── index.html │ ├── invoice.php │ ├── invoice_notification.php │ ├── invoice_status_update.php │ ├── payment_pagseguro.php │ ├── recurrency.php │ ├── system_file.php │ ├── system_log.php │ ├── system_mail.php │ ├── system_notification.php │ ├── system_settings.php │ └── system_update.php ├── third_party │ ├── google_fonts │ │ └── fonts_list.json │ └── index.html └── views │ ├── accounts │ ├── create.php │ ├── index.php │ ├── inputs.php │ ├── remove.php │ ├── rows.php │ ├── update.php │ └── view.php │ ├── documents │ ├── balance.php │ └── invoice.php │ ├── index.html │ ├── invoice_notifications │ ├── create.php │ ├── index.php │ ├── inputs.php │ ├── remove.php │ ├── rows.php │ ├── update.php │ └── view.php │ ├── invoice_status_updates │ ├── create.php │ ├── index.php │ ├── inputs.php │ ├── remove.php │ ├── rows.php │ ├── update.php │ └── view.php │ ├── invoices │ ├── create.php │ ├── index.php │ ├── inputs.php │ ├── remove.php │ ├── rows.php │ ├── update.php │ └── view.php │ ├── recurrencies │ ├── create.php │ ├── index.php │ ├── inputs.php │ ├── remove.php │ ├── rows.php │ ├── update.php │ └── view.php │ ├── settings │ ├── password.php │ ├── system.php │ ├── update.php │ └── view.php │ ├── system_files │ ├── delete.php │ └── update.php │ ├── system_logs │ └── login.php │ └── template │ ├── admin_components │ ├── applied_filters.php │ ├── breadcrumbs.php │ ├── file_zone.php │ ├── inputs │ │ ├── bool_filter_field.php │ │ ├── bool_switch.php │ │ ├── city_input.php │ │ ├── code_input.php │ │ ├── color_input.php │ │ ├── datetime_picker.php │ │ ├── fk_input.php │ │ ├── number_input.php │ │ ├── rate_input.php │ │ ├── rich_text_input.php │ │ ├── search_button.php │ │ ├── select_input.php │ │ ├── string_input.php │ │ ├── textarea_input.php │ │ └── zipcode_script.php │ ├── load_more_button.php │ ├── modal_search.php │ └── no_results_warning.php │ ├── documents.php │ ├── head.php │ ├── messages.php │ ├── modal.php │ ├── sidebar-navbar.php │ └── template.php ├── assets ├── cdn │ ├── Sortable.js │ ├── bootstrap-theme.min.css │ ├── bootstrap.min.css │ ├── bootstrap.min.js │ └── jquery.min.js ├── css │ ├── app.css │ ├── bootstrap.css │ └── table-cells.css ├── img │ ├── admin.png │ ├── client.png │ ├── login_background.png │ └── no-user.jpg └── js │ ├── app-mask.js │ ├── app.js │ ├── bootstrap.js │ ├── jquery.js │ └── jquery.mask.min.js ├── index.php ├── license.txt ├── settings.json └── system ├── .htaccess ├── core ├── Benchmark.php ├── CodeIgniter.php ├── Common.php ├── Config.php ├── Controller.php ├── Exceptions.php ├── Hooks.php ├── Input.php ├── Lang.php ├── Loader.php ├── Model.php ├── Output.php ├── Router.php ├── Security.php ├── URI.php ├── Utf8.php └── index.html ├── database ├── DB.php ├── DB_active_rec.php ├── DB_cache.php ├── DB_driver.php ├── DB_forge.php ├── DB_result.php ├── DB_utility.php ├── drivers │ ├── cubrid │ │ ├── cubrid_driver.php │ │ ├── cubrid_forge.php │ │ ├── cubrid_result.php │ │ ├── cubrid_utility.php │ │ └── index.html │ ├── index.html │ ├── mssql │ │ ├── index.html │ │ ├── mssql_driver.php │ │ ├── mssql_forge.php │ │ ├── mssql_result.php │ │ └── mssql_utility.php │ ├── mysql │ │ ├── index.html │ │ ├── mysql_driver.php │ │ ├── mysql_forge.php │ │ ├── mysql_result.php │ │ └── mysql_utility.php │ ├── mysqli │ │ ├── index.html │ │ ├── mysqli_driver.php │ │ ├── mysqli_forge.php │ │ ├── mysqli_result.php │ │ └── mysqli_utility.php │ ├── oci8 │ │ ├── index.html │ │ ├── oci8_driver.php │ │ ├── oci8_forge.php │ │ ├── oci8_result.php │ │ └── oci8_utility.php │ ├── odbc │ │ ├── index.html │ │ ├── odbc_driver.php │ │ ├── odbc_forge.php │ │ ├── odbc_result.php │ │ └── odbc_utility.php │ ├── pdo │ │ ├── index.html │ │ ├── pdo_driver.php │ │ ├── pdo_forge.php │ │ ├── pdo_result.php │ │ └── pdo_utility.php │ ├── postgre │ │ ├── index.html │ │ ├── postgre_driver.php │ │ ├── postgre_forge.php │ │ ├── postgre_result.php │ │ └── postgre_utility.php │ ├── sqlite │ │ ├── index.html │ │ ├── sqlite_driver.php │ │ ├── sqlite_forge.php │ │ ├── sqlite_result.php │ │ └── sqlite_utility.php │ └── sqlsrv │ │ ├── index.html │ │ ├── sqlsrv_driver.php │ │ ├── sqlsrv_forge.php │ │ ├── sqlsrv_result.php │ │ └── sqlsrv_utility.php └── index.html ├── fonts ├── index.html └── texb.ttf ├── helpers ├── array_helper.php ├── captcha_helper.php ├── cookie_helper.php ├── date_helper.php ├── directory_helper.php ├── download_helper.php ├── email_helper.php ├── file_helper.php ├── form_helper.php ├── html_helper.php ├── index.html ├── inflector_helper.php ├── language_helper.php ├── number_helper.php ├── path_helper.php ├── security_helper.php ├── smiley_helper.php ├── string_helper.php ├── text_helper.php ├── typography_helper.php ├── url_helper.php └── xml_helper.php ├── index.html ├── language ├── english │ ├── calendar_lang.php │ ├── date_lang.php │ ├── db_lang.php │ ├── email_lang.php │ ├── form_validation_lang.php │ ├── ftp_lang.php │ ├── imglib_lang.php │ ├── index.html │ ├── migration_lang.php │ ├── number_lang.php │ ├── profiler_lang.php │ ├── unit_test_lang.php │ └── upload_lang.php └── index.html └── libraries ├── Cache ├── Cache.php ├── drivers │ ├── Cache_apc.php │ ├── Cache_dummy.php │ ├── Cache_file.php │ ├── Cache_memcached.php │ └── index.html └── index.html ├── Calendar.php ├── Cart.php ├── Driver.php ├── Email.php ├── Encrypt.php ├── Form_validation.php ├── Ftp.php ├── Image_lib.php ├── Javascript.php ├── Log.php ├── Migration.php ├── Pagination.php ├── Parser.php ├── Profiler.php ├── Session.php ├── Sha1.php ├── Table.php ├── Trackback.php ├── Typography.php ├── Unit_test.php ├── Upload.php ├── User_agent.php ├── Xmlrpc.php ├── Xmlrpcs.php ├── Zip.php ├── index.html └── javascript ├── Jquery.php └── index.html /.gitignore: -------------------------------------------------------------------------------- 1 | src/application/config/smtp.php 2 | src/application/config/config.php -------------------------------------------------------------------------------- /src/.htaccess: -------------------------------------------------------------------------------- 1 | # Helicon ISAPI_Rewrite configuration file 2 | # Version 3.1.0.64 3 | 4 | 5 | RewriteEngine On 6 | #RewriteBase / 7 | 8 | #Removes access to the system folder by users. 9 | #Additionally this will allow you to create a System.php controller, 10 | #previously this would not have been possible. 11 | #'system' can be replaced if you have renamed your system folder. 12 | RewriteCond %{REQUEST_URI} ^system.* 13 | RewriteRule ^(.*)$ /index.php?/$1 [L] 14 | 15 | #When your application folder isn't in the system folder 16 | #This snippet prevents user access to the application folder 17 | #Submitted by: Fabdrol 18 | #Rename 'application' to your applications folder name. 19 | RewriteCond %{REQUEST_URI} ^application.* 20 | RewriteRule ^(.*)$ /index.php?/$1 [L] 21 | 22 | #Checks to see if the user is attempting to access a valid file, 23 | #such as an image or css document, if this isn't true it sends the 24 | #request to index.php 25 | RewriteCond %{REQUEST_FILENAME} !-f 26 | RewriteCond %{REQUEST_FILENAME} !-d 27 | RewriteRule ^(.*)$ index.php?/$1 [L] 28 | 29 | 30 | 31 | # If we don't have mod_rewrite installed, all 404's 32 | # can be sent to index.php, and everything works as normal. 33 | # Submitted by: ElliotHaughin 34 | 35 | ErrorDocument 404 /index.php 36 | -------------------------------------------------------------------------------- /src/application/.htaccess: -------------------------------------------------------------------------------- 1 | Deny from all -------------------------------------------------------------------------------- /src/application/cache/.htaccess: -------------------------------------------------------------------------------- 1 | Deny from all -------------------------------------------------------------------------------- /src/application/cache/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /src/application/config/constants.php: -------------------------------------------------------------------------------- 1 | '', 5 | 'xhtml1-strict' => '', 6 | 'xhtml1-trans' => '', 7 | 'xhtml1-frame' => '', 8 | 'html5' => '', 9 | 'html4-strict' => '', 10 | 'html4-trans' => '', 11 | 'html4-frame' => '' 12 | ); 13 | 14 | /* End of file doctypes.php */ 15 | /* Location: ./application/config/doctypes.php */ -------------------------------------------------------------------------------- /src/application/config/foreign_chars.php: -------------------------------------------------------------------------------- 1 | 'ae', 12 | '/ö|œ/' => 'oe', 13 | '/ü/' => 'ue', 14 | '/Ä/' => 'Ae', 15 | '/Ü/' => 'Ue', 16 | '/Ö/' => 'Oe', 17 | '/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ/' => 'A', 18 | '/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª/' => 'a', 19 | '/Ç|Ć|Ĉ|Ċ|Č/' => 'C', 20 | '/ç|ć|ĉ|ċ|č/' => 'c', 21 | '/Ð|Ď|Đ/' => 'D', 22 | '/ð|ď|đ/' => 'd', 23 | '/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě/' => 'E', 24 | '/è|é|ê|ë|ē|ĕ|ė|ę|ě/' => 'e', 25 | '/Ĝ|Ğ|Ġ|Ģ/' => 'G', 26 | '/ĝ|ğ|ġ|ģ/' => 'g', 27 | '/Ĥ|Ħ/' => 'H', 28 | '/ĥ|ħ/' => 'h', 29 | '/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ/' => 'I', 30 | '/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı/' => 'i', 31 | '/Ĵ/' => 'J', 32 | '/ĵ/' => 'j', 33 | '/Ķ/' => 'K', 34 | '/ķ/' => 'k', 35 | '/Ĺ|Ļ|Ľ|Ŀ|Ł/' => 'L', 36 | '/ĺ|ļ|ľ|ŀ|ł/' => 'l', 37 | '/Ñ|Ń|Ņ|Ň/' => 'N', 38 | '/ñ|ń|ņ|ň|ʼn/' => 'n', 39 | '/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ/' => 'O', 40 | '/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º/' => 'o', 41 | '/Ŕ|Ŗ|Ř/' => 'R', 42 | '/ŕ|ŗ|ř/' => 'r', 43 | '/Ś|Ŝ|Ş|Š/' => 'S', 44 | '/ś|ŝ|ş|š|ſ/' => 's', 45 | '/Ţ|Ť|Ŧ/' => 'T', 46 | '/ţ|ť|ŧ/' => 't', 47 | '/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ/' => 'U', 48 | '/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ/' => 'u', 49 | '/Ý|Ÿ|Ŷ/' => 'Y', 50 | '/ý|ÿ|ŷ/' => 'y', 51 | '/Ŵ/' => 'W', 52 | '/ŵ/' => 'w', 53 | '/Ź|Ż|Ž/' => 'Z', 54 | '/ź|ż|ž/' => 'z', 55 | '/Æ|Ǽ/' => 'AE', 56 | '/ß/'=> 'ss', 57 | '/IJ/' => 'IJ', 58 | '/ij/' => 'ij', 59 | '/Œ/' => 'OE', 60 | '/ƒ/' => 'f' 61 | ); 62 | 63 | /* End of file foreign_chars.php */ 64 | /* Location: ./application/config/foreign_chars.php */ -------------------------------------------------------------------------------- /src/application/config/hooks.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /src/application/config/migration.php: -------------------------------------------------------------------------------- 1 | migration->latest() this is the version that schema will 21 | | be upgraded / downgraded to. 22 | | 23 | */ 24 | $config['migration_version'] = 0; 25 | 26 | 27 | /* 28 | |-------------------------------------------------------------------------- 29 | | Migrations Path 30 | |-------------------------------------------------------------------------- 31 | | 32 | | Path to your migrations folder. 33 | | Typically, it will be within your application path. 34 | | Also, writing permission is required within the migrations path. 35 | | 36 | */ 37 | $config['migration_path'] = APPPATH . 'migrations/'; 38 | 39 | 40 | /* End of file migration.php */ 41 | /* Location: ./application/config/migration.php */ -------------------------------------------------------------------------------- /src/application/config/pagination.php: -------------------------------------------------------------------------------- 1 | "; 6 | 7 | $config['first_link'] = '«'; 8 | $config['first_tag_open'] = '
  • '; 9 | $config['first_tag_close'] = '
  • '; 10 | 11 | $config['last_link'] = '»'; 12 | $config['last_tag_open'] = '
  • '; 13 | $config['last_tag_close'] = '
  • '; 14 | 15 | $config['prev_link'] = '‹'; 16 | $config['prev_tag_open'] = '
  • '; 17 | $config['prev_tag_close'] = '
  • '; 18 | 19 | $config['next_link'] = '›'; 20 | $config['next_tag_open'] = '
  • '; 21 | $config['next_tag_close'] = '
  • '; 22 | 23 | $config['cur_tag_open'] = '
  • '; 24 | $config['cur_tag_close'] = '
  • '; 25 | 26 | $config['num_tag_open'] = '
  • '; 27 | $config['num_tag_close'] = '
  • '; -------------------------------------------------------------------------------- /src/application/config/profiler.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/application/controllers/system_files.php: -------------------------------------------------------------------------------- 1 | form_validation->set_rules(array( 9 | array( 10 | 'field' => 'file_title', 11 | 'label' => 'Título', 12 | 'rules' => '' 13 | ), 14 | array( 15 | 'field' => 'file_description', 16 | 'label' => 'Descriçao', 17 | 'rules' => '' 18 | ), 19 | array( 20 | 'field' => 'file_index_date', 21 | 'label' => 'Data de indexação', 22 | 'rules' => '' 23 | ), 24 | array( 25 | 'field' => 'file_index_time', 26 | 'label' => 'Hora de indexação', 27 | 'rules' => '' 28 | ), 29 | array( 30 | 'field' => 'file_index_order', 31 | 'label' => 'Ordem', 32 | 'rules' => '' 33 | ), 34 | array( 35 | 'field' => 'return_url', 36 | 'label' => 'return_url', 37 | 'rules' => '' 38 | ) 39 | )); 40 | 41 | 42 | return $this->form_validation->run(); 43 | 44 | } 45 | 46 | 47 | public function update($file_id){ 48 | 49 | if($this->input->post() AND $this->validate()){ 50 | 51 | if($this->System_file->update($file_id)){ 52 | 53 | $this->session->set_flashdata(array( 54 | 55 | 'message'=>$this->lang->line('file_updated'), 56 | 'message_class'=>"success" 57 | 58 | )); 59 | 60 | redirect($this->input->post('return_url'), 'location'); 61 | 62 | } 63 | 64 | } 65 | 66 | 67 | 68 | 69 | if(!$file = $this->System_file->getfile($file_id)){ 70 | 71 | return false; 72 | 73 | } 74 | 75 | $this->load->vars(array("file" => $file)); 76 | 77 | 78 | 79 | $this->load->vars(array("page" => "system_files/update")); 80 | 81 | $this->load->view('template/template'); 82 | 83 | } 84 | 85 | 86 | public function delete($file_id){ 87 | 88 | if($this->input->post('delete_confirm')=="true"){ 89 | 90 | if($this->System_file->deleteFile($file_id)){ 91 | 92 | $this->session->set_flashdata(array( 93 | 94 | 'message'=>$this->lang->line('file_removed') 95 | 96 | )); 97 | 98 | redirect($this->input->post('return_url'), 'location'); 99 | 100 | } 101 | 102 | } 103 | 104 | if(!$file = $this->System_file->getFile($file_id)){ 105 | 106 | return false; 107 | 108 | } 109 | 110 | $this->load->vars(array("file" => $file)); 111 | 112 | $this->load->vars(array("page" => "system_files/delete")); 113 | 114 | $this->load->view('template/template'); 115 | 116 | 117 | } 118 | 119 | 120 | function __construct(){ 121 | 122 | // Call the Model constructor 123 | 124 | parent::__construct(); 125 | 126 | 127 | 128 | } 129 | 130 | 131 | 132 | } 133 | -------------------------------------------------------------------------------- /src/application/controllers/updates.php: -------------------------------------------------------------------------------- 1 | load->model('Invoice_notification'); 21 | 22 | $this->Invoice_notification->mark_as_read($invoice_notification_uniqid); 23 | 24 | } 25 | 26 | #Funçao que é acionada a partir da cron e pode ser executada a partir da rota cron.php. 27 | 28 | function cron_execution(){ 29 | 30 | $this->load->model('Recurrency'); 31 | 32 | $this->load->model('Invoice'); 33 | 34 | $this->output->enable_profiler(TRUE); 35 | 36 | $this->Recurrency->generate_invoices(); 37 | 38 | $this->Invoice->dispatch_notifications(); 39 | 40 | 41 | } 42 | 43 | #Funçao que trata o retorno do PagSeguro e cria uma atualização de status em uma fatura. 44 | 45 | function pagseguro_notifications(){ 46 | 47 | $this->load->model('Invoice_status_update'); 48 | 49 | $this->load->model('Payment_pagseguro'); 50 | 51 | $this->load->library('gateway'); 52 | 53 | if($this->input->post('notificationType')!='transaction'){ 54 | 55 | return; 56 | 57 | } 58 | 59 | $this->Payment_pagseguro->update_invoice($this->input->post('notificationCode')); 60 | 61 | } 62 | 63 | 64 | } 65 | -------------------------------------------------------------------------------- /src/application/core/MY_Loader.php: -------------------------------------------------------------------------------- 1 | _ci_models, TRUE); 19 | } 20 | } -------------------------------------------------------------------------------- /src/application/core/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/application/errors/error_404.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 404 Page Not Found 5 | 55 | 56 | 57 |
    58 |

    59 | 60 |
    61 | 62 | -------------------------------------------------------------------------------- /src/application/errors/error_db.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Database Error 5 | 55 | 56 | 57 |
    58 |

    59 | 60 |
    61 | 62 | -------------------------------------------------------------------------------- /src/application/errors/error_general.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Error 5 | 55 | 56 | 57 |
    58 |

    59 | 60 |
    61 | 62 | -------------------------------------------------------------------------------- /src/application/errors/error_php.php: -------------------------------------------------------------------------------- 1 |
    2 | 3 |

    A PHP Error was encountered

    4 | 5 |

    Severity:

    6 |

    Message:

    7 |

    Filename:

    8 |

    Line Number:

    9 | 10 |
    -------------------------------------------------------------------------------- /src/application/errors/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/application/helpers/color_helper.php: -------------------------------------------------------------------------------- 1 | = 128){ 84 | 85 | $r = round($r/$light_contrast_factor); 86 | $g = round($g/$light_contrast_factor); 87 | $b = round($b/$light_contrast_factor); 88 | 89 | $color['dark_color'] = "$r, $g, $b"; 90 | $color['light_color'] = "$r, $g, $b"; 91 | 92 | }else{ 93 | 94 | $color['dark_color'] = "$r, $g, $b"; 95 | $color['light_color'] = "255, 255, 255"; 96 | 97 | } 98 | 99 | return $color; 100 | 101 | } 102 | 103 | } 104 | 105 | 106 | /* End of file color_helper.php */ 107 | /* Location: ./application/helpers/color_helper.php */ 108 | ?> -------------------------------------------------------------------------------- /src/application/helpers/fonts_helper.php: -------------------------------------------------------------------------------- 1 | "Roboto", 20 | "ABeeZee"=>"ABeeZee", 21 | "Ruda"=>"Ruda", 22 | "Coda"=>"Coda", 23 | "Palanquin Dark"=>"Palanquin Dark", 24 | "Arya"=>"Arya" 25 | ); 26 | }elseif($primary){ 27 | return array( 28 | "Ubuntu"=>"Ubuntu", 29 | "Raleway"=>"Raleway", 30 | "Pontano Sans"=>"Pontano Sans", 31 | "Orienta"=>"Orienta", 32 | "Mallana"=>"Mallana", 33 | "Mandali"=>"Mandali", 34 | "Biryani"=>"Biryani", 35 | ); 36 | } 37 | 38 | 39 | #https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyDSPsWD2p0eD0WdesswzdijuCbXzQ_yd1E @ Aqui se obter as fontes do Google Fonts 40 | 41 | $CI =& get_instance(); 42 | 43 | $fonts_list = $CI->load->file('application/third_party/google_fonts/fonts_list.json', true); 44 | 45 | $fonts = json_decode($fonts_list)->items; 46 | 47 | $fonts_array[] = "Padrão"; 48 | 49 | foreach($fonts as $font){ 50 | $family = $font->family; 51 | $fonts_array[$family] = $family; 52 | } 53 | 54 | return $fonts_array; 55 | 56 | } 57 | 58 | } 59 | 60 | 61 | ?> -------------------------------------------------------------------------------- /src/application/helpers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/application/helpers/translations_helper.php: -------------------------------------------------------------------------------- 1 | $string, 15 | "translation_zone"=>$translation_zone, 16 | "pk_id"=>$pk_id 17 | ); 18 | 19 | return load_view('translations/link', $array); 20 | 21 | } 22 | 23 | } 24 | 25 | /* End of file MY_form_helper.php */ 26 | /* Location: ./application/helpers/MY_form_helper.php */ -------------------------------------------------------------------------------- /src/application/helpers/validation_helper.php: -------------------------------------------------------------------------------- 1 | '; 50 | 51 | echo form_error($field_name); 52 | 53 | echo '

    '; 54 | 55 | } 56 | 57 | } 58 | 59 | 60 | function validar_cnpj($cnpj){ 61 | 62 | $cnpj = preg_replace('/[^0-9]/', '', (string) $cnpj); 63 | // Valida tamanho 64 | if (strlen($cnpj) != 14) 65 | return false; 66 | // Valida primeiro dígito verificador 67 | for ($i = 0, $j = 5, $soma = 0; $i < 12; $i++) 68 | { 69 | $soma += $cnpj{$i} * $j; 70 | $j = ($j == 2) ? 9 : $j - 1; 71 | } 72 | $resto = $soma % 11; 73 | if ($cnpj{12} != ($resto < 2 ? 0 : 11 - $resto)) 74 | return false; 75 | // Valida segundo dígito verificador 76 | for ($i = 0, $j = 6, $soma = 0; $i < 13; $i++) 77 | { 78 | $soma += $cnpj{$i} * $j; 79 | $j = ($j == 2) ? 9 : $j - 1; 80 | } 81 | $resto = $soma % 11; 82 | return $cnpj{13} == ($resto < 2 ? 0 : 11 - $resto); 83 | 84 | } 85 | 86 | /* End of file validation_helper.php */ 87 | /* Location: ./application/helpers/validation_helper.php */ 88 | ?> -------------------------------------------------------------------------------- /src/application/hooks/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/application/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/application/language/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/application/language/portuguese/db_lang.php: -------------------------------------------------------------------------------- 1 | Recuperação de senha 8 | 9 |

    Olá,

    10 | 11 |

    Recebemos a sua solicitação de nova senha e uma nova senha provisória foi gerada para você.

    12 | 13 |

    E-mail: {account_email}

    14 | 15 |

    Senha: {newpass}

    16 | 17 |

    Atenção!

    18 | 19 |

    Acesse este link, faça login com os dados acima e altere sua senha.

    20 | 21 |

    Atenciosamente, 22 | "; 23 | 24 | 25 | /* End of file notification_templates_lang.php */ -------------------------------------------------------------------------------- /src/application/language/portuguese/number_lang.php: -------------------------------------------------------------------------------- 1 | load_folders(array("application/libraries/gateway/lib", "application/libraries/gateway/")); 10 | 11 | } 12 | 13 | function load_folders($array){ 14 | 15 | if($array){ 16 | foreach($array as $folder){ 17 | foreach (glob($folder."/*.php") as $filename) 18 | { 19 | include $filename; 20 | } 21 | } 22 | } 23 | 24 | } 25 | 26 | } -------------------------------------------------------------------------------- /src/application/libraries/gateway/HTTPRequest.class.php: -------------------------------------------------------------------------------- 1 | true, 18 | CURLOPT_POSTFIELDS => $postFields, 19 | ); 20 | } else { 21 | $contentLength = null; 22 | $methodOptions = array( 23 | CURLOPT_HTTPGET => true 24 | ); 25 | } 26 | 27 | 28 | $header_array = array( 29 | "Content-Type: application/x-www-form-urlencoded; charset=" . $charset, 30 | $contentLength 31 | ); 32 | 33 | if($override_header_array){ 34 | 35 | $header_array = $override_header_array; 36 | 37 | } 38 | 39 | $options = array( 40 | CURLOPT_HTTPHEADER => $header_array, 41 | CURLOPT_URL => $url, 42 | CURLOPT_RETURNTRANSFER => true, 43 | CURLOPT_HEADER => false, 44 | CURLOPT_SSL_VERIFYPEER => false, 45 | CURLOPT_CONNECTTIMEOUT => $timeout, 46 | //CURLOPT_TIMEOUT => $timeout 47 | ); 48 | 49 | 50 | $options = ($options + $methodOptions); 51 | 52 | $curl = curl_init(); 53 | curl_setopt_array($curl, $options); 54 | $resp = curl_exec($curl); 55 | $info = curl_getinfo($curl); 56 | $error = curl_errno($curl); 57 | $errorMessage = curl_error($curl); 58 | curl_close($curl); 59 | 60 | $this->setStatus = $info['http_code']; 61 | $this->setResponse = $resp; 62 | 63 | if ($error) { 64 | throw new Exception("CURL can't connect: $errorMessage"); 65 | } else { 66 | return $this; 67 | } 68 | } 69 | 70 | } 71 | -------------------------------------------------------------------------------- /src/application/libraries/gateway/lib/Parameter.class.php: -------------------------------------------------------------------------------- 1 | 0) { 14 | $this->setItems($items); 15 | } 16 | } 17 | 18 | public function addItem(ParameterItem $parameterItem) 19 | { 20 | 21 | if (!Helper::isEmpty($parameterItem->getKey())) { 22 | if (!Helper::isEmpty($parameterItem->getValue())) { 23 | $this->items[] = $parameterItem; 24 | } else { 25 | die('requered parameterValue.'); 26 | } 27 | } else { 28 | die('requered parameterKey.'); 29 | } 30 | } 31 | 32 | public function setItems(array $items) 33 | { 34 | $this->items = $items; 35 | } 36 | 37 | public function getItems() 38 | { 39 | if ($this->items == null) { 40 | $this->items = array(); 41 | } 42 | return $this->items; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/application/libraries/gateway/lib/ParameterItem.class.php: -------------------------------------------------------------------------------- 1 | setKey($key); 33 | } 34 | if (isset($value) && !Helper::isEmpty($value)) { 35 | $this->setValue($value); 36 | } 37 | if (isset($group) && !Helper::isEmpty($group)) { 38 | $this->setGroup($group); 39 | } 40 | } 41 | 42 | /*** 43 | * Gets the parameter item key 44 | * @return string 45 | */ 46 | public function getKey() 47 | { 48 | return $this->key; 49 | } 50 | 51 | /*** 52 | * Sets the parameter item key 53 | * 54 | * @param string $key 55 | */ 56 | public function setKey($key) 57 | { 58 | $this->key = $key; 59 | } 60 | 61 | /*** 62 | * Gets parameter item value 63 | * @return string 64 | */ 65 | public function getValue() 66 | { 67 | return $this->value; 68 | } 69 | 70 | /*** 71 | * Sets parameter item value 72 | * 73 | * @param string $value 74 | */ 75 | public function setValue($value) 76 | { 77 | $this->value = $value; 78 | } 79 | 80 | /*** 81 | * Gets parameter item group 82 | * 83 | * @return int 84 | */ 85 | public function getGroup() 86 | { 87 | return $this->group; 88 | } 89 | 90 | /*** 91 | * Sets parameter item group 92 | * 93 | * @param int $group 94 | */ 95 | public function setGroup($group) 96 | { 97 | $this->group = (int) $group; 98 | } 99 | } 100 | -------------------------------------------------------------------------------- /src/application/libraries/gateway/lib/Phone.class.php: -------------------------------------------------------------------------------- 1 | areaCode = ($areaCode == null ? null : $areaCode); 29 | $this->number = ($number == null ? null : $number); 30 | return $this; 31 | } 32 | 33 | /*** 34 | * @return int the area code 35 | */ 36 | public function getAreaCode() 37 | { 38 | return $this->areaCode; 39 | } 40 | 41 | /*** 42 | * @return int the number 43 | */ 44 | public function getNumber() 45 | { 46 | return $this->number; 47 | } 48 | 49 | /*** 50 | * Sets the area code 51 | * @param String $areaCode 52 | * @return Phone 53 | */ 54 | public function setAreaCode($areaCode) 55 | { 56 | $this->areaCode = $areaCode; 57 | return $this; 58 | } 59 | 60 | /*** 61 | * Sets the number 62 | * @param String $number 63 | * @return Phone 64 | */ 65 | public function setNumber($number) 66 | { 67 | $this->number = $number; 68 | return $this; 69 | } 70 | 71 | /*** 72 | * Sets the number from a formatted string 73 | * 74 | * @param $number String formatted string like (099) [9]9999-9999 75 | * @return $this 76 | */ 77 | public function setFullPhone($number) 78 | { 79 | /** We clean the string that is coming. Can be formatted or not */ 80 | 81 | $number = preg_replace("/[^0-9]/", '', $number); 82 | $number = $number[0] == 0 ? substr($number, 1) : $number; 83 | 84 | $number = str_split($number, 1); 85 | $areaCode = array_shift($number) . array_shift($number); 86 | $phone = implode('', $number); 87 | 88 | $this->setAreaCode($areaCode); 89 | $this->setNumber($phone); 90 | 91 | return $this->areaCode . $this->number; 92 | } 93 | } 94 | -------------------------------------------------------------------------------- /src/application/libraries/gateway/lib/Shipping.class.php: -------------------------------------------------------------------------------- 1 | address = $data['address']; 35 | } 36 | if (isset($data['type']) && $data['type'] instanceof ShippingType) { 37 | $this->type = $data['type']; 38 | } 39 | if (isset($data['cost'])) { 40 | $this->cost = $data['cost']; 41 | } 42 | } 43 | } 44 | 45 | /*** 46 | * Sets the shipping address 47 | * @see Address 48 | * @param Address $address 49 | */ 50 | public function setAddress(Address $address) 51 | { 52 | $this->address = $address; 53 | } 54 | 55 | /*** 56 | * @return Address the shipping Address 57 | * @see Address 58 | */ 59 | public function getAddress() 60 | { 61 | return $this->address; 62 | } 63 | 64 | /*** 65 | * Sets the shipping type 66 | * @param ShippingType $type 67 | * @see ShippingType 68 | */ 69 | public function setType(ShippingType $type) 70 | { 71 | $this->type = $type; 72 | } 73 | 74 | /*** 75 | * @return ShippingType the shipping type 76 | * @see ShippingType 77 | */ 78 | public function getType() 79 | { 80 | return $this->type; 81 | } 82 | 83 | /*** 84 | * @param $cost float 85 | */ 86 | public function setCost($cost) 87 | { 88 | $this->cost = $cost; 89 | } 90 | 91 | /*** 92 | * @return float the shipping cost 93 | */ 94 | public function getCost() 95 | { 96 | return $this->cost; 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /src/application/libraries/gateway/lib/ShippingType.class.php: -------------------------------------------------------------------------------- 1 | 1, 11 | 'SEDEX' => 2, 12 | 'NOT_SPECIFIED' => 3 13 | ); 14 | 15 | /*** 16 | * the shipping type value 17 | * Example: 1 18 | */ 19 | private $value; 20 | 21 | /*** 22 | * @param null $value 23 | */ 24 | public function __construct($value = null) 25 | { 26 | if ($value) { 27 | $this->value = $value; 28 | } 29 | } 30 | 31 | /*** 32 | * @param $value 33 | */ 34 | public function setValue($value) 35 | { 36 | $this->value = $value; 37 | } 38 | 39 | /*** 40 | * @param $type 41 | * @throws Exception 42 | */ 43 | public function setByType($type) 44 | { 45 | if (isset(self::$typeList[$type])) { 46 | $this->value = self::$typeList[$type]; 47 | } else { 48 | throw new Exception("undefined index $type"); 49 | } 50 | } 51 | 52 | /*** 53 | * @return int the value of the shipping type 54 | */ 55 | public function getValue() 56 | { 57 | return $this->value; 58 | } 59 | 60 | /*** 61 | * @param value 62 | * @return ShippingType the ShippingType corresponding to the informed value 63 | */ 64 | public function getTypeFromValue($value = null) 65 | { 66 | $value = ($value === null ? $this->value : $value); 67 | return array_search($value, self::$typeList); 68 | } 69 | 70 | /*** 71 | * @param string 72 | * @return integer the code corresponding to the informed shipping type 73 | */ 74 | public static function getCodeByType($type) 75 | { 76 | if (isset(self::$typeList[$type])) { 77 | return self::$typeList[$type]; 78 | } else { 79 | return false; 80 | } 81 | } 82 | 83 | /*** 84 | * @param string $type 85 | * @return ShippingType a ShippingType object corresponding to the informed type 86 | */ 87 | public static function createByType($type) 88 | { 89 | $ShippingType = new ShippingType(); 90 | $ShippingType->setByType($type); 91 | return $ShippingType; 92 | } 93 | } 94 | -------------------------------------------------------------------------------- /src/application/libraries/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/application/logs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/application/models/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/application/models/system_log.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailvolpe/freelancer_billing/b8b845a9e6960cd6b86914452d05b34c01f45bf2/src/application/models/system_log.php -------------------------------------------------------------------------------- /src/application/models/system_mail.php: -------------------------------------------------------------------------------- 1 | config->load('smtp'); 10 | 11 | $this->smtp_name = $this->System_settings->settings->system_smtp_name; 12 | $this->smtp_email = $this->System_settings->settings->system_smtp_email; 13 | 14 | $this->smtp_host = $this->System_settings->settings->system_smtp_host; 15 | $this->smtp_port = $this->System_settings->settings->system_smtp_port; 16 | $this->smtp_user = $this->System_settings->settings->system_smtp_user; 17 | $this->smtp_pass = $this->System_settings->settings->system_smtp_pass; 18 | 19 | 20 | } 21 | 22 | 23 | function check_smtp_credentials($server, $username, $password){ 24 | 25 | $this->smtp_host = $server; 26 | $this->smtp_user = $username; 27 | $this->smtp_pass = $password; 28 | 29 | $test_to = $this->smtp_email; 30 | $test_subject = $this->lang->line('smtp_credentials_test'); 31 | $test_body = $this->lang->line('operation_success'); 32 | 33 | $error = $this->send_notification_email($test_to, $test_subject, $test_body); 34 | 35 | if($error){ 36 | 37 | throw new Exception($error); 38 | 39 | } 40 | 41 | return true; 42 | 43 | } 44 | 45 | function send_notification_email($to, $subject, $body, $debug=false){ 46 | 47 | $message = "
    "; 48 | $message .= $body; 49 | $message .= '
    '.$this->smtp_name; 50 | $message .= '
    '.$this->smtp_email.'

    '; 51 | $message .= "
    "; 52 | 53 | if($this->System_settings->settings->sendmail_mode == '1'){ 54 | $mail_config['protocol'] = 'smtp'; 55 | }else{ 56 | $mail_config['protocol'] = 'mail'; 57 | } 58 | 59 | $mail_config['smtp_port'] = $this->smtp_port; 60 | $mail_config['smtp_host'] = $this->smtp_host; 61 | $mail_config['smtp_user'] = $this->smtp_user; 62 | $mail_config['smtp_pass'] = $this->smtp_pass; 63 | 64 | $mail_config['charset'] = 'utf-8'; 65 | $mail_config['mailtype'] = 'html'; 66 | 67 | #EMAILS START 68 | 69 | $this->email->clear(); 70 | 71 | $this->email->initialize($mail_config); 72 | 73 | $this->email->from($this->smtp_email, $this->smtp_name); 74 | 75 | $this->email->to($to); 76 | 77 | $this->email->subject($this->smtp_name.' - '.$subject); 78 | 79 | $this->email->message($message); 80 | 81 | if(!@$this->email->send()){ 82 | 83 | 84 | if($debug){ 85 | return $this->email->print_debugger(); 86 | }else{ 87 | return $this->lang->line($mail_config['protocol'].'_failed'); 88 | } 89 | 90 | }else{ 91 | 92 | return false; 93 | 94 | } 95 | 96 | 97 | } 98 | 99 | 100 | } -------------------------------------------------------------------------------- /src/application/models/system_notification.php: -------------------------------------------------------------------------------- 1 | lang->line($event_name); 17 | 18 | $title = $this->lang->line($event_name.'_subject'); 19 | 20 | }else{ 21 | 22 | $message = $this->System_settings->settings->$event_name; 23 | 24 | $title = $this->System_settings->settings->{$event_name.'_subject'}; 25 | 26 | } 27 | 28 | 29 | 30 | foreach($data as $key => $value){ 31 | 32 | $message = str_replace("{".$key."}", $value, $message); 33 | 34 | $title = str_replace("{".$key."}", $value, $title); 35 | 36 | } 37 | 38 | if($sendmail AND $to){ 39 | 40 | #Adiciona a imagem de rastreio ao final da notificação 41 | if($invoice_notification_uniqid){ 42 | 43 | $message .= ''; 44 | 45 | } 46 | 47 | $send_error = $this->System_mail->send_notification_email($to, $title, $message, $debug); 48 | 49 | if( $send_error ){ 50 | 51 | return $send_error; 52 | 53 | }else{ 54 | 55 | return true; 56 | 57 | } 58 | 59 | }else{ 60 | 61 | $notification = new stdClass; 62 | 63 | $notification->to = $to; 64 | 65 | $notification->subject = $title; 66 | 67 | $notification->message = $message; 68 | 69 | return $notification; 70 | 71 | } 72 | 73 | 74 | 75 | } 76 | 77 | } 78 | 79 | 80 | /* End of file system_notification.php */ 81 | /* Location: ./application/models/system_notification.php */ -------------------------------------------------------------------------------- /src/application/models/system_settings.php: -------------------------------------------------------------------------------- 1 | load->helper('file'); 13 | 14 | $this->filepath = 'settings.json'; 15 | 16 | $this->settings = $this->get_settings(); 17 | 18 | } 19 | 20 | function get_sendmail_modes(){ 21 | 22 | return array( 23 | "0"=>"mail()", 24 | "1"=>"SMTP" 25 | ); 26 | 27 | } 28 | 29 | function get_settings(){ 30 | 31 | $string = read_file($this->filepath); 32 | 33 | $settings = (object) unserialize($string); 34 | 35 | return $settings; 36 | 37 | } 38 | 39 | 40 | function update($item){ 41 | 42 | $data = serialize($item); 43 | 44 | if ( ! write_file($this->filepath, $data)) 45 | { 46 | throw new Exception($this->lang->line('operation_fail')); 47 | } 48 | else 49 | { 50 | return true; 51 | } 52 | 53 | } 54 | 55 | } 56 | 57 | 58 | /* End of file System_settings.php */ 59 | /* Location: ./application/models/System_settings.php */ -------------------------------------------------------------------------------- /src/application/models/system_update.php: -------------------------------------------------------------------------------- 1 | $this->lang->line('january'), 11 | '02' => $this->lang->line('february'), 12 | '03' => $this->lang->line('march'), 13 | '04' => $this->lang->line('april'), 14 | '05' => $this->lang->line('may'), 15 | '06' => $this->lang->line('june'), 16 | '07' => $this->lang->line('july'), 17 | '08' => $this->lang->line('august'), 18 | '09' => $this->lang->line('september'), 19 | '10' => $this->lang->line('october'), 20 | '11' => $this->lang->line('november'), 21 | '12' => $this->lang->line('december'), 22 | 23 | ); 24 | 25 | } 26 | 27 | 28 | 29 | function __construct() 30 | { 31 | 32 | // Call the Model constructor 33 | 34 | parent::__construct(); 35 | 36 | ob_start(); 37 | 38 | # Timezone Setting 39 | 40 | date_default_timezone_set("America/Sao_Paulo"); 41 | 42 | # Update module also has to keep all controllers updated. 43 | 44 | $this->form_validation->set_error_delimiters('', ''); 45 | } 46 | 47 | } 48 | 49 | 50 | /* End of file c_cron_update.php */ 51 | /* Location: ./application/models/c_cron_update.php */ -------------------------------------------------------------------------------- /src/application/third_party/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/application/views/accounts/create.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 20 | 21 | 22 | 23 | 24 |
    25 | 26 |
    27 | 28 | 33 | 34 |
    35 | 36 | 37 | 38 |
    39 | 40 |
    41 | 42 | 43 |
    44 | 45 | 50 | 51 |
    52 | 53 | 54 | 55 |
    56 | 57 |
    58 | 59 |
    60 | 61 | 66 | 67 |
    68 | 69 | 70 | 71 |
    72 | 73 |
    74 | 75 |
    76 | 77 | 82 | 83 |
    84 | 85 | 86 | 87 |
    88 | 89 |
    90 | 91 | 92 |
    93 | 94 |
    95 | 96 |
    97 | 98 | 108 | 109 | 110 |
    111 | 112 | 117 | 118 |
    119 | 120 |
    121 | 122 |
    123 | 124 |
    125 | 126 | 127 | 128 | 129 |
    130 | -------------------------------------------------------------------------------- /src/application/views/accounts/inputs.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | "0", "Sim"=>"1"), $item->account_must_change_pass, "name='account_must_change_pass'");?> 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /src/application/views/accounts/remove.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 13 | 14 | 15 | 16 | 17 |
    18 | 19 | 20 | 21 | 22 |
    23 | 24 | 29 | 30 |
    31 | 32 |

    33 | lang->line('confirm_removal')?> 34 |

    35 | 36 |
    37 | 38 |
    39 | 40 | 41 |
    42 | 43 |
    44 | 45 |
    46 | 47 | 54 | 55 |
    56 | 61 |
    62 | 63 |
    64 | 65 |
    66 | 67 |
    68 | 69 | 70 | 71 |
    -------------------------------------------------------------------------------- /src/application/views/accounts/rows.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Account->get_account_data($item); 8 | 9 | $item->account_role = $account_data->account_role; 10 | 11 | $item->photo_path = $account_data->photo_path; 12 | 13 | $change_pass = display_bool_value($item->account_must_change_pass, $this->lang->line('account_must_change_pass'), null, null, true); 14 | 15 | $acc_info = display_bool_value($item->account_blocked_date, $this->lang->line('account_blocked_date'), $change_pass, null, true); 16 | 17 | ?> 18 | 19 | 20 | 21 | 22 | 23 | 24 | account_is_admin?'':false?> 25 | 26 | 27 | account_title), 45)?> 28 | 29 | 30 | 31 |
    32 | account_email), 45)?> 33 |
    34 | 35 |
    36 | 37 | 38 | 39 | account_is_admin?'':false?> 40 | account_title), 45)?> 41 |
    42 | 43 | 44 | 45 | account_email), 45)?> 46 | 47 | 48 | 49 | 50 | 51 | 52 | lang->line('active_recurrencies')?>: Account->count_active_recurrencies($item->account_id)?> 53 | 54 | 55 |
    56 | 57 | lang->line('unpaid_invoices')?>: Account->count_unpaid_invoices($item->account_id)?> 58 | 59 | 60 | 61 | 62 | 63 | account_last_access_date, true, $this->lang->line('no_record'));?> 64 | account_last_access_ip){?>
    account_last_access_ip), 45)?>
    65 | 66 | 67 | 68 | account_updated_date, true);?> 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | lang->line('view')?> 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | -------------------------------------------------------------------------------- /src/application/views/accounts/update.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | 17 | 18 | 19 |
    20 | 21 | 22 | 23 | 24 |
    25 | 26 |
    27 | 28 | 29 | 30 | 31 |
    32 | 33 | 38 | 39 |
    40 | 41 | 42 | account_title));?> 43 | 44 |
    45 | 46 |
    47 | 48 | 49 |
    50 | 51 | 56 | 57 |
    58 | 59 | 60 | account_email));?> 61 | 62 |
    63 | 64 |
    65 | 66 |
    67 | 68 | 73 | 74 |
    75 | 76 | 77 | account_must_change_pass));?> 78 | 79 |
    80 | 81 |
    82 | 83 | 84 | 85 |
    86 | 87 |
    88 | 89 |
    90 | 91 | 100 | 101 |
    102 | 103 | 104 | 109 | 110 |
    111 | 112 |
    113 | 114 |
    115 | 116 |
    117 | 118 | 119 | 120 |
    121 | -------------------------------------------------------------------------------- /src/application/views/documents/balance.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 18 | 19 | 20 | 21 | 22 |
    23 | 24 |
    25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 37 | 38 | 42 | 43 | 44 | 45 | 46 | 47 | 54 | 55 | 75 | 76 | 77 | 78 | 79 | 88 | 89 | 90 | 91 | 92 | 93 |
    33 | 34 | invoice_id)?> 35 | 36 | 39 | account_title), 45)?> 40 |
    account_email?>
    41 |
    56 | 57 | Invoice->get_invoice_status($item); ?> 58 | 59 | 60 | 61 |
    lang->line('invoice_status_pending_overdue');?>
    62 | 63 | 64 | 65 |
    lang->line('invoice_status_paid');?>
    66 | 67 | 68 | 69 | invoice_paid_date);?> 70 | 71 |
    lang->line('invoice_notifications')?>: total_notifications?> 72 | 73 | 74 |
    80 | 81 | 82 | 83 | lang->line('view')?> 84 | 85 | 86 | 87 |
    94 | 95 |
    96 | 97 |
    -------------------------------------------------------------------------------- /src/application/views/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/application/views/invoice_notifications/create.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 23 | 24 | 25 | 26 | 27 |
    28 | 29 | 30 | 31 |
    32 | 33 | 38 | 39 |
    40 | 41 |

    42 | lang->line($invoice_statuses[$invoice->invoice_status]);?> 43 |

    44 | 45 |
    46 | 47 |
    48 | 49 |
    50 | 51 | 56 | 57 |
    58 | 59 |

    60 | to;?> 61 |

    62 | 63 |
    64 | 65 |
    66 | 67 |
    68 | 69 | 74 | 75 |
    76 | 77 |

    78 | subject;?> 79 |

    80 | 81 |
    82 | 83 |
    84 | 85 |
    86 | 87 | 92 | 93 |
    94 | 95 |
    96 | 97 | message;?> 98 | 99 |
    100 | 101 |
    102 | 103 |
    104 | 105 |
    106 | 107 |
    108 | 109 |
    110 | 111 | 121 | 122 | 123 |
    124 | 125 | 130 | 131 |
    132 | 133 |
    134 | 135 |
    136 | 137 |
    138 | 139 | 140 | 141 | 142 |
    143 | -------------------------------------------------------------------------------- /src/application/views/invoice_notifications/inputs.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | invoice_notification_invoice_id?>", "name='invoice_notification_invoice_id'");?> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/application/views/invoice_notifications/remove.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 13 | 14 | 15 | 16 | 17 |
    18 | 19 | 20 | 21 | 22 |
    23 | 24 | 29 | 30 |
    31 | 32 |

    33 | lang->line('confirm_removal')?> 34 |

    35 | 36 |
    37 | 38 |
    39 | 40 | 41 |
    42 | 43 |
    44 | 45 |
    46 | 47 | 54 | 55 |
    56 | 61 |
    62 | 63 |
    64 | 65 |
    66 | 67 |
    68 | 69 | 70 | 71 |
    -------------------------------------------------------------------------------- /src/application/views/invoice_notifications/rows.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | invoice_notification_sent)?> 8 | 9 | 10 | 11 | 12 | lang->line($invoice_statuses[$item->invoice_notification_type])?> 13 | 14 | 15 | 16 | 17 | invoice_notification_read);?> 18 | invoice_notification_read_ip), 45)?> 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | lang->line('view')?> 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /src/application/views/invoice_notifications/update.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | 17 | 18 | 19 |
    20 | 21 | 22 | 23 | 24 |
    25 | 26 |
    27 | 28 | 29 | 30 |
    31 | 32 | 37 | 38 |
    39 | 40 | 41 | invoice_notification_invoice_id));?> 42 | 43 |
    44 | 45 |
    46 | 47 |
    48 | 49 | 54 | 55 |
    56 | 57 | 58 | invoice_notification_type));?> 59 | 60 |
    61 | 62 |
    63 | 64 |
    65 | 66 | 71 | 72 |
    73 | 74 | 75 | invoice_notification_read));?> 76 | 77 |
    78 | 79 |
    80 | 81 |
    82 | 83 | 88 | 89 |
    90 | 91 | 92 | invoice_notification_read_ip));?> 93 | 94 |
    95 | 96 |
    97 | 98 | 99 | 100 | 101 |
    102 | 103 |
    104 | 105 |
    106 | 107 | 116 | 117 |
    118 | 119 | 120 | 125 | 126 |
    127 | 128 |
    129 | 130 |
    131 | 132 |
    133 | 134 | 135 | 136 |
    137 | -------------------------------------------------------------------------------- /src/application/views/invoice_status_updates/create.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | 17 | 18 | 19 | 20 |
    21 | 22 | 23 |
    24 | 25 | 30 | 31 |
    32 | 33 | 34 | 35 |
    36 | 37 |
    38 | 39 |
    40 | 41 | 46 | 47 |
    48 | 49 | 50 | 51 |
    52 | 53 |
    54 | 55 |
    56 | 57 | 62 | 63 |
    64 | 65 | 66 | 67 |
    68 | 69 |
    70 | 71 |
    72 | 73 | 78 | 79 |
    80 | 81 | 82 | 83 |
    84 | 85 |
    86 | 87 |
    88 | 89 |
    90 | 91 |
    92 | 93 | 103 | 104 | 105 |
    106 | 107 | 112 | 113 |
    114 | 115 |
    116 | 117 |
    118 | 119 |
    120 | 121 | 122 | 123 | 124 |
    125 | -------------------------------------------------------------------------------- /src/application/views/invoice_status_updates/inputs.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | invoice_status_update_invoice_id?>", "name='invoice_status_update_invoice_id'");?> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/application/views/invoice_status_updates/remove.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 13 | 14 | 15 | 16 | 17 |
    18 | 19 | 20 | 21 | 22 |
    23 | 24 | 29 | 30 |
    31 | 32 |

    33 | lang->line('confirm_removal')?> 34 |

    35 | 36 |
    37 | 38 |
    39 | 40 | 41 |
    42 | 43 |
    44 | 45 |
    46 | 47 | 54 | 55 |
    56 | 61 |
    62 | 63 |
    64 | 65 |
    66 | 67 |
    68 | 69 | 70 | 71 |
    -------------------------------------------------------------------------------- /src/application/views/invoice_status_updates/rows.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | invoice_status_update_datetime);?> 7 | invoice_status_update_gateway]?> 8 | invoice_status_update_status_code]?> 9 | invoice_status_update_transaction), 45)?> 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | lang->line('view')?> 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /src/application/views/invoice_status_updates/view.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 17 | 18 | 19 | 20 | 21 |
    22 | 23 |
    24 | 25 | 26 |
    27 | 28 | 33 | 34 |
    35 | 36 |

    37 | 38 | invoice_status_update_datetime, true);?> 39 | 40 |

    41 | 42 |
    43 | 44 |
    45 | 46 |
    47 | 48 | 53 | 54 |
    55 | 56 |

    57 | 58 | invoice_status_update_gateway]?> 59 | 60 |

    61 | 62 |
    63 | 64 |
    65 | 66 | 67 |
    68 | 69 | 74 | 75 |
    76 | 77 |

    78 | 79 | invoice_status_update_status_code]?> 80 | 81 |

    82 | 83 |
    84 | 85 |
    86 | 87 |
    88 | 89 | 94 | 95 |
    96 | 97 |

    98 | 99 | invoice_status_update_transaction?> 100 | 101 |

    102 | 103 |
    104 | 105 |
    106 | 107 |
    108 | 109 | 110 |
    111 | 112 | 113 | lang->line('back')?> 114 | 115 | 116 | invoice_status_updates/update/invoice_status_update_id?> " > 118 | 119 | lang->line('update')?> 120 | 121 | 122 | */?> 123 | 124 | 125 | 126 | lang->line('remove')?> 127 | 128 | 129 | 130 | 131 |
    132 | 133 |
    -------------------------------------------------------------------------------- /src/application/views/invoices/inputs.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | invoice_account_id?>", "name='invoice_account_id'");?> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/application/views/invoices/remove.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 13 | 14 | 15 | 16 | 17 |
    18 | 19 | 20 | 21 | 22 |
    23 | 24 | 29 | 30 |
    31 | 32 |

    33 | lang->line('confirm_removal')?> 34 |

    35 | 36 |
    37 | 38 |
    39 | 40 | 41 |
    42 | 43 |
    44 | 45 |
    46 | 47 | 54 | 55 |
    56 | 61 |
    62 | 63 |
    64 | 65 |
    66 | 67 |
    68 | 69 | 70 | 71 |
    -------------------------------------------------------------------------------- /src/application/views/invoices/rows.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | invoice_id)?> 8 | 9 | 10 | 11 | 12 | invoice_recurrency_id){?> 13 | 14 | invoice_recurrency_id)?> 15 | 16 | 17 | 18 | 19 | 20 | account_title), 45)?> 21 |
    account_email?>
    22 | 23 | 24 | invoice_amount)?> 25 | 26 | invoice_description), 45)?> 27 | 28 | 29 | 30 | invoice_due_date);?> 31 | 32 |
    lang->line('invoice_status_updates')?>: total_status_updates?> 33 | 34 | 35 | 36 | 37 | 38 | Invoice->get_invoice_status($item); ?> 39 | 40 | 41 | 42 |
    lang->line('invoice_status_pending_overdue');?>
    43 | 44 | 45 | 46 |
    lang->line('invoice_status_paid');?>
    47 | 48 | 49 | 50 | invoice_paid_date);?> 51 | 52 |
    lang->line('invoice_notifications')?>: total_notifications?> 53 | 54 | 55 | 56 | 57 | invoice_created_date, false, false, true);?> 58 | 59 | 60 | 61 | 62 | 63 | 64 | lang->line('view')?> 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /src/application/views/recurrencies/inputs.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | recurrency_account_id?>", "name='recurrency_account_id'");?> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | recurrency_limit?>", "name='recurrency_limit'");?> 14 | 15 | "0", "Sim"=>"1"), $item->recurrency_start, "name='recurrency_start'");?> 16 | 17 | -------------------------------------------------------------------------------- /src/application/views/recurrencies/remove.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 13 | 14 | 15 | 16 | 17 |
    18 | 19 | 20 | 21 | 22 |
    23 | 24 | 29 | 30 |
    31 | 32 |

    33 | lang->line('confirm_removal')?> 34 |

    35 | 36 |
    37 | 38 |
    39 | 40 | 41 |
    42 | 43 |
    44 | 45 |
    46 | 47 | 54 | 55 |
    56 | 61 |
    62 | 63 |
    64 | 65 |
    66 | 67 |
    68 | 69 | 70 | 71 |
    -------------------------------------------------------------------------------- /src/application/views/recurrencies/rows.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | recurrency_id)?> 8 | 9 | account_title), 45)?> 10 |
    account_email?>
    11 | recurrency_amount)?> 12 | recurrency_description), 45)?> 13 | 14 | 15 | 16 | 17 | recurrency_when_day, $item->recurrency_when_month)?> 18 | 19 | 20 | 21 | recurrency_limit, $this->lang->line('unlimited_recurrency'), true, false, ' '.$this->lang->line('recurrency_iterations'));?> 22 | 23 | 24 | 25 | Recurrency->count_generated_invoices($item->recurrency_id);?> 26 | 27 | 28 | 29 | 30 | 31 | recurrency_start, false, false, true, false); ?> 32 | 33 | Recurrency->is_recurrency_over($item)?$this->lang->line('recurrency_over'):$recurrency_status?> 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | lang->line('view')?> 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /src/application/views/settings/password.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | 17 | 18 | 19 |
    20 | 21 | 22 | 23 | 24 |
    25 | 26 |
    27 | 28 | 29 | 30 | 31 |
    32 | 33 | 38 | 39 |
    40 | 41 | 42 | 43 | 44 |
    45 | 46 |
    47 | 48 | 49 |
    50 | 51 |
    52 | 53 |
    54 | 55 | 64 | 65 |
    66 | 67 | 68 | 73 | 74 |
    75 | 76 |
    77 | 78 |
    79 | 80 |
    81 | 82 | 83 | 84 |
    85 | -------------------------------------------------------------------------------- /src/application/views/settings/update.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | 17 | 18 | 19 |
    20 | 21 | 22 | 23 | 24 |
    25 | 26 |
    27 | 28 | 29 | 30 |
    31 | 32 | 37 | 38 |
    39 | 40 | 41 | account_title));?> 42 | 43 |
    44 | 45 |
    46 | 47 | 48 |
    49 | 50 | 55 | 56 |
    57 | 58 | 59 | account_email));?> 60 | 61 |
    62 | 63 |
    64 | 65 | 66 |
    67 | 68 |
    69 | 70 |
    71 | 72 | 81 | 82 |
    83 | 84 | 85 | 90 | 91 |
    92 | 93 |
    94 | 95 |
    96 | 97 |
    98 | 99 | 100 | 101 |
    102 | -------------------------------------------------------------------------------- /src/application/views/settings/view.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 17 | 18 | 19 | 20 | 21 |
    22 | 23 |
    24 | 25 |
    26 | 27 | 32 | 33 |
    34 | 35 |

    36 | 37 | account_title?> 38 | 39 |

    40 | 41 |
    42 | 43 |
    44 | 45 | 46 |
    47 | 48 | 53 | 54 |
    55 | 56 |

    57 | 58 | account_email?> 59 | 60 |

    61 | 62 |
    63 | 64 |
    65 | 66 |
    67 | 68 | 73 | 74 |
    75 | 76 |

    77 | 78 | account_is_client ? $this->lang->line('account_is_client') : $this->lang->line('account_is_regular')*/?> 79 | 80 | Account->get_account_data($item); 82 | 83 | $item->account_role = $account_data->account_role; 84 | 85 | ?> 86 | 87 | account_role?> 88 | 89 |

    90 | 91 |
    92 | 93 |
    94 | 95 | 96 |
    97 | 98 | 103 | 104 |
    105 | 106 |

    107 | 108 | account_created_date, true);?> 109 | 110 |

    111 | 112 |
    113 | 114 |
    115 | 116 | 117 |
    118 | 119 | 120 |
    121 | 122 | 123 | 124 | lang->line('update')?> 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | lang->line('change_password')?> 133 | 134 | 135 | 136 | 137 |
    138 | 139 |
    -------------------------------------------------------------------------------- /src/application/views/system_files/delete.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 13 | 14 | 15 | 16 |
    17 | 18 | 19 | 20 | 21 |
    22 | 23 | 29 | 30 |
    31 | 32 |

    33 | lang->line('confirm_removal')?> 34 |

    35 | 36 |
    37 | 38 |
    39 | 40 | 41 |
    42 | 43 |
    44 | 45 |
    46 | 47 | 54 | 55 |
    56 | 61 |
    62 | 63 |
    64 | 65 |
    66 | 67 |
    68 | 69 | 70 | 71 |
    -------------------------------------------------------------------------------- /src/application/views/system_files/update.php: -------------------------------------------------------------------------------- 1 |

    2 | Atualizar file_name?> 3 |
    4 | Voltar 5 |
    6 |

    7 | 8 | 9 |
    10 | 11 | 12 | 13 |
    14 | 15 | file_title));?> 16 |
    17 | 18 |
    19 | 20 | file_description));?> 21 |
    22 | 23 |
    24 | 25 | file_index_date));?> 26 |
    27 | 28 |
    29 | 30 | file_index_time), true);?> 31 |
    32 | 33 |
    34 | 35 | file_index_order), 0.01);?> 36 |
    37 | 38 | 39 |
    -------------------------------------------------------------------------------- /src/application/views/template/admin_components/applied_filters.php: -------------------------------------------------------------------------------- 1 | 7 | 8 |
    9 | 10 |
    11 | 12 | $value){ 13 | 14 | $add_string = ""; 15 | 16 | $url_key = $key; ## Inalterada 17 | 18 | #SET TIVER UM _DISPLAY EXIBE O _DISPLAY 19 | 20 | if(isset($_GET[$key.'_display']) AND $value !== ''){ 21 | 22 | $value = $_GET[$key.'_display']; 23 | 24 | } 25 | 26 | #SE FOR BOOLEANO 27 | if(strstr($key, "is_") AND $value !== ''){ 28 | 29 | $value = display_bool_value($value); 30 | 31 | } 32 | 33 | #SE FOR MIN 34 | if(strstr($key, "_min") AND $value !== ''){ 35 | 36 | $key = str_replace("_min", "", $key); 37 | 38 | $add_string = ' '.$this->lang->line('range_min'); 39 | 40 | } 41 | 42 | #SE FOR MAX 43 | if(strstr($key, "_max") AND $value !== ''){ 44 | 45 | $key = str_replace("_max", "", $key); 46 | 47 | $add_string = ' '.$this->lang->line('range_max'); 48 | 49 | } 50 | 51 | $value = format_value($value); 52 | 53 | $key = format_key($key); 54 | 55 | if($value===false OR $key===false){ 56 | 57 | continue; 58 | 59 | }else{ 60 | 61 | $filtered = true; 62 | 63 | } 64 | 65 | ?> 66 | 67 | 68 | 69 | x 70 | 71 | lang->line($key).$add_string?>: 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 84 | 85 | 86 | 87 | 88 |
    89 | 90 |
    -------------------------------------------------------------------------------- /src/application/views/template/admin_components/breadcrumbs.php: -------------------------------------------------------------------------------- 1 | uri->segment(3)){ 5 | 6 | $active_label = $this->lang->line($this->uri->segment(3)); 7 | 8 | if($active_label_string){$active_label = $active_label_string;} 9 | 10 | }elseif($this->uri->segment(2)){ 11 | 12 | $active_label = $this->lang->line($this->uri->segment(2)); 13 | 14 | }else{ 15 | $active_label = false; 16 | } 17 | 18 | if($custom_url){ 19 | 20 | $url = $custom_url; 21 | 22 | }else{ 23 | 24 | $url = $this->uri->segment(2); 25 | 26 | } 27 | 28 | ?> 29 | 30 | -------------------------------------------------------------------------------- /src/application/views/template/admin_components/inputs/bool_filter_field.php: -------------------------------------------------------------------------------- 1 | line() 7 | 8 | $value - Datetime value or 0 9 | 10 | $on_label - - determines label using lang->line() 11 | 12 | $off_label - determines label using lang->line() 13 | 14 | */ 15 | 16 | if(!$on_label){ 17 | 18 | $on_label = $this->lang->line('yes'); 19 | 20 | } 21 | 22 | if(!$off_label){ 23 | 24 | $off_label = $this->lang->line('no'); 25 | 26 | } 27 | 28 | if(!$both_label){ 29 | 30 | $both_label = $this->lang->line('both'); 31 | 32 | } 33 | 34 | $check_string = ''; 35 | 36 | if($value>0){ 37 | 38 | $value = '1'; 39 | 40 | }elseif($value==='0'){ 41 | 42 | $value = '0'; 43 | 44 | }else{ 45 | 46 | $value = null; 47 | 48 | } 49 | 50 | ?> 51 | 52 | 53 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /src/application/views/template/admin_components/inputs/bool_switch.php: -------------------------------------------------------------------------------- 1 | line() 7 | 8 | $value - Datetime value or 0 9 | 10 | $on_label - - determines label using lang->line() 11 | 12 | $off_label - determines label using lang->line() 13 | 14 | */ 15 | 16 | if(!$on_label){ 17 | 18 | $on_label = $this->lang->line('yes'); 19 | 20 | } 21 | 22 | if(!$off_label){ 23 | 24 | $off_label = $this->lang->line('no'); 25 | 26 | } 27 | 28 | $check_string = 'checked="checked"'; 29 | $check_on = $check_off = false; 30 | 31 | if($value>0){ 32 | 33 | $value = '1'; 34 | $check_on = $check_string; 35 | 36 | 37 | }else{ 38 | 39 | $value = '0'; 40 | $check_off = $check_string; 41 | 42 | } 43 | 44 | ?> 45 | 46 | $off_label, "1"=>$on_label), $value)?> 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /src/application/views/template/admin_components/inputs/city_input.php: -------------------------------------------------------------------------------- 1 | >>'.$city_field_value; 4 | 5 | if($city_field_value AND !$state_field_value){ 6 | 7 | $state_field_value = $this->System_update->get_state_value_by_city_id($city_field_value); 8 | 9 | } 10 | 11 | $states = $this->System_update->get_addr_states(); 12 | 13 | $cities = array(); 14 | 15 | ?> 16 | 17 | 18 |
    19 | 20 |
    21 | 22 | 23 | 24 | 42 | 43 |
    44 | 45 | 46 |
    47 | 48 | 49 |
    50 | 51 | 52 |
    53 | 54 | 55 | 56 |
    57 |
    58 | 59 | 60 | -------------------------------------------------------------------------------- /src/application/views/template/admin_components/inputs/code_input.php: -------------------------------------------------------------------------------- 1 | line() 7 | 8 | $value 9 | 10 | */ 11 | 12 | 13 | ?> 14 | 15 | 16 | 17 | 18 | 19 |
    23 | 24 | 25 | 26 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /src/application/views/template/admin_components/inputs/color_input.php: -------------------------------------------------------------------------------- 1 | line() 7 | 8 | $value 9 | 10 | */ 11 | 12 | if(!$parameters){$parameters = 'type="text"';} 13 | 14 | $bg_value = $value; 15 | 16 | if($value == ''){ 17 | 18 | $bg_value = '#ffffff'; 19 | 20 | } 21 | 22 | ?> 23 | 24 | 25 | > 26 | 27 | 28 | -------------------------------------------------------------------------------- /src/application/views/template/admin_components/inputs/datetime_picker.php: -------------------------------------------------------------------------------- 1 | line() 7 | 8 | $value - Datetime value or null 9 | 10 | $time - If (true) sets to time Input 11 | 12 | 13 | */ 14 | 15 | $type = "date"; 16 | 17 | $date = explode(" ", $value); 18 | 19 | $val = $date[0]; 20 | 21 | if($time){ 22 | 23 | $type = "time"; 24 | $val = isset($date[1])?$date[1]:$date[0]; 25 | 26 | } 27 | 28 | 29 | ?> 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /src/application/views/template/admin_components/inputs/fk_input.php: -------------------------------------------------------------------------------- 1 | line() 7 | 8 | $controller - Sets the foreign controller 9 | 10 | $value 11 | 12 | $display_value 13 | 14 | $option_filter #array('field'=>'field_name', 'value'=>'parent_item_id') 15 | 16 | */ 17 | if($optional){$sm="9";}else{$sm="12";} 18 | 19 | $option_filters = ""; 20 | 21 | if(count($option_filter)==2){ 22 | 23 | $option_filters = ", '".$option_filter['field']."', '".$option_filter['value']."'"; 24 | 25 | } 26 | 27 | ?> 28 | 29 |
    30 | 31 |
    32 | 33 | 43 | 44 | 45 | 46 |
    47 | 48 | 49 | 50 |
    51 | 52 | 57 | 58 |
    59 | 60 | 61 | 62 |
    63 | 64 | -------------------------------------------------------------------------------- /src/application/views/template/admin_components/inputs/number_input.php: -------------------------------------------------------------------------------- 1 | line() 7 | 8 | $value 9 | 10 | $step 11 | 12 | $min 13 | 14 | $max 15 | 16 | */ 17 | 18 | 19 | ?> 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/application/views/template/admin_components/inputs/rate_input.php: -------------------------------------------------------------------------------- 1 | line() 7 | 8 | $value 9 | 10 | $readonly 11 | 12 | */ 13 | 14 | if($readonly){ 15 | 16 | $readonly_value = 'true'; 17 | 18 | }else{ 19 | 20 | $readonly_value = 'false'; 21 | 22 | } 23 | 24 | ?> 25 | 26 | 27 | 28 |
    29 | 30 | -------------------------------------------------------------------------------- /src/application/views/template/admin_components/inputs/rich_text_input.php: -------------------------------------------------------------------------------- 1 | line() 7 | 8 | $value 9 | 10 | $rich_mode 11 | 12 | $char_limit - NO USE IN THIS EDITOR 13 | 14 | */ 15 | 16 | $readonly = $readonly ? ', readOnly : true' : false; 17 | 18 | $less_toolbar = $less_toolbar ? ", toolbar : [ [ 'Source', '-', 'NewPage', 'Preview', '-', 'Templates' ] ]" : false; 19 | 20 | ?> 21 | 22 | 23 | 24 | 25 | 28 | 29 | 30 | 31 | lang->line('type_here')?>" name="" id=""> 33 | 34 | 35 | 36 | 47 | 48 | */?> 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /src/application/views/template/admin_components/inputs/select_input.php: -------------------------------------------------------------------------------- 1 | line() 7 | 8 | $options_array 9 | 10 | $selected_value 11 | 12 | $string 13 | 14 | */ 15 | 16 | 17 | $check = null; 18 | $parameters = null; 19 | $checkLine = 'selected="selected"'; 20 | 21 | 22 | 23 | if(is_array($params)){ 24 | foreach($params as $key=>$value){ 25 | $parameters .= $key.'="'.$value.'"'; 26 | } 27 | } 28 | else 29 | { 30 | $parameters = $params; 31 | } 32 | 33 | ?> 34 | 35 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /src/application/views/template/admin_components/inputs/string_input.php: -------------------------------------------------------------------------------- 1 | line() 7 | 8 | $value 9 | 10 | */ 11 | 12 | if(!$parameters){$parameters = 'type="text"';} 13 | 14 | ?> 15 | 16 | > 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/application/views/template/admin_components/inputs/textarea_input.php: -------------------------------------------------------------------------------- 1 | line() 7 | 8 | $value 9 | 10 | $rich_mode 11 | 12 | $char_limit 13 | 14 | */ 15 | 16 | 17 | $allowed_charlimit = $char_limit; 18 | 19 | if(!$char_limit OR $char_limit==0){ 20 | 21 | $char_limit = "255"; 22 | 23 | $allowed_charlimit="0"; 24 | 25 | } 26 | 27 | if($char_limit > 1000){ 28 | 29 | $char_limit = "1000"; 30 | 31 | } 32 | 33 | ?> 34 | 35 | 67 | 68 | -------------------------------------------------------------------------------- /src/application/views/template/admin_components/inputs/zipcode_script.php: -------------------------------------------------------------------------------- 1 | 13 | 14 | 80 | -------------------------------------------------------------------------------- /src/application/views/template/admin_components/modal_search.php: -------------------------------------------------------------------------------- 1 |  2 | 3 | 56 | 57 | -------------------------------------------------------------------------------- /src/application/views/template/admin_components/no_results_warning.php: -------------------------------------------------------------------------------- 1 | lang->line('no_results'); 9 | } 10 | 11 | 12 | ?> 13 | 14 |
    15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |

    23 | 24 | input->server('QUERY_STRING')){?> 25 | 26 | lang->line('no_results_retry')?> 27 | 28 | 29 | 30 | " > 31 | 32 | lang->line('clear_filters')?> 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | lang->line('no_results_at_all')?> 41 | 42 | 43 | 44 |

    45 | 46 |
    -------------------------------------------------------------------------------- /src/application/views/template/documents.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | load->view('template/head'); ?> 5 | 6 | 7 | 8 |
    9 | 10 |
    11 | 12 |
    13 | 14 |
    15 |

    System_settings->settings->system_title?>

    16 |
    17 | 18 | 19 |
    20 | 21 |
    22 | 23 |
    24 | 25 |
    26 | 27 | 28 | 29 |
    30 | 31 |
    32 | 33 | load->view('template/messages'); ?> 34 | 35 | load->view($page); ?> 36 | 37 |
    38 | 39 |
    40 | 41 |
    42 | 43 |
    44 | 45 | 58 | 59 |
    60 | 61 | 62 | 63 | 0){?> 64 | 65 | 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /src/application/views/template/head.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | <?=isset($page_title)?$page_title:$this->lang->line($this->router->fetch_class());?> 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | */ 36 | ?> 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 55 | 56 | 57 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /src/application/views/template/messages.php: -------------------------------------------------------------------------------- 1 | session->flashdata( 'message' ) ){ $message = $this->session->flashdata('message'); } 5 | 6 | if( $this->session->flashdata( 'message_class' ) ){ $message_class = $this->session->flashdata('message_class'); } 7 | 8 | if(!isset($message_class)){$message_class = "info";} 9 | 10 | ?> 11 | 12 | 13 | 14 | 15 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /src/application/views/template/modal.php: -------------------------------------------------------------------------------- 1 | 2 | 22 | -------------------------------------------------------------------------------- /src/application/views/template/sidebar-navbar.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assets/css/table-cells.css: -------------------------------------------------------------------------------- 1 | /* columns of same height styles */ 2 | 3 | .row-height { 4 | display: table; 5 | table-layout: fixed; 6 | height: 100%; 7 | width: 100%; 8 | } 9 | .col-height { 10 | display: table-cell; 11 | float: none; 12 | height: 100%; 13 | } 14 | .col-top { 15 | vertical-align: top; 16 | } 17 | .col-middle { 18 | vertical-align: middle; 19 | } 20 | .col-bottom { 21 | vertical-align: bottom; 22 | } 23 | 24 | @media (min-width: 0px) { 25 | .row-xs-height { 26 | display: table; 27 | table-layout: fixed; 28 | height: 100%; 29 | width: 100%; 30 | } 31 | .col-xs-height { 32 | display: table-cell; 33 | float: none; 34 | height: 100%; 35 | } 36 | .col-xs-top { 37 | vertical-align: top; 38 | } 39 | .col-xs-middle { 40 | vertical-align: middle; 41 | } 42 | .col-xs-bottom { 43 | vertical-align: bottom; 44 | } 45 | } 46 | 47 | @media (min-width: 768px) { 48 | .row-sm-height { 49 | display: table; 50 | table-layout: fixed; 51 | height: 100%; 52 | width: 100%; 53 | } 54 | .col-sm-height { 55 | display: table-cell; 56 | float: none; 57 | height: 100%; 58 | } 59 | .col-sm-top { 60 | vertical-align: top; 61 | } 62 | .col-sm-middle { 63 | vertical-align: middle; 64 | } 65 | .col-sm-bottom { 66 | vertical-align: bottom; 67 | } 68 | } 69 | 70 | @media (min-width: 992px) { 71 | .row-md-height { 72 | display: table; 73 | table-layout: fixed; 74 | height: 100%; 75 | width: 100%; 76 | } 77 | .col-md-height { 78 | display: table-cell; 79 | float: none; 80 | height: 100%; 81 | } 82 | .col-md-top { 83 | vertical-align: top; 84 | } 85 | .col-md-middle { 86 | vertical-align: middle; 87 | } 88 | .col-md-bottom { 89 | vertical-align: bottom; 90 | } 91 | } 92 | 93 | @media (min-width: 1200px) { 94 | .row-lg-height { 95 | display: table; 96 | table-layout: fixed; 97 | height: 100%; 98 | width: 100%; 99 | } 100 | .col-lg-height { 101 | display: table-cell; 102 | float: none; 103 | height: 100%; 104 | } 105 | .col-lg-top { 106 | vertical-align: top; 107 | } 108 | .col-lg-middle { 109 | vertical-align: middle; 110 | } 111 | .col-lg-bottom { 112 | vertical-align: bottom; 113 | } 114 | } -------------------------------------------------------------------------------- /src/assets/img/admin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailvolpe/freelancer_billing/b8b845a9e6960cd6b86914452d05b34c01f45bf2/src/assets/img/admin.png -------------------------------------------------------------------------------- /src/assets/img/client.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailvolpe/freelancer_billing/b8b845a9e6960cd6b86914452d05b34c01f45bf2/src/assets/img/client.png -------------------------------------------------------------------------------- /src/assets/img/login_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailvolpe/freelancer_billing/b8b845a9e6960cd6b86914452d05b34c01f45bf2/src/assets/img/login_background.png -------------------------------------------------------------------------------- /src/assets/img/no-user.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailvolpe/freelancer_billing/b8b845a9e6960cd6b86914452d05b34c01f45bf2/src/assets/img/no-user.jpg -------------------------------------------------------------------------------- /src/assets/js/app-mask.js: -------------------------------------------------------------------------------- 1 | var SPMaskBehavior = function (val) { 2 | return val.replace(/\D/g, '').length === 11 ? '(00) 00000-0000' : '(00) 0000-00009'; 3 | }, 4 | 5 | spOptions = { 6 | onKeyPress: function(val, e, field, options) { 7 | field.mask(SPMaskBehavior.apply({}, arguments), options); 8 | }, 9 | clearIfNotMatch: true 10 | }; 11 | 12 | function activateMasks(){ 13 | 14 | $( ".mask" ).each(function( index ) { 15 | 16 | if( $(this).hasClass('zipcode-mask') ){ 17 | 18 | $(this).mask('00000-000', {clearIfNotMatch: true}); 19 | 20 | } 21 | 22 | if( $(this).hasClass('cnpj-mask') ){ 23 | 24 | $(this).mask('00.000.000/0000-00', {clearIfNotMatch: true}); 25 | 26 | } 27 | 28 | if( $(this).hasClass('cpf-mask') ){ 29 | 30 | $(this).mask('000.000.000-00', {clearIfNotMatch: true}); 31 | 32 | } 33 | 34 | if( $(this).hasClass('phone-mask') ){ 35 | 36 | $(this).mask(SPMaskBehavior, spOptions); 37 | 38 | } 39 | 40 | }); 41 | 42 | } 43 | 44 | activateMasks(); -------------------------------------------------------------------------------- /src/assets/js/app.js: -------------------------------------------------------------------------------- 1 | $(function () { 2 | $('[data-toggle="tooltip"]').tooltip() 3 | }) 4 | 5 | 6 | function activate_element_events() { 7 | 8 | console.log('Elements activated'); 9 | 10 | } 11 | 12 | 13 | function getUrlParameter(sParam) 14 | { 15 | var sPageURL = window.location.search.substring(1); 16 | 17 | var sURLVariables = sPageURL.split('&'); 18 | 19 | for (var i = 0; i < sURLVariables.length; i++) { 20 | 21 | var sParameterName = sURLVariables[i].split('='); 22 | 23 | if (sParameterName[0] == sParam){ 24 | 25 | return sParameterName[1]; 26 | 27 | } 28 | 29 | } 30 | 31 | } 32 | 33 | 34 | function strstr(haystack, needle, bool) { 35 | // discuss at: http://phpjs.org/functions/strstr/ 36 | // original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) 37 | // bugfixed by: Onno Marsman 38 | // improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) 39 | // example 1: strstr('Kevin van Zonneveld', 'van'); 40 | // returns 1: 'van Zonneveld' 41 | // example 2: strstr('Kevin van Zonneveld', 'van', true); 42 | // returns 2: 'Kevin ' 43 | // example 3: strstr('name@example.com', '@'); 44 | // returns 3: '@example.com' 45 | // example 4: strstr('name@example.com', '@', true); 46 | // returns 4: 'name' 47 | 48 | var pos = 0; 49 | 50 | haystack += ''; 51 | pos = haystack.indexOf(needle); 52 | if (pos == -1) { 53 | return false; 54 | } else { 55 | if (bool) { 56 | return haystack.substr(0, pos); 57 | } else { 58 | return haystack.slice(pos); 59 | } 60 | } 61 | } 62 | 63 | $(document).ready(function(){ 64 | 65 | $('.select_on_click').click(function(){this.select()}); 66 | 67 | }); 68 | -------------------------------------------------------------------------------- /src/license.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2008 - 2014, EllisLab, Inc. 2 | All rights reserved. 3 | 4 | This license is a legal agreement between you and EllisLab Inc. for the use 5 | of CodeIgniter Software (the "Software"). By obtaining the Software you 6 | agree to comply with the terms and conditions of this license. 7 | 8 | PERMITTED USE 9 | You are permitted to use, copy, modify, and distribute the Software and its 10 | documentation, with or without modification, for any purpose, provided that 11 | the following conditions are met: 12 | 13 | 1. A copy of this license agreement must be included with the distribution. 14 | 15 | 2. Redistributions of source code must retain the above copyright notice in 16 | all source code files. 17 | 18 | 3. Redistributions in binary form must reproduce the above copyright notice 19 | in the documentation and/or other materials provided with the distribution. 20 | 21 | 4. Any files that have been modified must carry notices stating the nature 22 | of the change and the names of those who changed them. 23 | 24 | 5. Products derived from the Software must include an acknowledgment that 25 | they are derived from CodeIgniter in their documentation and/or other 26 | materials provided with the distribution. 27 | 28 | 6. Products derived from the Software may not be called "CodeIgniter", 29 | nor may "CodeIgniter" appear in their name, without prior written 30 | permission from EllisLab, Inc. 31 | 32 | INDEMNITY 33 | You agree to indemnify and hold harmless the authors of the Software and 34 | any contributors for any direct, indirect, incidental, or consequential 35 | third-party claims, actions or suits, as well as any related expenses, 36 | liabilities, damages, settlements or fees arising from your use or misuse 37 | of the Software, or a violation of any terms of this license. 38 | 39 | DISCLAIMER OF WARRANTY 40 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR 41 | IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF QUALITY, PERFORMANCE, 42 | NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. 43 | 44 | LIMITATIONS OF LIABILITY 45 | YOU ASSUME ALL RISK ASSOCIATED WITH THE INSTALLATION AND USE OF THE SOFTWARE. 46 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS OF THE SOFTWARE BE LIABLE 47 | FOR CLAIMS, DAMAGES OR OTHER LIABILITY ARISING FROM, OUT OF, OR IN CONNECTION 48 | WITH THE SOFTWARE. LICENSE HOLDERS ARE SOLELY RESPONSIBLE FOR DETERMINING THE 49 | APPROPRIATENESS OF USE AND ASSUME ALL RISKS ASSOCIATED WITH ITS USE, INCLUDING 50 | BUT NOT LIMITED TO THE RISKS OF PROGRAM ERRORS, DAMAGE TO EQUIPMENT, LOSS OF 51 | DATA OR SOFTWARE PROGRAMS, OR UNAVAILABILITY OR INTERRUPTION OF OPERATIONS. 52 | -------------------------------------------------------------------------------- /src/system/.htaccess: -------------------------------------------------------------------------------- 1 | Deny from all -------------------------------------------------------------------------------- /src/system/core/Controller.php: -------------------------------------------------------------------------------- 1 | $class) 45 | { 46 | $this->$var =& load_class($class); 47 | } 48 | 49 | $this->load =& load_class('Loader', 'core'); 50 | 51 | $this->load->initialize(); 52 | 53 | log_message('debug', "Controller Class Initialized"); 54 | } 55 | 56 | public static function &get_instance() 57 | { 58 | return self::$instance; 59 | } 60 | } 61 | // END Controller class 62 | 63 | /* End of file Controller.php */ 64 | /* Location: ./system/core/Controller.php */ -------------------------------------------------------------------------------- /src/system/core/Model.php: -------------------------------------------------------------------------------- 1 | $key; 52 | } 53 | } 54 | // END Model Class 55 | 56 | /* End of file Model.php */ 57 | /* Location: ./system/core/Model.php */ -------------------------------------------------------------------------------- /src/system/core/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/system/database/drivers/cubrid/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/system/database/drivers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/system/database/drivers/mssql/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/system/database/drivers/mssql/mssql_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsuported_feature'); 83 | } 84 | 85 | } 86 | 87 | /* End of file mssql_utility.php */ 88 | /* Location: ./system/database/drivers/mssql/mssql_utility.php */ -------------------------------------------------------------------------------- /src/system/database/drivers/mysql/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/system/database/drivers/mysqli/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/system/database/drivers/mysqli/mysqli_utility.php: -------------------------------------------------------------------------------- 1 | db->_escape_identifiers($table); 52 | } 53 | 54 | // -------------------------------------------------------------------- 55 | 56 | /** 57 | * Repair table query 58 | * 59 | * Generates a platform-specific query so that a table can be repaired 60 | * 61 | * @access private 62 | * @param string the table name 63 | * @return object 64 | */ 65 | function _repair_table($table) 66 | { 67 | return "REPAIR TABLE ".$this->db->_escape_identifiers($table); 68 | } 69 | 70 | // -------------------------------------------------------------------- 71 | 72 | /** 73 | * MySQLi Export 74 | * 75 | * @access private 76 | * @param array Preferences 77 | * @return mixed 78 | */ 79 | function _backup($params = array()) 80 | { 81 | // Currently unsupported 82 | return $this->db->display_error('db_unsuported_feature'); 83 | } 84 | } 85 | 86 | /* End of file mysqli_utility.php */ 87 | /* Location: ./system/database/drivers/mysqli/mysqli_utility.php */ -------------------------------------------------------------------------------- /src/system/database/drivers/oci8/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/system/database/drivers/oci8/oci8_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsuported_feature'); 83 | } 84 | } 85 | 86 | /* End of file oci8_utility.php */ 87 | /* Location: ./system/database/drivers/oci8/oci8_utility.php */ -------------------------------------------------------------------------------- /src/system/database/drivers/odbc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/system/database/drivers/odbc/odbc_utility.php: -------------------------------------------------------------------------------- 1 | db->db_debug) 37 | { 38 | return $this->db->display_error('db_unsuported_feature'); 39 | } 40 | return FALSE; 41 | } 42 | 43 | // -------------------------------------------------------------------- 44 | 45 | /** 46 | * Optimize table query 47 | * 48 | * Generates a platform-specific query so that a table can be optimized 49 | * 50 | * @access private 51 | * @param string the table name 52 | * @return object 53 | */ 54 | function _optimize_table($table) 55 | { 56 | // Not a supported ODBC feature 57 | if ($this->db->db_debug) 58 | { 59 | return $this->db->display_error('db_unsuported_feature'); 60 | } 61 | return FALSE; 62 | } 63 | 64 | // -------------------------------------------------------------------- 65 | 66 | /** 67 | * Repair table query 68 | * 69 | * Generates a platform-specific query so that a table can be repaired 70 | * 71 | * @access private 72 | * @param string the table name 73 | * @return object 74 | */ 75 | function _repair_table($table) 76 | { 77 | // Not a supported ODBC feature 78 | if ($this->db->db_debug) 79 | { 80 | return $this->db->display_error('db_unsuported_feature'); 81 | } 82 | return FALSE; 83 | } 84 | 85 | // -------------------------------------------------------------------- 86 | 87 | /** 88 | * ODBC Export 89 | * 90 | * @access private 91 | * @param array Preferences 92 | * @return mixed 93 | */ 94 | function _backup($params = array()) 95 | { 96 | // Currently unsupported 97 | return $this->db->display_error('db_unsuported_feature'); 98 | } 99 | 100 | } 101 | 102 | /* End of file odbc_utility.php */ 103 | /* Location: ./system/database/drivers/odbc/odbc_utility.php */ -------------------------------------------------------------------------------- /src/system/database/drivers/pdo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/system/database/drivers/pdo/pdo_utility.php: -------------------------------------------------------------------------------- 1 | db->db_debug) 37 | { 38 | return $this->db->display_error('db_unsuported_feature'); 39 | } 40 | return FALSE; 41 | } 42 | 43 | // -------------------------------------------------------------------- 44 | 45 | /** 46 | * Optimize table query 47 | * 48 | * Generates a platform-specific query so that a table can be optimized 49 | * 50 | * @access private 51 | * @param string the table name 52 | * @return object 53 | */ 54 | function _optimize_table($table) 55 | { 56 | // Not a supported PDO feature 57 | if ($this->db->db_debug) 58 | { 59 | return $this->db->display_error('db_unsuported_feature'); 60 | } 61 | return FALSE; 62 | } 63 | 64 | // -------------------------------------------------------------------- 65 | 66 | /** 67 | * Repair table query 68 | * 69 | * Generates a platform-specific query so that a table can be repaired 70 | * 71 | * @access private 72 | * @param string the table name 73 | * @return object 74 | */ 75 | function _repair_table($table) 76 | { 77 | // Not a supported PDO feature 78 | if ($this->db->db_debug) 79 | { 80 | return $this->db->display_error('db_unsuported_feature'); 81 | } 82 | return FALSE; 83 | } 84 | 85 | // -------------------------------------------------------------------- 86 | 87 | /** 88 | * PDO Export 89 | * 90 | * @access private 91 | * @param array Preferences 92 | * @return mixed 93 | */ 94 | function _backup($params = array()) 95 | { 96 | // Currently unsupported 97 | return $this->db->display_error('db_unsuported_feature'); 98 | } 99 | 100 | } 101 | 102 | /* End of file pdo_utility.php */ 103 | /* Location: ./system/database/drivers/pdo/pdo_utility.php */ -------------------------------------------------------------------------------- /src/system/database/drivers/postgre/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/system/database/drivers/postgre/postgre_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsuported_feature'); 83 | } 84 | } 85 | 86 | 87 | /* End of file postgre_utility.php */ 88 | /* Location: ./system/database/drivers/postgre/postgre_utility.php */ -------------------------------------------------------------------------------- /src/system/database/drivers/sqlite/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/system/database/drivers/sqlite/sqlite_utility.php: -------------------------------------------------------------------------------- 1 | db_debug) 41 | { 42 | return $this->db->display_error('db_unsuported_feature'); 43 | } 44 | return array(); 45 | } 46 | 47 | // -------------------------------------------------------------------- 48 | 49 | /** 50 | * Optimize table query 51 | * 52 | * Is optimization even supported in SQLite? 53 | * 54 | * @access private 55 | * @param string the table name 56 | * @return object 57 | */ 58 | function _optimize_table($table) 59 | { 60 | return FALSE; 61 | } 62 | 63 | // -------------------------------------------------------------------- 64 | 65 | /** 66 | * Repair table query 67 | * 68 | * Are table repairs even supported in SQLite? 69 | * 70 | * @access private 71 | * @param string the table name 72 | * @return object 73 | */ 74 | function _repair_table($table) 75 | { 76 | return FALSE; 77 | } 78 | 79 | // -------------------------------------------------------------------- 80 | 81 | /** 82 | * SQLite Export 83 | * 84 | * @access private 85 | * @param array Preferences 86 | * @return mixed 87 | */ 88 | function _backup($params = array()) 89 | { 90 | // Currently unsupported 91 | return $this->db->display_error('db_unsuported_feature'); 92 | } 93 | } 94 | 95 | /* End of file sqlite_utility.php */ 96 | /* Location: ./system/database/drivers/sqlite/sqlite_utility.php */ -------------------------------------------------------------------------------- /src/system/database/drivers/sqlsrv/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/system/database/drivers/sqlsrv/sqlsrv_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsuported_feature'); 83 | } 84 | 85 | } 86 | 87 | /* End of file mssql_utility.php */ 88 | /* Location: ./system/database/drivers/mssql/mssql_utility.php */ -------------------------------------------------------------------------------- /src/system/database/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/system/fonts/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/system/fonts/texb.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mailvolpe/freelancer_billing/b8b845a9e6960cd6b86914452d05b34c01f45bf2/src/system/fonts/texb.ttf -------------------------------------------------------------------------------- /src/system/helpers/array_helper.php: -------------------------------------------------------------------------------- 1 | input->set_cookie($name, $value, $expire, $domain, $path, $prefix, $secure); 52 | } 53 | } 54 | 55 | // -------------------------------------------------------------------- 56 | 57 | /** 58 | * Fetch an item from the COOKIE array 59 | * 60 | * @access public 61 | * @param string 62 | * @param bool 63 | * @return mixed 64 | */ 65 | if ( ! function_exists('get_cookie')) 66 | { 67 | function get_cookie($index = '', $xss_clean = FALSE) 68 | { 69 | $CI =& get_instance(); 70 | 71 | $prefix = ''; 72 | 73 | if ( ! isset($_COOKIE[$index]) && config_item('cookie_prefix') != '') 74 | { 75 | $prefix = config_item('cookie_prefix'); 76 | } 77 | 78 | return $CI->input->cookie($prefix.$index, $xss_clean); 79 | } 80 | } 81 | 82 | // -------------------------------------------------------------------- 83 | 84 | /** 85 | * Delete a COOKIE 86 | * 87 | * @param mixed 88 | * @param string the cookie domain. Usually: .yourdomain.com 89 | * @param string the cookie path 90 | * @param string the cookie prefix 91 | * @return void 92 | */ 93 | if ( ! function_exists('delete_cookie')) 94 | { 95 | function delete_cookie($name = '', $domain = '', $path = '/', $prefix = '') 96 | { 97 | set_cookie($name, '', '', $domain, $path, $prefix); 98 | } 99 | } 100 | 101 | 102 | /* End of file cookie_helper.php */ 103 | /* Location: ./system/helpers/cookie_helper.php */ -------------------------------------------------------------------------------- /src/system/helpers/directory_helper.php: -------------------------------------------------------------------------------- 1 | 0) && @is_dir($source_dir.$file)) 61 | { 62 | $filedata[$file] = directory_map($source_dir.$file.DIRECTORY_SEPARATOR, $new_depth, $hidden); 63 | } 64 | else 65 | { 66 | $filedata[] = $file; 67 | } 68 | } 69 | 70 | closedir($fp); 71 | return $filedata; 72 | } 73 | 74 | return FALSE; 75 | } 76 | } 77 | 78 | 79 | /* End of file directory_helper.php */ 80 | /* Location: ./system/helpers/directory_helper.php */ -------------------------------------------------------------------------------- /src/system/helpers/email_helper.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/system/helpers/language_helper.php: -------------------------------------------------------------------------------- 1 | lang->line($line); 46 | 47 | if ($id != '') 48 | { 49 | $line = '"; 50 | } 51 | 52 | return $line; 53 | } 54 | } 55 | 56 | // ------------------------------------------------------------------------ 57 | /* End of file language_helper.php */ 58 | /* Location: ./system/helpers/language_helper.php */ -------------------------------------------------------------------------------- /src/system/helpers/number_helper.php: -------------------------------------------------------------------------------- 1 | lang->load('number'); 43 | 44 | if ($num >= 1000000000000) 45 | { 46 | $num = round($num / 1099511627776, $precision); 47 | $unit = $CI->lang->line('terabyte_abbr'); 48 | } 49 | elseif ($num >= 1000000000) 50 | { 51 | $num = round($num / 1073741824, $precision); 52 | $unit = $CI->lang->line('gigabyte_abbr'); 53 | } 54 | elseif ($num >= 1000000) 55 | { 56 | $num = round($num / 1048576, $precision); 57 | $unit = $CI->lang->line('megabyte_abbr'); 58 | } 59 | elseif ($num >= 1000) 60 | { 61 | $num = round($num / 1024, $precision); 62 | $unit = $CI->lang->line('kilobyte_abbr'); 63 | } 64 | else 65 | { 66 | $unit = $CI->lang->line('bytes'); 67 | return number_format($num).' '.$unit; 68 | } 69 | 70 | return number_format($num, $precision).' '.$unit; 71 | } 72 | } 73 | 74 | 75 | /* End of file number_helper.php */ 76 | /* Location: ./system/helpers/number_helper.php */ -------------------------------------------------------------------------------- /src/system/helpers/path_helper.php: -------------------------------------------------------------------------------- 1 | load->library('typography'); 44 | 45 | return $CI->typography->nl2br_except_pre($str); 46 | } 47 | } 48 | 49 | // ------------------------------------------------------------------------ 50 | 51 | /** 52 | * Auto Typography Wrapper Function 53 | * 54 | * 55 | * @access public 56 | * @param string 57 | * @param bool whether to allow javascript event handlers 58 | * @param bool whether to reduce multiple instances of double newlines to two 59 | * @return string 60 | */ 61 | if ( ! function_exists('auto_typography')) 62 | { 63 | function auto_typography($str, $strip_js_event_handlers = TRUE, $reduce_linebreaks = FALSE) 64 | { 65 | $CI =& get_instance(); 66 | $CI->load->library('typography'); 67 | return $CI->typography->auto_typography($str, $strip_js_event_handlers, $reduce_linebreaks); 68 | } 69 | } 70 | 71 | 72 | // -------------------------------------------------------------------- 73 | 74 | /** 75 | * HTML Entities Decode 76 | * 77 | * This function is a replacement for html_entity_decode() 78 | * 79 | * @access public 80 | * @param string 81 | * @return string 82 | */ 83 | if ( ! function_exists('entity_decode')) 84 | { 85 | function entity_decode($str, $charset='UTF-8') 86 | { 87 | global $SEC; 88 | return $SEC->entity_decode($str, $charset); 89 | } 90 | } 91 | 92 | /* End of file typography_helper.php */ 93 | /* Location: ./system/helpers/typography_helper.php */ -------------------------------------------------------------------------------- /src/system/helpers/xml_helper.php: -------------------------------------------------------------------------------- 1 | ","\"", "'", "-"), 53 | array("&", "<", ">", """, "'", "-"), 54 | $str); 55 | 56 | // Decode the temp markers back to entities 57 | $str = preg_replace("/$temp(\d+);/","&#\\1;",$str); 58 | 59 | if ($protect_all === TRUE) 60 | { 61 | $str = preg_replace("/$temp(\w+);/","&\\1;", $str); 62 | } 63 | 64 | return $str; 65 | } 66 | } 67 | 68 | // ------------------------------------------------------------------------ 69 | 70 | /* End of file xml_helper.php */ 71 | /* Location: ./system/helpers/xml_helper.php */ -------------------------------------------------------------------------------- /src/system/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/system/language/english/calendar_lang.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/system/language/english/migration_lang.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/system/libraries/Cache/drivers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/system/libraries/Cache/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/system/libraries/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | -------------------------------------------------------------------------------- /src/system/libraries/javascript/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

    Directory access is forbidden.

    8 | 9 | 10 | --------------------------------------------------------------------------------