fixup commit for tag 'version_2_3_0'
authorcvs2hg <unknown>
Fri, 10 Dec 2010 13:12:46 +0000 (13:12 +0000)
committercvs2hg <unknown>
Fri, 10 Dec 2010 13:12:46 +0000 (13:12 +0000)
install/lang/in_ID/LC_MESSAGES/in_ID.mo [deleted file]
install/lang/in_ID/LC_MESSAGES/in_ID.po [deleted file]
install/save.php [deleted file]
reporting/fonts/Vera.ttf [deleted file]
reporting/includes/doctext2.inc [deleted file]

diff --git a/install/lang/in_ID/LC_MESSAGES/in_ID.mo b/install/lang/in_ID/LC_MESSAGES/in_ID.mo
deleted file mode 100644 (file)
index 278f294..0000000
Binary files a/install/lang/in_ID/LC_MESSAGES/in_ID.mo and /dev/null differ
diff --git a/install/lang/in_ID/LC_MESSAGES/in_ID.po b/install/lang/in_ID/LC_MESSAGES/in_ID.po
deleted file mode 100644 (file)
index b5a1658..0000000
+++ /dev/null
@@ -1,497 +0,0 @@
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the PACKAGE package.
-#
-# Eko Prasetiyo, 2010.
-msgid ""
-msgstr ""
-"Project-Id-Version: \n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-08-08 12:50+0200\n"
-"PO-Revision-Date: 2010-08-09 19:49+0700\n"
-"Last-Translator: Eko Prasetiyo <ekoprasetiyo@gmail.com>\n"
-"Language-Team: Indonesan <kde-i18n-doc@kde.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: Lokalize 1.0\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: /var/www/fa2.3/devel/../install/index.php:20
-#: /var/www/fa2.3/devel/../install/index.php:40
-msgid "FrontAccouting ERP Installation Wizard"
-msgstr "Wisaya Instalasi Front Accounting ERP"
-
-#: /var/www/fa2.3/devel/../install/index.php:41
-#, php-format
-msgid "Step %d: %s"
-msgstr "Langkah %d: %s"
-
-#: /var/www/fa2.3/devel/../install/index.php:48
-msgid "Chart of accounts"
-msgstr "Bagan akun"
-
-#: /var/www/fa2.3/devel/../install/index.php:48
-#: /var/www/fa2.3/devel/../install/index.php:75
-msgid "Encoding"
-msgstr "Encoding"
-
-#: /var/www/fa2.3/devel/../install/index.php:48
-#: /var/www/fa2.3/devel/../install/index.php:75
-msgid "Description"
-msgstr "Penjelasan"
-
-#: /var/www/fa2.3/devel/../install/index.php:48
-#: /var/www/fa2.3/devel/../install/index.php:75
-msgid "Install"
-msgstr "Instal"
-
-#: /var/www/fa2.3/devel/../install/index.php:65
-#: /var/www/fa2.3/devel/../install/index.php:93
-msgid "Installed"
-msgstr "Telah diinstal"
-
-#: /var/www/fa2.3/devel/../install/index.php:75
-msgid "Language"
-msgstr "Bahasa"
-
-#: /var/www/fa2.3/devel/../install/index.php:156
-msgid "Cannot save system configuration file 'config.php'."
-msgstr "Tidak dapat menyimpan file konfigurasi 'config.php'."
-
-#: /var/www/fa2.3/devel/../install/index.php:173
-msgid "Cannot open 'config_db.php' configuration file."
-msgstr "Tidak dapat membuka file konfigurasi 'config_db.php'."
-
-#: /var/www/fa2.3/devel/../install/index.php:176
-msgid "Cannot write to the 'config_db.php' configuration file."
-msgstr "Tidak dapat melakukan penulisan file konfigurasi 'config_db.php'."
-
-#: /var/www/fa2.3/devel/../install/index.php:179
-msgid ""
-"Configuration file 'config_db.php' is not writable. Change its permissions "
-"so it is, then re-run installation step."
-msgstr ""
-"File konfigurasi 'config_db.php' tidak dapat ditulisi. Ubah hak aksesnya, "
-"lalu ulangi tahapan instalasi."
-
-#: /var/www/fa2.3/devel/../install/index.php:217
-msgid "Host name cannot be empty."
-msgstr "Nama host tidak boleh dikosongkan."
-
-#: /var/www/fa2.3/devel/../install/index.php:221
-msgid "Database user name cannot be empty."
-msgstr "Nama user database tidak boleh dikosongkan."
-
-#: /var/www/fa2.3/devel/../install/index.php:225
-msgid "Database name cannot be empty."
-msgstr "Nama data base tidak boleh dikosongkan."
-
-#: /var/www/fa2.3/devel/../install/index.php:277
-msgid "Company name cannot be empty."
-msgstr "Nama perusahaan tidak boleh dikosongkan."
-
-#: /var/www/fa2.3/devel/../install/index.php:281
-msgid "Company admin name cannot be empty."
-msgstr "Nama admin perusahaan tidak boleh dikosongkan."
-
-#: /var/www/fa2.3/devel/../install/index.php:285
-msgid "Company admin password cannot be empty."
-msgstr "Kata sandi admin perusahaan tidak boleh dikosongkan."
-
-#: /var/www/fa2.3/devel/../install/index.php:289
-msgid "Company admin passwords differ."
-msgstr "Kata sandi admin perusahaan tidak sama."
-
-#: /var/www/fa2.3/devel/../install/index.php:320
-msgid "System Diagnostics"
-msgstr "Pemeriksaan Sistem"
-
-#: /var/www/fa2.3/devel/../install/index.php:323
-msgid "Select install wizard language:"
-msgstr "Pilih bahasa yg akan digunakan:"
-
-#: /var/www/fa2.3/devel/../install/index.php:329
-msgid ""
-"All application preliminary requirements seems to be correct. Please press "
-"Continue button below."
-msgstr ""
-"Seluruh kebutuhan yg disyaratkan aplikasi telah sesuai. Harap tekan tombol "
-"Lanjutkan dibawah."
-
-#: /var/www/fa2.3/devel/../install/index.php:330
-#: /var/www/fa2.3/devel/../install/index.php:356
-#: /var/www/fa2.3/devel/../install/index.php:363
-#: /var/www/fa2.3/devel/../install/index.php:370
-#: /var/www/fa2.3/devel/../install/index.php:389
-msgid "Continue >>"
-msgstr "Lanjutkan =>"
-
-#: /var/www/fa2.3/devel/../install/index.php:332
-msgid ""
-"Application cannot be installed. Please fix problems listed below in red, "
-"and press Refresh button."
-msgstr ""
-"Aplikasi tidak dapat diinstalasi. Harap perbaiki masalah yg ditandai merah "
-"dibawah, dan tekan tombol MuatUlang."
-
-#: /var/www/fa2.3/devel/../install/index.php:333
-msgid "Refresh"
-msgstr "MuatUlang"
-
-#: /var/www/fa2.3/devel/../install/index.php:343
-msgid "Database Server Settings"
-msgstr "Seting server database"
-
-#: /var/www/fa2.3/devel/../install/index.php:345
-msgid "Server Host:"
-msgstr "Host server:"
-
-#: /var/www/fa2.3/devel/../install/index.php:346
-msgid "Database User:"
-msgstr "Nama user database :"
-
-#: /var/www/fa2.3/devel/../install/index.php:347
-msgid "Database Password:"
-msgstr "Kata sandi untuk database:"
-
-#: /var/www/fa2.3/devel/../install/index.php:348
-msgid "Database Name:"
-msgstr "Nama Database:"
-
-#: /var/www/fa2.3/devel/../install/index.php:349
-msgid "Use '0_' Table Prefix:"
-msgstr "Gunakan awalan tabel '0_':"
-
-#: /var/www/fa2.3/devel/../install/index.php:349
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:38
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:113
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:126
-msgid "Yes"
-msgstr "Ya "
-
-#: /var/www/fa2.3/devel/../install/index.php:349
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:38
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:113
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:126
-msgid "No"
-msgstr "Tidak"
-
-#: /var/www/fa2.3/devel/../install/index.php:350
-msgid "Install Additional Language Packs from FA Repository:"
-msgstr "Install tambahan bahasa dari repositori FA:"
-
-#: /var/www/fa2.3/devel/../install/index.php:351
-msgid "Install Additional COAs from FA Repository:"
-msgstr "Install tambahan bagan akun dari repositori FA:"
-
-#: /var/www/fa2.3/devel/../install/index.php:353
-msgid ""
-"Use table prefix if you share selected database for more than one FA company."
-msgstr ""
-"Gunakan awalan tabel jika anda menggunakan database yg sama untuk beberapa "
-"perusahaan di FA."
-
-#: /var/www/fa2.3/devel/../install/index.php:354
-msgid ""
-"Do not select additional langs nor COAs if you have no working internet "
-"connection right now. You can install them later."
-msgstr ""
-"Jangan pilih tambahan bahasa atau bagan akun jika anda tidak memiliki "
-"sambungan internet sekaran. Anda dapat menginstalnya nanti."
-
-#: /var/www/fa2.3/devel/../install/index.php:355
-#: /var/www/fa2.3/devel/../install/index.php:362
-#: /var/www/fa2.3/devel/../install/index.php:369
-#: /var/www/fa2.3/devel/../install/index.php:388
-msgid "<< Back"
-msgstr "<= Kembali"
-
-#: /var/www/fa2.3/devel/../install/index.php:360
-msgid "User Interface Languages Selection"
-msgstr "Pilihan bahasa antarmuka"
-
-#: /var/www/fa2.3/devel/../install/index.php:367
-msgid "Charts of Accounts Selection"
-msgstr "Pemilihan bagan akun."
-
-#: /var/www/fa2.3/devel/../install/index.php:379
-msgid "Company Settings"
-msgstr "Seting Perusahaan"
-
-#: /var/www/fa2.3/devel/../install/index.php:381
-msgid "Company Name:"
-msgstr "Nama Perusahaan:"
-
-#: /var/www/fa2.3/devel/../install/index.php:382
-msgid "Admin Login:"
-msgstr "Login Admin:"
-
-#: /var/www/fa2.3/devel/../install/index.php:383
-msgid "Admin Password:"
-msgstr "Kata sandi Admin:"
-
-#: /var/www/fa2.3/devel/../install/index.php:384
-msgid "Reenter Password:"
-msgstr "Ulangi masukkan kata sandi:"
-
-#: /var/www/fa2.3/devel/../install/index.php:385
-msgid "Select Chart of Accounts:"
-msgstr "Pilih bagan akun:"
-
-#: /var/www/fa2.3/devel/../install/index.php:386
-msgid "Select Default Language:"
-msgstr "Pilih bahasa default:"
-
-#: /var/www/fa2.3/devel/../install/index.php:393
-msgid "FrontAccounting ERP has been installed successsfully."
-msgstr "FrontAccounting ERP telah diinstalasi dengan sukses."
-
-#: /var/www/fa2.3/devel/../install/index.php:394
-msgid "Please do not forget to remove install wizard folder."
-msgstr "Harap jangan lupa menghapus direktori wisaya instalasi."
-
-#: /var/www/fa2.3/devel/../install/index.php:396
-msgid "Click here to start."
-msgstr "Klik disini untuk memulai."
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:15
-msgid "Info"
-msgstr "Info"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:16
-msgid "Optional"
-msgstr "Opsional"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:17
-msgid "Recomended"
-msgstr "Direkomendasikan"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:18
-msgid "Required "
-msgstr "Diperlukan"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:24
-msgid "MySQL version"
-msgstr "Versi MySQL"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:28
-msgid "Upgrade MySQL server to version at least 4.1"
-msgstr "Upgrade server MySQL minimal ke versi 4.1"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:35
-msgid "PHP MySQL extension"
-msgstr "Ekstensi PHP MySQL"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:40
-msgid "Your PHP has to have MySQL extension enabled."
-msgstr "PHP anda harus memiliki ekstensi MySQL yg diaktifkan."
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:46
-msgid "PHP version"
-msgstr "Versi PHP"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:50
-msgid "Upgrade PHP to version at least 4.3.3"
-msgstr "Upgrade PHP minimal ke versi 4.3.3"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:57
-msgid "Server system"
-msgstr "Sistem server"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:67
-msgid "Session save path"
-msgstr "Lokasi penyimpanan sesi"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:79
-msgid "Removed install wizard folder"
-msgstr "Direktori wisaya instalasi dihapus"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:82
-msgid "Not removed"
-msgstr "Tidak dihapus"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:83
-msgid "Remove or rename install wizard folder for security reasons."
-msgstr "Hapus atau ganti nama direktori wisaya instalasi demi alasan keamanan."
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:90
-msgid "Browser type"
-msgstr "Tipe browser"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:94
-msgid "Any browser is supported"
-msgstr "Browser apa saja didukung."
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:101
-msgid "Http server type"
-msgstr "Tipe server http"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:105
-msgid "Any server is supported"
-msgstr "Server apa saja didukung"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:112
-msgid "Native gettext"
-msgstr "Gettext alami"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:116
-msgid "In case of no getext support, php emulation is used"
-msgstr "Jika tidak ada dukungan gettext, emulasi php yg digunakan"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:124
-msgid "Debugging mode"
-msgstr "Mode pencarian kesalahan."
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:128
-msgid "To switch debugging on set $go_debug>0 in config.php file"
-msgstr ""
-"Untuk mengaktifkan mode pencarian kesalahan, set $go_debug>0 di file cofig."
-"php"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:137
-msgid "Error logging"
-msgstr "Pencatatan kesalahan"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:145
-msgid "Disabled"
-msgstr "Dinonaktifkan"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:148
-msgid "To switch error logging set $error_logging in config.php file"
-msgstr ""
-"Untuk mengubah pencatatan kesalahan, set $error_logging di file config.php "
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:151
-msgid "Log file is not writeable"
-msgstr "File catatan log tidak dapat ditulisi"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:161
-msgid "Current database version"
-msgstr "Versi database saat ini"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:165
-msgid "Database structure seems to be not upgraded to current version"
-msgstr "Struktur database sepertinya belum diupgrade ke versi saat ini"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:180
-msgid "Company subdirectories consistency"
-msgstr "Konsistensi subdirektori perusahaan"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:193
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:200
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:208
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:225
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:345
-#, php-format
-msgid "'%s' is not writeable"
-msgstr "'%s' tidak dapat ditulisi"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:221
-msgid "Temporary directory"
-msgstr "Direktori sementara"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:233
-msgid "Language configuration consistency"
-msgstr "Konsistensi konfigurasi bahasa"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:242
-msgid "Languages folder should be writeable."
-msgstr "Direktori bahasa seharusnya bisa ditulisi"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:250
-msgid "Languages configuration file should be writeable."
-msgstr "File konfigurasi bahasa seharusnya bisa ditulisi"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:268
-#, php-format
-msgid "Missing %s translation file."
-msgstr "File terjemahan %s tidak ada"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:273
-#, php-format
-msgid "Missing system locale: %s"
-msgstr "Lokalisasi sistem tidak ada : %s"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:286
-msgid "Main config file"
-msgstr "File konfigurasi utama"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:293
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:315
-#, php-format
-msgid "Can't write '%s' file. Check FA directory write permissions."
-msgstr ""
-"Tidak dapat melakukan penulisan atas file '%s'. Periksa hak akses penulisan "
-"direktori FA "
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:294
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:316
-#, php-format
-msgid "'%s' file exists."
-msgstr "file '%s' ditemukan."
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:298
-#, php-format
-msgid "'%s' file should be read-only"
-msgstr "File '%s' seharusnya read-only"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:307
-msgid "Database auth file"
-msgstr "File autentikasi database"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:320
-#, php-format
-msgid ""
-"'%s' file should be read-only if you do not plan to add or change companies"
-msgstr ""
-"File '%s' seharusnya read-only jika anda tidak berencana menambah atau "
-"mengubah perusahaan"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:331
-msgid "Extensions system"
-msgstr "Ekstensi sistem"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:366
-msgid "Extensions configuration files and directories should be writeable"
-msgstr "File dan direktori konfigurasi ekstensi seharusnya dapat ditulisi"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:378
-#, php-format
-msgid "Non-standard theme directory '%s' is not writable"
-msgstr "Direktori tema non standar '%s' tidak dapat ditulisi"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:388
-msgid ""
-"OpenSSL PHP extension have to be enabled to use extension repository system."
-msgstr ""
-"Ekstensi OpenSSL PHP harus diaktifkan untuk menggunakan sistem repositori "
-"ekstensi"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:391
-msgid ""
-"OpenSSL have to be available on your server to use extension repository "
-"system."
-msgstr ""
-"OpenSSL harus tersedia di server anda untuk menggunakan sistem repositori "
-"ekstensi"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:414
-msgid "Test"
-msgstr "Tes"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:414
-msgid "Test type"
-msgstr "Tipe tes"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:414
-msgid "Value"
-msgstr "Nilai"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:414
-msgid "Comments"
-msgstr "Komentar"
-
-#: /var/www/fa2.3/devel/../includes/system_tests.inc:438
-msgid "Ok"
-msgstr "OK"
-
diff --git a/install/save.php b/install/save.php
deleted file mode 100644 (file)
index 1e568b6..0000000
+++ /dev/null
@@ -1,392 +0,0 @@
-<?php
-/**********************************************************************
-       This installer is based on code from the        
-       Website Baker Project <http://www.websitebaker.org/>
-       Copyright (C) 2004-2007, Ryan Djurovich.
-       The code is released under GPLv3
-       modified by FrontAcounting, LLC.
-***********************************************************************/
-error_reporting(E_ALL);
-ini_set("display_errors", "On");
-ini_set("max_execution_time", "180");
-
-// Start a session
-if(!defined('SESSION_STARTED'))
-{
-       session_name('ba_session_id');
-       session_start();
-       define('SESSION_STARTED', true);
-}
-
-if (!function_exists("_")) {
-       function _($msg) {
-               return $msg;
-       }
-}
-// Installer version of display_error function.
-//
-function display_error($message)
-{
-       global $_POST, $path_to_root;
-
-       if(isset($message) AND $message != '')
-       {
-               // Copy values entered into session so user doesn't have to re-enter everything
-               if(isset($_POST['company_name']))
-               {
-                       $_SESSION['ba_url'] = $_POST['ba_url'];
-                       $_SESSION['operating_system'] = isset($_POST['operating_system']);
-                       $_SESSION['world_writeable'] = isset($_POST['world_writeable']);
-                       $_SESSION['database_host'] = $_POST['database_host'];
-                       $_SESSION['database_username'] = $_POST['database_username'];
-                       $_SESSION['database_password'] = $_POST['database_password'];
-                       $_SESSION['database_name'] = $_POST['database_name'];
-                       $_SESSION['demo_data'] = isset($_POST['demo_data']);
-                       $_SESSION['table_prefix'] = isset($_POST['table_prefix']);
-                       $_SESSION['install_tables'] = isset($_POST['install_tables']);
-                       $_SESSION['company_name'] = $_POST['company_name'];
-                       $_SESSION['admin_email'] = $_POST['admin_email'];
-                       $_SESSION['admin_password'] = $_POST['admin_password'];
-
-               }
-               // Set the message
-               $_SESSION['message'] = $message;
-               // Specify that session support is enabled
-               $_SESSION['session_support'] = '<font class="good">Enabled</font>';
-               // Redirect to first page again and exit
-               @unlink($path_to_root."/config.php"); // remove just created config file
-               header('Location: index.php?sessions_checked=true');
-               exit();
-       }
-}
-
-// Function to workout what the default permissions are for files created by the webserver
-function default_file_mode($temp_dir)
-{
-       $v = explode(".",PHP_VERSION);
-       $v = $v[0].$v[1];
-       if($v > 41 && is_writable($temp_dir))
-       {
-               $filename = $temp_dir.'/test_permissions.txt';
-               $handle = fopen($filename, 'w');
-               fwrite($handle, 'This file is to get the default file permissions');
-               fclose($handle);
-               $default_file_mode = '0'.substr(sprintf('%o', fileperms($filename)), -3);
-               unlink($filename);
-       }
-       else
-       {
-               $default_file_mode = '0777';
-       }
-       return $default_file_mode;
-}
-
-// Function to workout what the default permissions are for directories created by the webserver
-function default_dir_mode($temp_dir)
-{
-       $v = explode(".",PHP_VERSION);
-       $v = $v[0].$v[1];
-       if ($v > 41 && is_writable($temp_dir))
-       {
-               $dirname = $temp_dir.'/test_permissions/';
-               mkdir($dirname);
-               $default_dir_mode = '0'.substr(sprintf('%o', fileperms($dirname)), -3);
-               rmdir($dirname);
-       }
-       else
-       {
-               $default_dir_mode = '0777';
-       }
-       return $default_dir_mode;
-}
-
-function add_slashes($input)
-{
-       if (get_magic_quotes_gpc() || (!is_string($input)))
-       {
-               return $input;
-       }
-       $output = addslashes($input);
-       return $output;
-}
-function check_db_error($err_msg, $sql)
-{
-       return true;
-}
-
-if (isset($_POST['path_to_root']))
-       $path_to_root = $_POST['path_to_root'];
-else
-       $path_to_root = "..";
-
-// Begin check to see if form was even submitted
-// Set error if no post vars found
-if (!isset($_POST['company_name']))
-{
-       display_error('Please fill-in the form below');
-}
-// End check to see if form was even submitted
-
-// Begin path and timezone details code
-
-// Check if user has entered the installation url
-if (!isset($_POST['ba_url']) || $_POST['ba_url'] == '')
-{
-       display_error('Please enter an absolute URL');
-}
-else
-{
-       $ba_url = $_POST['ba_url'];
-}
-
-// Remove any slashes at the end of the URL
-if(substr($ba_url, strlen($ba_url) - 1, 1) == "/")
-{
-       $ba_url = substr($ba_url, 0, strlen($ba_url) - 1);
-}
-if(substr($ba_url, strlen($ba_url) - 1, 1) == "\\")
-{
-       $ba_url = substr($ba_url, 0, strlen($ba_url) - 1);
-}
-if(substr($ba_url, strlen($ba_url) - 1, 1) == "/")
-{
-       $ba_url = substr($ba_url, 0, strlen($ba_url) - 1);
-}
-if(substr($ba_url, strlen($ba_url) - 1, 1) == "\\")
-{
-       $ba_url = substr($ba_url, 0, strlen($ba_url) - 1);
-}
-// End path
-
-// Begin operating system specific code
-// Get operating system
-if (!isset($_POST['operating_system']) || $_POST['operating_system'] != 'linux' && $_POST['operating_system'] != 'windows')
-{
-       display_error('Please select a valid operating system');
-}
-else
-{
-       $operating_system = $_POST['operating_system'];
-}
-// Work-out file permissions
-if($operating_system == 'windows')
-{
-       $file_mode = '0777';
-       $dir_mode = '0777';
-}
-elseif (isset($_POST['world_writeable']) && $_POST['world_writeable'] == 'true')
-{
-       $file_mode = '0777';
-       $dir_mode = '0777';
-}
-else
-{
-       $file_mode = default_file_mode('../includes');
-       $dir_mode = default_dir_mode('../includes');
-}
-// End operating system specific code
-
-// Begin database details code
-// Check if user has entered a database host
-if (!isset($_POST['database_host']) || $_POST['database_host'] == '')
-{
-       display_error('Please enter a database host name');
-}
-else
-{
-       $database_host = $_POST['database_host'];
-}
-// Check if user has entered a database username
-if (!isset($_POST['database_username']) || $_POST['database_username'] == '')
-{
-       display_error('Please enter a database username');
-}
-else
-{
-       $database_username = $_POST['database_username'];
-}
-// Check if user has entered a database password
-if (!isset($_POST['database_password']))
-{
-       display_error('Please enter a database password');
-}
-else
-{
-       $database_password = $_POST['database_password'];
-}
-// Check if user has entered a database name
-if (!isset($_POST['database_name']) || $_POST['database_name'] == '')
-{
-       display_error('Please enter a database name');
-}
-else
-{
-       $database_name = $_POST['database_name'];
-}
-// Get table prefix
-if (isset($_POST['table_prefix']) && $_POST['table_prefix'] == 'true')
-       $table_prefix = "0_";
-else
-       $table_prefix = "";
-
-// Find out if the user wants to install tables and data
-if (isset($_POST['install_tables']) && $_POST['install_tables'] == 'true')
-{
-       $install_tables = true;
-}
-else
-{
-       $install_tables = false;
-}
-// End database details code
-
-// Begin company name code
-// Get company name
-if (!isset($_POST['company_name']) || $_POST['company_name'] == '')
-{
-       display_error('Please enter a company name');
-}
-else
-{
-       $company_name = add_slashes($_POST['company_name']);
-}
-// End website company name
-
-// Check if the user has entered a correct path
-if (!file_exists($path_to_root.'/sql/en_US-'.(isset($_POST['demo_data']) ? 'demo':'new').'.sql'))
-{
-       display_error('It appears the Absolute path that you entered is incorrect');
-}
-
-// Get admin email and validate it
-if (!isset($_POST['admin_email']) || $_POST['admin_email'] == '')
-{
-       display_error('Please enter an email for the Administrator account');
-}
-else
-{
-       if (preg_match("/^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$/i", $_POST['admin_email']))
-       {
-               $admin_email = $_POST['admin_email'];
-       }
-       else
-       {
-               display_error('Please enter a valid email address for the Administrator account');
-       }
-}
-// Get the two admin passwords entered, and check that they match
-if (!isset($_POST['admin_password']) || $_POST['admin_password'] == '')
-{
-       display_error('Please enter a password for the Administrator account');
-}
-else
-{
-       $admin_password = $_POST['admin_password'];
-}
-if (!isset($_POST['admin_repassword']) || $_POST['admin_repassword'] == '')
-{
-       display_error('Please make sure you re-enter the password for the Administrator account');
-}
-else
-{
-       $admin_repassword = $_POST['admin_repassword'];
-}
-if ($admin_password != $admin_repassword)
-{
-       display_error('Sorry, the two Administrator account passwords you entered do not match');
-}
-// End admin user details code
-
-copy($path_to_root. "/config.default.php", $path_to_root. "/config.php");
-
-include_once($path_to_root . "/includes/db/connect_db.inc");
-include_once($path_to_root . "/admin/db/maintenance_db.inc");
-
-if (!file_exists($path_to_root . "/installed_extensions.php")) {
-       $next_extension_id = 1;
-       write_extensions(array());
-       write_extensions(array(),0);
-}
-if (!file_exists($path_to_root . "/lang/installed_languages.inc")) {
-       $installed_languages = array (
-               0 => array ('code' => 'en_GB', 'name' => 'English', 'encoding' => 'iso-8859-1'));
-       $dflt_lang = 'en_GB';
-       write_lang();
-}
-
-if (file_exists($path_to_root . "/config_db.php"))
-       include_once($path_to_root . "/config_db.php");
- else
-{
-       $def_coy = 0;
-       $tb_pref_counter = 0;
-       $db_connections = array ();
-}
-
-$id = count($db_connections);
-if ($table_prefix != "" && $id > 0)
-       $table_prefix = $tb_pref_counter . "_";
-$db_connections[$id]['name'] = $company_name;
-$db_connections[$id]['host'] = $database_host;
-$db_connections[$id]['dbuser'] = $database_username;
-$db_connections[$id]['dbpassword'] = $database_password;
-$db_connections[$id]['dbname'] = $database_name;
-$db_connections[$id]['tbpref'] = $table_prefix;
-
-$def_coy = $id;
-
-$config_filename = $path_to_root . '/config_db.php';
-
-// Try connecting to database
-
-$db = mysql_connect($database_host, $database_username, $database_password);
-if (!$db)
-{
-       display_error('Database host name, username and/or password incorrect. MySQL Error:<br />'.mysql_error());
-} else {
-       $result = true;
-       if($install_tables == true)
-       {
-               if (!mysql_select_db($database_name, $db))
-               {
-                       // Try to create the database
-                       if (!($result = mysql_query('CREATE DATABASE '.$database_name))) {
-                               display_error(_("Cannot create database").
-                                       " '$database_name'");
-                       } else
-                               $result = mysql_select_db($database_name, $db);
-               }
-               if($result) {
-                       $import_filename = $path_to_root.'/sql/en_US-'.(isset($_POST['demo_data']) ? 'demo':'new').'.sql';
-                       db_import($import_filename, $db_connections[$id]);
-               }
-       }
-       else
-       {
-               $result = mysql_select_db($database_name, $db);
-       }
-       if ($result) {
-               $sql = "UPDATE ".$table_prefix."users SET password = '" . md5($admin_password) . "', email = ".db_escape($admin_email)." WHERE user_id = 'admin'";
-               db_query($sql, "could not update admin account");
-               $sql = "UPDATE ".$table_prefix."company SET coy_name = ".db_escape($company_name)." WHERE coy_code = 1";
-               db_query($sql, "could not update company name. Do it manually later in Setup");
-       
-               $err = write_config_db($table_prefix != "");
-               if ($err == -1)
-                       display_error("Cannot open the configuration file ($config_filename)");
-               else if ($err == -2)
-                       display_error("Cannot write to the configuration file ($config_filename)");
-               else if ($err == -3)
-                       display_error("The configuration file $config_filename is not writable. Change its permissions so it is, then re-run step 4.");
-       }
-}
-
-session_unset();
-session_regenerate_id();
-session_destroy();
-$_SESSION = array();
-
-header("Location: ".$path_to_root."/index.php");
-exit();
-
-?>
\ No newline at end of file
diff --git a/reporting/fonts/Vera.ttf b/reporting/fonts/Vera.ttf
deleted file mode 100644 (file)
index 58cd6b5..0000000
Binary files a/reporting/fonts/Vera.ttf and /dev/null differ
diff --git a/reporting/includes/doctext2.inc b/reporting/includes/doctext2.inc
deleted file mode 100644 (file)
index be6c730..0000000
+++ /dev/null
@@ -1,180 +0,0 @@
-<?php
-/**********************************************************************
-    Copyright (C) FrontAccounting, LLC.
-       Released under the terms of the GNU General Public License, GPL, 
-       as published by the Free Software Foundation, either version 3 
-       of the License, or (at your option) any later version.
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
-    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
-***********************************************************************/
-if (isset($header2type))
-{
-       $doc_Cust_no = "Cust no";
-       $doc_Date = "Date";
-       if ($doctype == ST_PURCHORDER || $doctype == ST_SUPPAYMENT) // Purchase Order
-       {
-               $doc_Charge_To = "Order To";
-               if ($doctype == ST_PURCHORDER)
-                       $doc_Delivered_To = "Deliver To";
-               else    
-                       $doc_Delivered_To = "Charge To";
-       }
-       else
-       {
-               if ($doctype == ST_CUSTPAYMENT)
-                       $doc_Charge_To = "With thanks from";
-               else    
-                       $doc_Charge_To = "Charge To";
-               $doc_Delivered_To = "Delivered To";
-       }       
-       $doc_Shipping_Company = "Shipping Company";
-       if ($doctype == ST_SALESQUOTE)
-               $doc_Due_Date = "Valid until";
-       elseif ($doctype == ST_SALESORDER)
-               $doc_Due_Date = "Delivery Date";
-       else
-               $doc_Due_Date = "Due Date";
-       $doc_Your_Ref = "Your Ref";
-       if ($doctype == ST_WORKORDER)
-       {
-               $doc_Our_Ref = "Type";
-               $doc_Your_VAT_no = "Manufactured Item";
-               $doc_Payment_Terms = "Required By";
-               $doc_Customers_Ref = "Reference";
-               $doc_Our_Order_No = "Into Location";
-               $doc_Due_Date = "Quantity";
-       }       
-       else
-       {
-               if ($doctype == ST_SUPPAYMENT || $doctype == ST_CUSTPAYMENT)
-                       $doc_Our_Ref = "Type";
-               else    
-                       $doc_Our_Ref = "Sales Person";
-               $doc_Your_VAT_no = "Your VAT no.";
-               $doc_Payment_Terms = "Payment Terms";
-               $doc_Customers_Ref = "Customers Reference";
-               $doc_Our_Order_No = "Our Order No";
-       }
-       $doc_Extra = "";
-       $doc_Our_VAT_no = "Our VAT No.";
-       $doc_Domicile = "Domicile";
-       if($doctype == ST_CUSTDELIVERY || $doctype == ST_SALESQUOTE || $doctype == ST_PURCHORDER || $doctype == ST_SALESORDER ||
-               $doctype == ST_SUPPAYMENT || $doctype == ST_CUSTPAYMENT) {
-               if ($doctype == ST_CUSTPAYMENT)
-                       $doc_Extra = "* Subject to Realisation of the Cheque.";
-               $doc_Bank_Account = '';
-               $doc_Please_Quote = "All amounts stated in";
-  } else {
-        $doc_Please_Quote = "Please quote ".($doctype==ST_SALESINVOICE ? "Invoice" : "Credit")
-               ." no. when paying. All amounts stated in";
-        $doc_Bank_Account = "Bank Account";
-       }
-       $doc_Address = "Address";
-       $doc_Phone_Fax_Email = "Phone/Fax/Email";
-       $doc_Bank = "Bank";
-       $doc_Payment_Link = "You can pay through";
-       if ($doctype == ST_SALESQUOTE || $doctype == ST_PURCHORDER || $doctype == ST_SALESORDER || $doctype == ST_SALESINVOICE || 
-               $doctype == ST_CUSTCREDIT || $doctype == ST_CUSTDELIVERY || $doctype == ST_WORKORDER || $doctype == ST_SUPPAYMENT || 
-               $doctype == ST_CUSTPAYMENT)
-       {
-               if ($doctype == ST_SALESQUOTE)
-                       $this->title = "SALES QUOTATION";
-               elseif ($doctype == ST_PURCHORDER)
-                       $this->title = "PURCHASE ORDER";
-               elseif ($doctype == ST_SALESORDER)
-                       $this->title = ($print_as_quote==1 ? "QUOTE" : "SALES ORDER");
-               elseif ($doctype == ST_SALESINVOICE)
-                       $this->title = "INVOICE";
-               elseif ($doctype == ST_CUSTDELIVERY)
-                       $this->title = ($packing_slip==1 ? "PACKING SLIP" : "DELIVERY NOTE");
-               elseif ($doctype == ST_WORKORDER)
-                       $this->title = "WORK ORDER";
-               elseif ($doctype == ST_SUPPAYMENT)
-                       $this->title = "REMITTANCE";
-               elseif ($doctype == ST_CUSTPAYMENT)
-                       $this->title = "RECEIPT";
-               else
-                       $this->title = "CREDIT NOTE";
-               if ($doctype == ST_PURCHORDER)
-                       $this->headers = array('Item Code', 'Item Description', 'Delivery Date',
-                               'Quantity', 'Unit',     'Price', 'Total');
-               elseif ($doctype == ST_WORKORDER)
-                       $this->headers = array("Item Code", "Item Description",
-                               "From Location", "Work Centre",         "Unit Quantity", "Total Quantity", "Units Issued");
-               elseif ($doctype == ST_SUPPAYMENT || $doctype == ST_CUSTPAYMENT)
-                       $this->headers = array('Trans Type', '#', 'Date', 'Due Date', 'Total Amount', 'Left to Allocate', 'This Allocation');
-               else
-                       $this->headers = array('Item Code', 'Item Description', 'Quantity', 'Unit',
-                               'Price', 'Discount %', 'Total');
-       }
-       elseif ($doctype == ST_STATEMENT)
-       {
-               $this->title = "STATEMENT";
-               $this->headers = array('Trans Type', '#', 'Date', 'Due Date', 'Charges',
-                       'Credits', 'Allocated', 'Outstanding');
-       }
-}
-if (isset($emailtype))
-{
-       $doc_Dear_Sirs = "Dear";
-       $doc_AttachedFile = "Attached you will find ";
-       $doc_Kindest_regards = "Kindest regards";
-       $doc_Payment_Link = "You can pay through";
-}
-if (isset($header2type) || isset($linetype))
-{
-       $doc_Invoice_no = ($doctype==ST_CUSTDELIVERY ? "Delivery Note No." : 
-               ($doctype == ST_CUSTPAYMENT ? "Receipt No." :
-               ($doctype == ST_SUPPAYMENT ? "Remittance No." :
-               ($doctype == ST_PURCHORDER ? "Purchase Order No." :
-               ($doctype == ST_SALESORDER ? "Order No." :
-               ($doctype == ST_SALESQUOTE ? "Quotation No." :
-               ($doctype == ST_SALESINVOICE ? "Invoice No." :
-               ($doctype == ST_WORKORDER ? "Work Order No." : "Credit No."))))))));
-       $doc_Delivery_no = "Delivery Note No.";
-       $doc_Order_no = "Order No.";
-}
-if (isset($linetype))
-{
-       if ($doctype == ST_SALESQUOTE || $doctype == ST_PURCHORDER || $doctype == ST_SALESORDER || $doctype == ST_SALESINVOICE || 
-               $doctype == ST_CUSTCREDIT || $doctype == ST_CUSTDELIVERY)
-       {
-               $doc_Sub_total = "Sub-total";
-               $doc_Shipping = "Shipping";
-               $doc_Included = "Included";
-               $doc_Amount = "amount";
-               $doc_TOTAL_INVOICE = $doctype==ST_SALESINVOICE ? "TOTAL INVOICE" : "TOTAL CREDIT";
-               $doc_TOTAL_ORDER = "TOTAL ORDER EX VAT";
-               $doc_TOTAL_ORDER2 = "TOTAL ORDER VAT INCL.";
-               $doc_TOTAL_PO = "TOTAL PO EX VAT";
-               $doc_TOTAL_DELIVERY = "TOTAL DELIVERY INCL. VAT";
-       }
-       elseif ($doctype == ST_SUPPAYMENT || $doctype == ST_CUSTPAYMENT)
-       {
-               $doc_Towards = "As advance / full / part / payment towards:";
-               $doc_by_Cheque = "By Cash / Cheque* / Draft No.";
-               $doc_Dated = "Dated";
-               $doc_Drawn = "Drawn on Bank";
-               $doc_Drawn_Branch = "Branch";
-               $doc_Received = "Received / Sign";
-               $doc_Total_Allocated = "Total Allocated";
-               $doc_Left_To_Allocate = "Left to Allocate";
-               if ($doctype == ST_CUSTPAYMENT)
-                       $doc_Total_Payment = "TOTAL RECEIPT";
-               else    
-                       $doc_Total_Payment = "TOTAL REMITTANCE";
-       }
-       elseif ($doctype == ST_STATEMENT)
-       {
-               $doc_Outstanding = "Outstanding Transactions";
-               $doc_Current = "Current";
-               $doc_Total_Balance = "Total Balance";
-               $doc_Statement = "Statement";
-               $doc_as_of = "as of";
-               $doc_Days = "Days";
-               $doc_Over = "Over";
-       }
-}
-?>
\ No newline at end of file