diff --git a/README.md b/README.md
index 7c20eb1..d8e8906 100644
--- a/README.md
+++ b/README.md
@@ -1,64 +1 @@
-# CodeIgniter 4 Application Starter
-
-## What is CodeIgniter?
-
-CodeIgniter is a PHP full-stack web framework that is light, fast, flexible, and secure.
-More information can be found at the [official site](http://codeigniter.com).
-
-This repository holds a composer-installable app starter.
-It has been built from the
-[development repository](https://github.com/codeigniter4/CodeIgniter4).
-
-More information about the plans for version 4 can be found in [the announcement](http://forum.codeigniter.com/thread-62615.html) on the forums.
-
-The user guide corresponding to this version of the framework can be found
-[here](https://codeigniter4.github.io/userguide/).
-
-## Installation & updates
-
-`composer create-project codeigniter4/appstarter` then `composer update` whenever
-there is a new release of the framework.
-
-When updating, check the release notes to see if there are any changes you might need to apply
-to your `app` folder. The affected files can be copied or merged from
-`vendor/codeigniter4/framework/app`.
-
-## Setup
-
-Copy `env` to `.env` and tailor for your app, specifically the baseURL
-and any database settings.
-
-## Important Change with index.php
-
-`index.php` is no longer in the root of the project! It has been moved inside the *public* folder,
-for better security and separation of components.
-
-This means that you should configure your web server to "point" to your project's *public* folder, and
-not to the project root. A better practice would be to configure a virtual host to point there. A poor practice would be to point your web server to the project root and expect to enter *public/...*, as the rest of your logic and the
-framework are exposed.
-
-**Please** read the user guide for a better explanation of how CI4 works!
-The user guide updating and deployment is a bit awkward at the moment, but we are working on it!
-
-## Repository Management
-
-We use Github issues, in our main repository, to track **BUGS** and to track approved **DEVELOPMENT** work packages.
-We use our [forum](http://forum.codeigniter.com) to provide SUPPORT and to discuss
-FEATURE REQUESTS.
-
-This repository is a "distribution" one, built by our release preparation script.
-Problems with it can be raised on our forum, or as issues in the main repository.
-
-## Server Requirements
-
-PHP version 7.2 or higher is required, with the following extensions installed:
-
-- [intl](http://php.net/manual/en/intl.requirements.php)
-- [libcurl](http://php.net/manual/en/curl.requirements.php) if you plan to use the HTTP\CURLRequest library
-
-Additionally, make sure that the following extensions are enabled in your PHP:
-
-- json (enabled by default - don't turn it off)
-- [mbstring](http://php.net/manual/en/mbstring.installation.php)
-- [mysqlnd](http://php.net/manual/en/mysqlnd.install.php)
-- xml (enabled by default - don't turn it off)
+# Donation Management Reworked
diff --git a/app/.htaccess b/app/.htaccess
deleted file mode 100644
index f24db0a..0000000
--- a/app/.htaccess
+++ /dev/null
@@ -1,6 +0,0 @@
-
- Require all denied
-
-
- Deny from all
-
diff --git a/app/Common.php b/app/Common.php
deleted file mode 100644
index 780ba3f..0000000
--- a/app/Common.php
+++ /dev/null
@@ -1,15 +0,0 @@
-baseURL = 'http://localhost/donation/';
- // }
- // else
- // {
- // $allowed_domains = array('domain1.co.uk', 'domain1.com', 'domain1-preview.host.co.uk');
- // $default_domain = 'domain1.co.uk';
-
- // if (in_array($_SERVER['HTTP_HOST'], $allowed_domains, true))
- // {
- // $domain = $_SERVER['HTTP_HOST'];
- // }
- // else
- // {
- // $domain = $default_domain;
- // }
-
- // if (!empty($_SERVER['HTTPS']))
- // {
- // $this->baseURL = 'https://' . $domain;
- // }
- // else
- // {
- // $this->baseURL = 'http://' . $domain;
- // }
- // }
- // parent::__construct();
- // }
- // public $baseURL = BASE;
- /*
- |--------------------------------------------------------------------------
- | Index File
- |--------------------------------------------------------------------------
- |
- | Typically this will be your index.php file, unless you've renamed it to
- | something else. If you are using mod_rewrite to remove the page set this
- | variable so that it is blank.
- |
- */
- public $indexPage = 'index.php';
-
- /*
- |--------------------------------------------------------------------------
- | URI PROTOCOL
- |--------------------------------------------------------------------------
- |
- | This item determines which getServer global should be used to retrieve the
- | URI string. The default setting of 'REQUEST_URI' works for most servers.
- | If your links do not seem to work, try one of the other delicious flavors:
- |
- | 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
- | 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
- | 'PATH_INFO' Uses $_SERVER['PATH_INFO']
- |
- | WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
- */
- public $uriProtocol = 'PATH_INFO';
- // public $uriProtocol = 'REQUEST_URI';
-
- /*
- |--------------------------------------------------------------------------
- | Default Locale
- |--------------------------------------------------------------------------
- |
- | The Locale roughly represents the language and location that your visitor
- | is viewing the site from. It affects the language strings and other
- | strings (like currency markers, numbers, etc), that your program
- | should run under for this request.
- |
- */
- public $defaultLocale = 'en';
-
- /*
- |--------------------------------------------------------------------------
- | Negotiate Locale
- |--------------------------------------------------------------------------
- |
- | If true, the current Request object will automatically determine the
- | language to use based on the value of the Accept-Language header.
- |
- | If false, no automatic detection will be performed.
- |
- */
- public $negotiateLocale = false;
-
- /*
- |--------------------------------------------------------------------------
- | Supported Locales
- |--------------------------------------------------------------------------
- |
- | If $negotiateLocale is true, this array lists the locales supported
- | by the application in descending order of priority. If no match is
- | found, the first locale will be used.
- |
- */
- public $supportedLocales = ['en'];
-
- /*
- |--------------------------------------------------------------------------
- | Application Timezone
- |--------------------------------------------------------------------------
- |
- | The default timezone that will be used in your application to display
- | dates with the date helper, and can be retrieved through app_timezone()
- |
- */
- public $appTimezone = 'America/Chicago';
-
- /*
- |--------------------------------------------------------------------------
- | Default Character Set
- |--------------------------------------------------------------------------
- |
- | This determines which character set is used by default in various methods
- | that require a character set to be provided.
- |
- | See http://php.net/htmlspecialchars for a list of supported charsets.
- |
- */
- public $charset = 'UTF-8';
-
- /*
- |--------------------------------------------------------------------------
- | URI PROTOCOL
- |--------------------------------------------------------------------------
- |
- | If true, this will force every request made to this application to be
- | made via a secure connection (HTTPS). If the incoming request is not
- | secure, the user will be redirected to a secure version of the page
- | and the HTTP Strict Transport Security header will be set.
- */
- public $forceGlobalSecureRequests = false;
-
- /*
- |--------------------------------------------------------------------------
- | Session Variables
- |--------------------------------------------------------------------------
- |
- | 'sessionDriver'
- |
- | The storage driver to use: files, database, redis, memcached
- | - CodeIgniter\Session\Handlers\FileHandler
- | - CodeIgniter\Session\Handlers\DatabaseHandler
- | - CodeIgniter\Session\Handlers\MemcachedHandler
- | - CodeIgniter\Session\Handlers\RedisHandler
- |
- | 'sessionCookieName'
- |
- | The session cookie name, must contain only [0-9a-z_-] characters
- |
- | 'sessionExpiration'
- |
- | The number of SECONDS you want the session to last.
- | Setting to 0 (zero) means expire when the browser is closed.
- |
- | 'sessionSavePath'
- |
- | The location to save sessions to, driver dependent.
- |
- | For the 'files' driver, it's a path to a writable directory.
- | WARNING: Only absolute paths are supported!
- |
- | For the 'database' driver, it's a table name.
- | Please read up the manual for the format with other session drivers.
- |
- | IMPORTANT: You are REQUIRED to set a valid save path!
- |
- | 'sessionMatchIP'
- |
- | Whether to match the user's IP address when reading the session data.
- |
- | WARNING: If you're using the database driver, don't forget to update
- | your session table's PRIMARY KEY when changing this setting.
- |
- | 'sessionTimeToUpdate'
- |
- | How many seconds between CI regenerating the session ID.
- |
- | 'sessionRegenerateDestroy'
- |
- | Whether to destroy session data associated with the old session ID
- | when auto-regenerating the session ID. When set to FALSE, the data
- | will be later deleted by the garbage collector.
- |
- | Other session cookie settings are shared with the rest of the application,
- | except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
- |
- */
- public $sessionDriver = 'CodeIgniter\Session\Handlers\FileHandler';
- public $sessionCookieName = 'ci_session';
- public $sessionExpiration = 7200;
- public $sessionSavePath = WRITEPATH . 'session';
- public $sessionMatchIP = false;
- public $sessionTimeToUpdate = 300;
- public $sessionRegenerateDestroy = false;
-
- /*
- |--------------------------------------------------------------------------
- | Cookie Related Variables
- |--------------------------------------------------------------------------
- |
- | 'cookiePrefix' = Set a cookie name prefix if you need to avoid collisions
- | 'cookieDomain' = Set to .your-domain.com for site-wide cookies
- | 'cookiePath' = Typically will be a forward slash
- | 'cookieSecure' = Cookie will only be set if a secure HTTPS connection exists.
- | 'cookieHTTPOnly' = Cookie will only be accessible via HTTP(S) (no javascript)
- |
- | Note: These settings (with the exception of 'cookie_prefix' and
- | 'cookie_httponly') will also affect sessions.
- |
- */
- public $cookiePrefix = '';
- public $cookieDomain = '';
- public $cookiePath = '/';
- public $cookieSecure = false;
- public $cookieHTTPOnly = false;
-
- /*
- |--------------------------------------------------------------------------
- | Reverse Proxy IPs
- |--------------------------------------------------------------------------
- |
- | If your server is behind a reverse proxy, you must whitelist the proxy
- | IP addresses from which CodeIgniter should trust headers such as
- | HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
- | the visitor's IP address.
- |
- | You can use both an array or a comma-separated list of proxy addresses,
- | as well as specifying whole subnets. Here are a few examples:
- |
- | Comma-separated: '10.0.1.200,192.168.5.0/24'
- | Array: array('10.0.1.200', '192.168.5.0/24')
- */
- public $proxyIPs = '';
-
- /*
- |--------------------------------------------------------------------------
- | Cross Site Request Forgery
- |--------------------------------------------------------------------------
- | Enables a CSRF cookie token to be set. When set to TRUE, token will be
- | checked on a submitted form. If you are accepting user data, it is strongly
- | recommended CSRF protection be enabled.
- |
- | CSRFTokenName = The token name
- | CSRFHeaderName = The header name
- | CSRFCookieName = The cookie name
- | CSRFExpire = The number in seconds the token should expire.
- | CSRFRegenerate = Regenerate token on every submission
- | CSRFRedirect = Redirect to previous page with error on failure
- */
- public $CSRFTokenName = 'csrf_test_name';
- public $CSRFHeaderName = 'X-CSRF-TOKEN';
- public $CSRFCookieName = 'csrf_cookie_name';
- public $CSRFExpire = 7200;
- public $CSRFRegenerate = true;
- public $CSRFRedirect = true;
-
- /*
- |--------------------------------------------------------------------------
- | Content Security Policy
- |--------------------------------------------------------------------------
- | Enables the Response's Content Secure Policy to restrict the sources that
- | can be used for images, scripts, CSS files, audio, video, etc. If enabled,
- | the Response object will populate default values for the policy from the
- | ContentSecurityPolicy.php file. Controllers can always add to those
- | restrictions at run time.
- |
- | For a better understanding of CSP, see these documents:
- | - http://www.html5rocks.com/en/tutorials/security/content-security-policy/
- | - http://www.w3.org/TR/CSP/
- */
- public $CSPEnabled = false;
-}
diff --git a/app/Config/Autoload.php b/app/Config/Autoload.php
deleted file mode 100644
index ca24aa7..0000000
--- a/app/Config/Autoload.php
+++ /dev/null
@@ -1,68 +0,0 @@
- SYSTEMPATH,
- * 'App' => APPPATH
- * ];
- *
- * @var array
- */
- public $psr4 = [
- APP_NAMESPACE => APPPATH, // For custom app namespace
- 'Config' => APPPATH . 'Config',
- 'Dompdf' => APPPATH . 'ThirdParty/dompdf/src',
- ];
-
-
- /**
- * -------------------------------------------------------------------
- * Class Map
- * -------------------------------------------------------------------
- * The class map provides a map of class names and their exact
- * location on the drive. Classes loaded in this manner will have
- * slightly faster performance because they will not have to be
- * searched for within one or more directories as they would if they
- * were being autoloaded through a namespace.
- *
- * Prototype:
- *
- * $classmap = [
- * 'MyClass' => '/path/to/class/file.php'
- * ];
- *
- * @var array
- */
- public $classmap = [];
-}
diff --git a/app/Config/Boot/development.php b/app/Config/Boot/development.php
deleted file mode 100644
index 63fdd88..0000000
--- a/app/Config/Boot/development.php
+++ /dev/null
@@ -1,32 +0,0 @@
- '127.0.0.1',
- 'port' => 11211,
- 'weight' => 1,
- 'raw' => false,
- ];
-
- /*
- | -------------------------------------------------------------------------
- | Redis settings
- | -------------------------------------------------------------------------
- | Your Redis server can be specified below, if you are using
- | the Redis or Predis drivers.
- |
- */
- public $redis = [
- 'host' => '127.0.0.1',
- 'password' => null,
- 'port' => 6379,
- 'timeout' => 0,
- 'database' => 0,
- ];
-
- /*
- |--------------------------------------------------------------------------
- | Available Cache Handlers
- |--------------------------------------------------------------------------
- |
- | This is an array of cache engine alias' and class names. Only engines
- | that are listed here are allowed to be used.
- |
- */
- public $validHandlers = [
- 'dummy' => \CodeIgniter\Cache\Handlers\DummyHandler::class,
- 'file' => \CodeIgniter\Cache\Handlers\FileHandler::class,
- 'memcached' => \CodeIgniter\Cache\Handlers\MemcachedHandler::class,
- 'predis' => \CodeIgniter\Cache\Handlers\PredisHandler::class,
- 'redis' => \CodeIgniter\Cache\Handlers\RedisHandler::class,
- 'wincache' => \CodeIgniter\Cache\Handlers\WincacheHandler::class,
- ];
-}
diff --git a/app/Config/Constants.php b/app/Config/Constants.php
deleted file mode 100644
index 4c05961..0000000
--- a/app/Config/Constants.php
+++ /dev/null
@@ -1,92 +0,0 @@
- '',
- 'hostname' => 'venbainfotech.com',
- 'username' => 'kasirama_donr',
- 'password' => 'gx2BEG=qc+D0',
- 'database' => 'kasirama_donr',
- 'DBDriver' => 'MySQLi',
- 'DBPrefix' => '',
- 'pConnect' => false,
- 'DBDebug' => (ENVIRONMENT !== 'production'),
- 'cacheOn' => false,
- 'cacheDir' => '',
- 'charset' => 'utf8',
- 'DBCollat' => 'utf8_general_ci',
- 'swapPre' => '',
- 'encrypt' => false,
- 'compress' => false,
- 'strictOn' => false,
- 'failover' => [],
- 'port' => 3306,
- ];
-
- /**
- * This database connection is used when
- * running PHPUnit database tests.
- *
- * @var array
- */
- public $tests = [
- 'DSN' => '',
- 'hostname' => '127.0.0.1',
- 'username' => '',
- 'password' => '',
- 'database' => ':memory:',
- 'DBDriver' => 'SQLite3',
- 'DBPrefix' => 'db_', // Needed to ensure we're working correctly with prefixes live. DO NOT REMOVE FOR CI DEVS
- 'pConnect' => false,
- 'DBDebug' => (ENVIRONMENT !== 'production'),
- 'cacheOn' => false,
- 'cacheDir' => '',
- 'charset' => 'utf8',
- 'DBCollat' => 'utf8_general_ci',
- 'swapPre' => '',
- 'encrypt' => false,
- 'compress' => false,
- 'strictOn' => false,
- 'failover' => [],
- 'port' => 3306,
- ];
-
- //--------------------------------------------------------------------
-
- public function __construct()
- {
- parent::__construct();
-
- // Ensure that we always set the database group to 'tests' if
- // we are currently running an automated test suite, so that
- // we don't overwrite live data on accident.
- if (ENVIRONMENT === 'testing')
- {
- $this->defaultGroup = 'tests';
-
- // Under Travis-CI, we can set an ENV var named 'DB_GROUP'
- // so that we can test against multiple databases.
- if ($group = getenv('DB'))
- {
- if (is_file(TESTPATH . 'travis/Database.php'))
- {
- require TESTPATH . 'travis/Database.php';
-
- if (! empty($dbconfig) && array_key_exists($group, $dbconfig))
- {
- $this->tests = $dbconfig[$group];
- }
- }
- }
- }
- }
-
- //--------------------------------------------------------------------
-
-}
diff --git a/app/Config/DocTypes.php b/app/Config/DocTypes.php
deleted file mode 100644
index 67d5dd2..0000000
--- a/app/Config/DocTypes.php
+++ /dev/null
@@ -1,33 +0,0 @@
- '',
- 'xhtml1-strict' => '',
- 'xhtml1-trans' => '',
- 'xhtml1-frame' => '',
- 'xhtml-basic11' => '',
- 'html5' => '',
- 'html4-strict' => '',
- 'html4-trans' => '',
- 'html4-frame' => '',
- 'mathml1' => '',
- 'mathml2' => '',
- 'svg10' => '',
- 'svg11' => '',
- 'svg11-basic' => '',
- 'svg11-tiny' => '',
- 'xhtml-math-svg-xh' => '',
- 'xhtml-math-svg-sh' => '',
- 'xhtml-rdfa-1' => '',
- 'xhtml-rdfa-2' => '',
- ];
-}
diff --git a/app/Config/Email.php b/app/Config/Email.php
deleted file mode 100644
index 41a2746..0000000
--- a/app/Config/Email.php
+++ /dev/null
@@ -1,172 +0,0 @@
- 0)
- {
- ob_end_flush();
- }
-
- ob_start(function ($buffer) {
- return $buffer;
- });
- }
-
- /*
- * --------------------------------------------------------------------
- * Debug Toolbar Listeners.
- * --------------------------------------------------------------------
- * If you delete, they will no longer be collected.
- */
- if (ENVIRONMENT !== 'production')
- {
- Events::on('DBQuery', 'CodeIgniter\Debug\Toolbar\Collectors\Database::collect');
- Services::toolbar()->respond();
- }
-});
diff --git a/app/Config/Exceptions.php b/app/Config/Exceptions.php
deleted file mode 100644
index 5fe33d3..0000000
--- a/app/Config/Exceptions.php
+++ /dev/null
@@ -1,42 +0,0 @@
- \CodeIgniter\Filters\CSRF::class,
- 'toolbar' => \CodeIgniter\Filters\DebugToolbar::class,
- 'honeypot' => \CodeIgniter\Filters\Honeypot::class,
- ];
-
- // Always applied before every request
- public $globals = [
- 'before' => [
- //'honeypot'
- // 'csrf',
- ],
- 'after' => [
- 'toolbar',
- //'honeypot'
- ],
- ];
-
- // Works on all of a particular HTTP method
- // (GET, POST, etc) as BEFORE filters only
- // like: 'post' => ['CSRF', 'throttle'],
- public $methods = [];
-
- // List filter aliases and any before/after uri patterns
- // that they should run on, like:
- // 'isLoggedIn' => ['before' => ['account/*', 'profiles/*']],
- public $filters = [];
-}
diff --git a/app/Config/ForeignCharacters.php b/app/Config/ForeignCharacters.php
deleted file mode 100644
index 8ee6f11..0000000
--- a/app/Config/ForeignCharacters.php
+++ /dev/null
@@ -1,6 +0,0 @@
- \CodeIgniter\Format\JSONFormatter::class,
- 'application/xml' => \CodeIgniter\Format\XMLFormatter::class,
- 'text/xml' => \CodeIgniter\Format\XMLFormatter::class,
- ];
-
- /*
- |--------------------------------------------------------------------------
- | Formatters Options
- |--------------------------------------------------------------------------
- |
- | Additional Options to adjust default formatters behaviour.
- | For each mime type, list the additional options that should be used.
- |
- */
- public $formatterOptions = [
- 'application/json' => JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES,
- 'application/xml' => 0,
- 'text/xml' => 0,
- ];
- //--------------------------------------------------------------------
-
- /**
- * A Factory method to return the appropriate formatter for the given mime type.
- *
- * @param string $mime
- *
- * @return \CodeIgniter\Format\FormatterInterface
- */
- public function getFormatter(string $mime)
- {
- if (! array_key_exists($mime, $this->formatters))
- {
- throw new \InvalidArgumentException('No Formatter defined for mime type: ' . $mime);
- }
-
- $class = $this->formatters[$mime];
-
- if (! class_exists($class))
- {
- throw new \BadMethodCallException($class . ' is not a valid Formatter.');
- }
-
- return new $class();
- }
-
- //--------------------------------------------------------------------
-
-}
diff --git a/app/Config/Honeypot.php b/app/Config/Honeypot.php
deleted file mode 100644
index 3d9e372..0000000
--- a/app/Config/Honeypot.php
+++ /dev/null
@@ -1,42 +0,0 @@
-{label} ';
-
- /**
- * Honeypot container
- *
- * @var string
- */
- public $container = '
{template}
';
-}
diff --git a/app/Config/Images.php b/app/Config/Images.php
deleted file mode 100644
index a416b8b..0000000
--- a/app/Config/Images.php
+++ /dev/null
@@ -1,31 +0,0 @@
- \CodeIgniter\Images\Handlers\GDHandler::class,
- 'imagick' => \CodeIgniter\Images\Handlers\ImageMagickHandler::class,
- ];
-}
diff --git a/app/Config/Kint.php b/app/Config/Kint.php
deleted file mode 100644
index 09db83d..0000000
--- a/app/Config/Kint.php
+++ /dev/null
@@ -1,62 +0,0 @@
- [
-
- /*
- * The log levels that this handler will handle.
- */
- 'handles' => [
- 'critical',
- 'alert',
- 'emergency',
- 'debug',
- 'error',
- 'info',
- 'notice',
- 'warning',
- ],
-
- /*
- * The default filename extension for log files.
- * An extension of 'php' allows for protecting the log files via basic
- * scripting, when they are to be stored under a publicly accessible directory.
- *
- * Note: Leaving it blank will default to 'log'.
- */
- 'fileExtension' => '',
-
- /*
- * The file system permissions to be applied on newly created log files.
- *
- * IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
- * integer notation (i.e. 0700, 0644, etc.)
- */
- 'filePermissions' => 0644,
-
- /*
- * Logging Directory Path
- *
- * By default, logs are written to WRITEPATH . 'logs/'
- * Specify a different destination here, if desired.
- */
- 'path' => '',
- ],
-
- /**
- * The ChromeLoggerHandler requires the use of the Chrome web browser
- * and the ChromeLogger extension. Uncomment this block to use it.
- */
- // 'CodeIgniter\Log\Handlers\ChromeLoggerHandler' => [
- // /*
- // * The log levels that this handler will handle.
- // */
- // 'handles' => ['critical', 'alert', 'emergency', 'debug',
- // 'error', 'info', 'notice', 'warning'],
- // ]
- ];
-}
diff --git a/app/Config/Migrations.php b/app/Config/Migrations.php
deleted file mode 100644
index b83fe90..0000000
--- a/app/Config/Migrations.php
+++ /dev/null
@@ -1,50 +0,0 @@
- php spark migrate:create
- |
- | Typical formats:
- | YmdHis_
- | Y-m-d-His_
- | Y_m_d_His_
- |
- */
- public $timestampFormat = 'Y-m-d-His_';
-
-}
diff --git a/app/Config/Mimes.php b/app/Config/Mimes.php
deleted file mode 100644
index 41014d4..0000000
--- a/app/Config/Mimes.php
+++ /dev/null
@@ -1,530 +0,0 @@
- [
- 'application/mac-binhex40',
- 'application/mac-binhex',
- 'application/x-binhex40',
- 'application/x-mac-binhex40',
- ],
- 'cpt' => 'application/mac-compactpro',
- 'csv' => [
- 'text/csv',
- 'text/x-comma-separated-values',
- 'text/comma-separated-values',
- 'application/octet-stream',
- 'application/vnd.ms-excel',
- 'application/x-csv',
- 'text/x-csv',
- 'application/csv',
- 'application/excel',
- 'application/vnd.msexcel',
- 'text/plain',
- ],
- 'bin' => [
- 'application/macbinary',
- 'application/mac-binary',
- 'application/octet-stream',
- 'application/x-binary',
- 'application/x-macbinary',
- ],
- 'dms' => 'application/octet-stream',
- 'lha' => 'application/octet-stream',
- 'lzh' => 'application/octet-stream',
- 'exe' => [
- 'application/octet-stream',
- 'application/x-msdownload',
- ],
- 'class' => 'application/octet-stream',
- 'psd' => [
- 'application/x-photoshop',
- 'image/vnd.adobe.photoshop',
- ],
- 'so' => 'application/octet-stream',
- 'sea' => 'application/octet-stream',
- 'dll' => 'application/octet-stream',
- 'oda' => 'application/oda',
- 'pdf' => [
- 'application/pdf',
- 'application/force-download',
- 'application/x-download',
- 'binary/octet-stream',
- ],
- 'ai' => [
- 'application/pdf',
- 'application/postscript',
- ],
- 'eps' => 'application/postscript',
- 'ps' => 'application/postscript',
- 'smi' => 'application/smil',
- 'smil' => 'application/smil',
- 'mif' => 'application/vnd.mif',
- 'xls' => [
- 'application/vnd.ms-excel',
- 'application/msexcel',
- 'application/x-msexcel',
- 'application/x-ms-excel',
- 'application/x-excel',
- 'application/x-dos_ms_excel',
- 'application/xls',
- 'application/x-xls',
- 'application/excel',
- 'application/download',
- 'application/vnd.ms-office',
- 'application/msword',
- ],
- 'ppt' => [
- 'application/vnd.ms-powerpoint',
- 'application/powerpoint',
- 'application/vnd.ms-office',
- 'application/msword',
- ],
- 'pptx' => [
- 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
- 'application/x-zip',
- 'application/zip',
- ],
- 'wbxml' => 'application/wbxml',
- 'wmlc' => 'application/wmlc',
- 'dcr' => 'application/x-director',
- 'dir' => 'application/x-director',
- 'dxr' => 'application/x-director',
- 'dvi' => 'application/x-dvi',
- 'gtar' => 'application/x-gtar',
- 'gz' => 'application/x-gzip',
- 'gzip' => 'application/x-gzip',
- 'php' => [
- 'application/x-php',
- 'application/x-httpd-php',
- 'application/php',
- 'text/php',
- 'text/x-php',
- 'application/x-httpd-php-source',
- ],
- 'php4' => 'application/x-httpd-php',
- 'php3' => 'application/x-httpd-php',
- 'phtml' => 'application/x-httpd-php',
- 'phps' => 'application/x-httpd-php-source',
- 'js' => [
- 'application/x-javascript',
- 'text/plain',
- ],
- 'swf' => 'application/x-shockwave-flash',
- 'sit' => 'application/x-stuffit',
- 'tar' => 'application/x-tar',
- 'tgz' => [
- 'application/x-tar',
- 'application/x-gzip-compressed',
- ],
- 'z' => 'application/x-compress',
- 'xhtml' => 'application/xhtml+xml',
- 'xht' => 'application/xhtml+xml',
- 'zip' => [
- 'application/x-zip',
- 'application/zip',
- 'application/x-zip-compressed',
- 'application/s-compressed',
- 'multipart/x-zip',
- ],
- 'rar' => [
- 'application/x-rar',
- 'application/rar',
- 'application/x-rar-compressed',
- ],
- 'mid' => 'audio/midi',
- 'midi' => 'audio/midi',
- 'mpga' => 'audio/mpeg',
- 'mp2' => 'audio/mpeg',
- 'mp3' => [
- 'audio/mpeg',
- 'audio/mpg',
- 'audio/mpeg3',
- 'audio/mp3',
- ],
- 'aif' => [
- 'audio/x-aiff',
- 'audio/aiff',
- ],
- 'aiff' => [
- 'audio/x-aiff',
- 'audio/aiff',
- ],
- 'aifc' => 'audio/x-aiff',
- 'ram' => 'audio/x-pn-realaudio',
- 'rm' => 'audio/x-pn-realaudio',
- 'rpm' => 'audio/x-pn-realaudio-plugin',
- 'ra' => 'audio/x-realaudio',
- 'rv' => 'video/vnd.rn-realvideo',
- 'wav' => [
- 'audio/x-wav',
- 'audio/wave',
- 'audio/wav',
- ],
- 'bmp' => [
- 'image/bmp',
- 'image/x-bmp',
- 'image/x-bitmap',
- 'image/x-xbitmap',
- 'image/x-win-bitmap',
- 'image/x-windows-bmp',
- 'image/ms-bmp',
- 'image/x-ms-bmp',
- 'application/bmp',
- 'application/x-bmp',
- 'application/x-win-bitmap',
- ],
- 'gif' => 'image/gif',
- 'jpg' => [
- 'image/jpeg',
- 'image/pjpeg',
- ],
- 'jpeg' => [
- 'image/jpeg',
- 'image/pjpeg',
- ],
- 'jpe' => [
- 'image/jpeg',
- 'image/pjpeg',
- ],
- 'jp2' => [
- 'image/jp2',
- 'video/mj2',
- 'image/jpx',
- 'image/jpm',
- ],
- 'j2k' => [
- 'image/jp2',
- 'video/mj2',
- 'image/jpx',
- 'image/jpm',
- ],
- 'jpf' => [
- 'image/jp2',
- 'video/mj2',
- 'image/jpx',
- 'image/jpm',
- ],
- 'jpg2' => [
- 'image/jp2',
- 'video/mj2',
- 'image/jpx',
- 'image/jpm',
- ],
- 'jpx' => [
- 'image/jp2',
- 'video/mj2',
- 'image/jpx',
- 'image/jpm',
- ],
- 'jpm' => [
- 'image/jp2',
- 'video/mj2',
- 'image/jpx',
- 'image/jpm',
- ],
- 'mj2' => [
- 'image/jp2',
- 'video/mj2',
- 'image/jpx',
- 'image/jpm',
- ],
- 'mjp2' => [
- 'image/jp2',
- 'video/mj2',
- 'image/jpx',
- 'image/jpm',
- ],
- 'png' => [
- 'image/png',
- 'image/x-png',
- ],
- 'tif' => 'image/tiff',
- 'tiff' => 'image/tiff',
- 'css' => [
- 'text/css',
- 'text/plain',
- ],
- 'html' => [
- 'text/html',
- 'text/plain',
- ],
- 'htm' => [
- 'text/html',
- 'text/plain',
- ],
- 'shtml' => [
- 'text/html',
- 'text/plain',
- ],
- 'txt' => 'text/plain',
- 'text' => 'text/plain',
- 'log' => [
- 'text/plain',
- 'text/x-log',
- ],
- 'rtx' => 'text/richtext',
- 'rtf' => 'text/rtf',
- 'xml' => [
- 'application/xml',
- 'text/xml',
- 'text/plain',
- ],
- 'xsl' => [
- 'application/xml',
- 'text/xsl',
- 'text/xml',
- ],
- 'mpeg' => 'video/mpeg',
- 'mpg' => 'video/mpeg',
- 'mpe' => 'video/mpeg',
- 'qt' => 'video/quicktime',
- 'mov' => 'video/quicktime',
- 'avi' => [
- 'video/x-msvideo',
- 'video/msvideo',
- 'video/avi',
- 'application/x-troff-msvideo',
- ],
- 'movie' => 'video/x-sgi-movie',
- 'doc' => [
- 'application/msword',
- 'application/vnd.ms-office',
- ],
- 'docx' => [
- 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
- 'application/zip',
- 'application/msword',
- 'application/x-zip',
- ],
- 'dot' => [
- 'application/msword',
- 'application/vnd.ms-office',
- ],
- 'dotx' => [
- 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
- 'application/zip',
- 'application/msword',
- ],
- 'xlsx' => [
- 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
- 'application/zip',
- 'application/vnd.ms-excel',
- 'application/msword',
- 'application/x-zip',
- ],
- 'word' => [
- 'application/msword',
- 'application/octet-stream',
- ],
- 'xl' => 'application/excel',
- 'eml' => 'message/rfc822',
- 'json' => [
- 'application/json',
- 'text/json',
- ],
- 'pem' => [
- 'application/x-x509-user-cert',
- 'application/x-pem-file',
- 'application/octet-stream',
- ],
- 'p10' => [
- 'application/x-pkcs10',
- 'application/pkcs10',
- ],
- 'p12' => 'application/x-pkcs12',
- 'p7a' => 'application/x-pkcs7-signature',
- 'p7c' => [
- 'application/pkcs7-mime',
- 'application/x-pkcs7-mime',
- ],
- 'p7m' => [
- 'application/pkcs7-mime',
- 'application/x-pkcs7-mime',
- ],
- 'p7r' => 'application/x-pkcs7-certreqresp',
- 'p7s' => 'application/pkcs7-signature',
- 'crt' => [
- 'application/x-x509-ca-cert',
- 'application/x-x509-user-cert',
- 'application/pkix-cert',
- ],
- 'crl' => [
- 'application/pkix-crl',
- 'application/pkcs-crl',
- ],
- 'der' => 'application/x-x509-ca-cert',
- 'kdb' => 'application/octet-stream',
- 'pgp' => 'application/pgp',
- 'gpg' => 'application/gpg-keys',
- 'sst' => 'application/octet-stream',
- 'csr' => 'application/octet-stream',
- 'rsa' => 'application/x-pkcs7',
- 'cer' => [
- 'application/pkix-cert',
- 'application/x-x509-ca-cert',
- ],
- '3g2' => 'video/3gpp2',
- '3gp' => [
- 'video/3gp',
- 'video/3gpp',
- ],
- 'mp4' => 'video/mp4',
- 'm4a' => 'audio/x-m4a',
- 'f4v' => [
- 'video/mp4',
- 'video/x-f4v',
- ],
- 'flv' => 'video/x-flv',
- 'webm' => 'video/webm',
- 'aac' => 'audio/x-acc',
- 'm4u' => 'application/vnd.mpegurl',
- 'm3u' => 'text/plain',
- 'xspf' => 'application/xspf+xml',
- 'vlc' => 'application/videolan',
- 'wmv' => [
- 'video/x-ms-wmv',
- 'video/x-ms-asf',
- ],
- 'au' => 'audio/x-au',
- 'ac3' => 'audio/ac3',
- 'flac' => 'audio/x-flac',
- 'ogg' => [
- 'audio/ogg',
- 'video/ogg',
- 'application/ogg',
- ],
- 'kmz' => [
- 'application/vnd.google-earth.kmz',
- 'application/zip',
- 'application/x-zip',
- ],
- 'kml' => [
- 'application/vnd.google-earth.kml+xml',
- 'application/xml',
- 'text/xml',
- ],
- 'ics' => 'text/calendar',
- 'ical' => 'text/calendar',
- 'zsh' => 'text/x-scriptzsh',
- '7zip' => [
- 'application/x-compressed',
- 'application/x-zip-compressed',
- 'application/zip',
- 'multipart/x-zip',
- ],
- 'cdr' => [
- 'application/cdr',
- 'application/coreldraw',
- 'application/x-cdr',
- 'application/x-coreldraw',
- 'image/cdr',
- 'image/x-cdr',
- 'zz-application/zz-winassoc-cdr',
- ],
- 'wma' => [
- 'audio/x-ms-wma',
- 'video/x-ms-asf',
- ],
- 'jar' => [
- 'application/java-archive',
- 'application/x-java-application',
- 'application/x-jar',
- 'application/x-compressed',
- ],
- 'svg' => [
- 'image/svg+xml',
- 'application/xml',
- 'text/xml',
- ],
- 'vcf' => 'text/x-vcard',
- 'srt' => [
- 'text/srt',
- 'text/plain',
- ],
- 'vtt' => [
- 'text/vtt',
- 'text/plain',
- ],
- 'ico' => [
- 'image/x-icon',
- 'image/x-ico',
- 'image/vnd.microsoft.icon',
- ],
- ];
-
- //--------------------------------------------------------------------
-
- /**
- * Attempts to determine the best mime type for the given file extension.
- *
- * @param string $extension
- *
- * @return string|null The mime type found, or none if unable to determine.
- */
- public static function guessTypeFromExtension(string $extension)
- {
- $extension = trim(strtolower($extension), '. ');
-
- if (! array_key_exists($extension, static::$mimes))
- {
- return null;
- }
-
- return is_array(static::$mimes[$extension]) ? static::$mimes[$extension][0] : static::$mimes[$extension];
- }
-
- //--------------------------------------------------------------------
-
- /**
- * Attempts to determine the best file extension for a given mime type.
- *
- * @param string $type
- * @param string $proposed_extension - default extension (in case there is more than one with the same mime type)
- *
- * @return string|null The extension determined, or null if unable to match.
- */
- public static function guessExtensionFromType(string $type, ?string $proposed_extension = null)
- {
- $type = trim(strtolower($type), '. ');
-
- $proposed_extension = trim(strtolower($proposed_extension));
-
- if (! is_null($proposed_extension) && array_key_exists($proposed_extension, static::$mimes) && in_array($type, is_string(static::$mimes[$proposed_extension]) ? [static::$mimes[$proposed_extension]] : static::$mimes[$proposed_extension]))
- {
- return $proposed_extension;
- }
-
- foreach (static::$mimes as $ext => $types)
- {
- if ((is_string($types) && $types === $type) || (is_array($types) && in_array($type, $types)))
- {
- return $ext;
- }
- }
-
- return null;
- }
-
- //--------------------------------------------------------------------
-
-}
diff --git a/app/Config/Modules.php b/app/Config/Modules.php
deleted file mode 100644
index 40cb987..0000000
--- a/app/Config/Modules.php
+++ /dev/null
@@ -1,45 +0,0 @@
- 'CodeIgniter\Pager\Views\default_full',
- 'default_simple' => 'CodeIgniter\Pager\Views\default_simple',
- 'default_head' => 'CodeIgniter\Pager\Views\default_head',
- ];
-
- /*
- |--------------------------------------------------------------------------
- | Items Per Page
- |--------------------------------------------------------------------------
- |
- | The default number of results shown in a single page.
- |
- */
- public $perPage = 20;
-}
diff --git a/app/Config/Paths.php b/app/Config/Paths.php
deleted file mode 100644
index 6251124..0000000
--- a/app/Config/Paths.php
+++ /dev/null
@@ -1,77 +0,0 @@
-setDefaultNamespace('App\Controllers');
-$routes->setDefaultController('Donor_controller');
-$routes->setDefaultMethod('index');
-$routes->setTranslateURIDashes(false);
-$routes->set404Override();
-$routes->setAutoRoute(true);
-
-/**
- * --------------------------------------------------------------------
- * Route Definitions
- * --------------------------------------------------------------------
- */
-
-// We get a performance increase by specifying the default
-// route since we don't have to scan directories.
-
-$routes->get('/', 'Donor_controller::index');
-$routes->match(['get','post'],'donor_register','My_controller::donor_register');
-$routes->match(['get','post'],'all_donor','My_controller::all_donor');
-$routes->match(['get','post'],'receipts','Dashboard::receipts');
-$routes->match(['get','post'],'all_receipt','Dashboard::all_receipt');
-$routes->match(['get','post'],'all_transaction','Dashboard::all_transaction');
-$routes->match(['get','post'],'transaction','Dashboard::transaction');
-$routes->match(['get','post'],'donation_data','Dashboard::donation_data');
-$routes->match(['get','post'],'all_donation_data','Dashboard::all_donation_data');
-$routes->match(['get','post'],'donation_cause','Dashboard::donation_cause');
-$routes->match(['get','post'],'all_donation_cause','Dashboard::all_donation_cause');
-
-$routes->get('Send_mail/(:num)', 'Sendmail::Mail_to_donor/$1');
-
-//$routes->add('edit_donor/(:num)', 'App\Catalog::productLookup');
-//$routes->match(['get'],'edit_donor/(:any)', 'My_controller::edit_donor');
-$routes->get('edit_donor/(:num)', 'My_controller::edit_donor/$1');
-$routes->get('edit_receipt/(:num)', 'Dashboard::edit_receipt/$1');
-$routes->get('view_receipt/(:num)', 'Dashboard::view_receipt/$1');
-$routes->match(['get','post'],'edit_transaction/(:num)', 'Dashboard::edit_transaction/$1');
-$routes->match(['get','post'],'edit_donation_data/(:num)', 'Dashboard::edit_donation_data/$1');
-$routes->match(['get','post'],'edit_donation_cause/(:num)', 'Dashboard::edit_donation_cause/$1');
-
-$routes->match(['get','post'],'signup','Donor_controller::register');
-$routes->match(['get','post'],'login','Donor_controller::login');
-$routes->match(['get'],'fetch_country','Donor_controller::fetch_country');
-$routes->match(['get','post'],'fetch_state','Donor_controller::fetch_state');
-$routes->match(['get','post'],'fetch_city','Donor_controller::fetch_city');
-$routes->match(['get'],'profile','Donor_controller::profile');
-
-$routes->match(['get','post'],'receipt','Dashboard::generate_receipts');
-$routes->match(['get','post'],'update_receipt','Dashboard::update_receipt');
-$routes->match(['get','post'],'transaction','Dashboard::transaction_upload');
-$routes->match(['get','post'],'donation_data','Dashboard::donation_data_upload');
-$routes->match(['get','post'],'donor_register','My_controller::donor_register');
-$routes->match(['get','post'],'update_donor','My_controller::update_donor');
-
-$routes->match(['get'],'fetch_donor_id','Dashboard::fetch_donor_id');
-$routes->match(['get'],'edit_donor_id','Dashboard::edit_donor_id');
-$routes->match(['get'],'fetch_cause_name','Dashboard::fetch_cause_name');
-$routes->match(['get','post'],'add_donation_cause','Dashboard::add_donation_cause');
-$routes->match(['get'],'htmlToPDF','PdfController::htmlToPDF');
-$routes->match(['get'],'active_cause','Dashboard::active_cause');
-$routes->match(['get'],'inactive_cause','Dashboard::inactive_cause');
-
-
-$routes->match(['get','post'],'donation_data_excel','PhpspreadsheetController::import_donation_data');
-$routes->match(['get','post'],'transaction_data_excel','PhpspreadsheetController::import_transaction_data');
-
-$routes->match(['get','post'],'transaction_file','PhpspreadsheetController::transaction_file');
-$routes->match(['get','post'],'donation_data_file','PhpspreadsheetController::donation_data_file');
-
-$routes->add('logout','Dashboard::logout');
-// $routes->add('register','Donation::register');
-// $routes->add('list','Donation::edit_view');
-// $routes->add('store','Home::store');
-
-/**
- * --------------------------------------------------------------------
- * Additional Routing
- * --------------------------------------------------------------------
- *
- * There will often be times that you need additional routing and you
- * need it to be able to override any defaults in this file. Environment
- * based routes is one such time. require() additional route files here
- * to make that happen.
- *
- * You will have access to the $routes object within that file without
- * needing to reload it.
- */
-if (file_exists(APPPATH . 'Config/' . ENVIRONMENT . '/Routes.php'))
-{
- require APPPATH . 'Config/' . ENVIRONMENT . '/Routes.php';
-}
diff --git a/app/Config/Services.php b/app/Config/Services.php
deleted file mode 100644
index c58da70..0000000
--- a/app/Config/Services.php
+++ /dev/null
@@ -1,30 +0,0 @@
- 'Windows 10',
- 'windows nt 6.3' => 'Windows 8.1',
- 'windows nt 6.2' => 'Windows 8',
- 'windows nt 6.1' => 'Windows 7',
- 'windows nt 6.0' => 'Windows Vista',
- 'windows nt 5.2' => 'Windows 2003',
- 'windows nt 5.1' => 'Windows XP',
- 'windows nt 5.0' => 'Windows 2000',
- 'windows nt 4.0' => 'Windows NT 4.0',
- 'winnt4.0' => 'Windows NT 4.0',
- 'winnt 4.0' => 'Windows NT',
- 'winnt' => 'Windows NT',
- 'windows 98' => 'Windows 98',
- 'win98' => 'Windows 98',
- 'windows 95' => 'Windows 95',
- 'win95' => 'Windows 95',
- 'windows phone' => 'Windows Phone',
- 'windows' => 'Unknown Windows OS',
- 'android' => 'Android',
- 'blackberry' => 'BlackBerry',
- 'iphone' => 'iOS',
- 'ipad' => 'iOS',
- 'ipod' => 'iOS',
- 'os x' => 'Mac OS X',
- 'ppc mac' => 'Power PC Mac',
- 'freebsd' => 'FreeBSD',
- 'ppc' => 'Macintosh',
- 'linux' => 'Linux',
- 'debian' => 'Debian',
- 'sunos' => 'Sun Solaris',
- 'beos' => 'BeOS',
- 'apachebench' => 'ApacheBench',
- 'aix' => 'AIX',
- 'irix' => 'Irix',
- 'osf' => 'DEC OSF',
- 'hp-ux' => 'HP-UX',
- 'netbsd' => 'NetBSD',
- 'bsdi' => 'BSDi',
- 'openbsd' => 'OpenBSD',
- 'gnu' => 'GNU/Linux',
- 'unix' => 'Unknown Unix OS',
- 'symbian' => 'Symbian OS',
- ];
-
- // The order of this array should NOT be changed. Many browsers return
- // multiple browser types so we want to identify the sub-type first.
- public $browsers = [
- 'OPR' => 'Opera',
- 'Flock' => 'Flock',
- 'Edge' => 'Spartan',
- 'Chrome' => 'Chrome',
- // Opera 10+ always reports Opera/9.80 and appends Version/ to the user agent string
- 'Opera.*?Version' => 'Opera',
- 'Opera' => 'Opera',
- 'MSIE' => 'Internet Explorer',
- 'Internet Explorer' => 'Internet Explorer',
- 'Trident.* rv' => 'Internet Explorer',
- 'Shiira' => 'Shiira',
- 'Firefox' => 'Firefox',
- 'Chimera' => 'Chimera',
- 'Phoenix' => 'Phoenix',
- 'Firebird' => 'Firebird',
- 'Camino' => 'Camino',
- 'Netscape' => 'Netscape',
- 'OmniWeb' => 'OmniWeb',
- 'Safari' => 'Safari',
- 'Mozilla' => 'Mozilla',
- 'Konqueror' => 'Konqueror',
- 'icab' => 'iCab',
- 'Lynx' => 'Lynx',
- 'Links' => 'Links',
- 'hotjava' => 'HotJava',
- 'amaya' => 'Amaya',
- 'IBrowse' => 'IBrowse',
- 'Maxthon' => 'Maxthon',
- 'Ubuntu' => 'Ubuntu Web Browser',
- 'Vivaldi' => 'Vivaldi',
- ];
-
- public $mobiles = [
- // legacy array, old values commented out
- 'mobileexplorer' => 'Mobile Explorer',
- // 'openwave' => 'Open Wave',
- // 'opera mini' => 'Opera Mini',
- // 'operamini' => 'Opera Mini',
- // 'elaine' => 'Palm',
- 'palmsource' => 'Palm',
- // 'digital paths' => 'Palm',
- // 'avantgo' => 'Avantgo',
- // 'xiino' => 'Xiino',
- 'palmscape' => 'Palmscape',
- // 'nokia' => 'Nokia',
- // 'ericsson' => 'Ericsson',
- // 'blackberry' => 'BlackBerry',
- // 'motorola' => 'Motorola'
-
- // Phones and Manufacturers
- 'motorola' => 'Motorola',
- 'nokia' => 'Nokia',
- 'palm' => 'Palm',
- 'iphone' => 'Apple iPhone',
- 'ipad' => 'iPad',
- 'ipod' => 'Apple iPod Touch',
- 'sony' => 'Sony Ericsson',
- 'ericsson' => 'Sony Ericsson',
- 'blackberry' => 'BlackBerry',
- 'cocoon' => 'O2 Cocoon',
- 'blazer' => 'Treo',
- 'lg' => 'LG',
- 'amoi' => 'Amoi',
- 'xda' => 'XDA',
- 'mda' => 'MDA',
- 'vario' => 'Vario',
- 'htc' => 'HTC',
- 'samsung' => 'Samsung',
- 'sharp' => 'Sharp',
- 'sie-' => 'Siemens',
- 'alcatel' => 'Alcatel',
- 'benq' => 'BenQ',
- 'ipaq' => 'HP iPaq',
- 'mot-' => 'Motorola',
- 'playstation portable' => 'PlayStation Portable',
- 'playstation 3' => 'PlayStation 3',
- 'playstation vita' => 'PlayStation Vita',
- 'hiptop' => 'Danger Hiptop',
- 'nec-' => 'NEC',
- 'panasonic' => 'Panasonic',
- 'philips' => 'Philips',
- 'sagem' => 'Sagem',
- 'sanyo' => 'Sanyo',
- 'spv' => 'SPV',
- 'zte' => 'ZTE',
- 'sendo' => 'Sendo',
- 'nintendo dsi' => 'Nintendo DSi',
- 'nintendo ds' => 'Nintendo DS',
- 'nintendo 3ds' => 'Nintendo 3DS',
- 'wii' => 'Nintendo Wii',
- 'open web' => 'Open Web',
- 'openweb' => 'OpenWeb',
-
- // Operating Systems
- 'android' => 'Android',
- 'symbian' => 'Symbian',
- 'SymbianOS' => 'SymbianOS',
- 'elaine' => 'Palm',
- 'series60' => 'Symbian S60',
- 'windows ce' => 'Windows CE',
-
- // Browsers
- 'obigo' => 'Obigo',
- 'netfront' => 'Netfront Browser',
- 'openwave' => 'Openwave Browser',
- 'mobilexplorer' => 'Mobile Explorer',
- 'operamini' => 'Opera Mini',
- 'opera mini' => 'Opera Mini',
- 'opera mobi' => 'Opera Mobile',
- 'fennec' => 'Firefox Mobile',
-
- // Other
- 'digital paths' => 'Digital Paths',
- 'avantgo' => 'AvantGo',
- 'xiino' => 'Xiino',
- 'novarra' => 'Novarra Transcoder',
- 'vodafone' => 'Vodafone',
- 'docomo' => 'NTT DoCoMo',
- 'o2' => 'O2',
-
- // Fallback
- 'mobile' => 'Generic Mobile',
- 'wireless' => 'Generic Mobile',
- 'j2me' => 'Generic Mobile',
- 'midp' => 'Generic Mobile',
- 'cldc' => 'Generic Mobile',
- 'up.link' => 'Generic Mobile',
- 'up.browser' => 'Generic Mobile',
- 'smartphone' => 'Generic Mobile',
- 'cellphone' => 'Generic Mobile',
- ];
-
- // There are hundreds of bots but these are the most common.
- public $robots = [
- 'googlebot' => 'Googlebot',
- 'msnbot' => 'MSNBot',
- 'baiduspider' => 'Baiduspider',
- 'bingbot' => 'Bing',
- 'slurp' => 'Inktomi Slurp',
- 'yahoo' => 'Yahoo',
- 'ask jeeves' => 'Ask Jeeves',
- 'fastcrawler' => 'FastCrawler',
- 'infoseek' => 'InfoSeek Robot 1.0',
- 'lycos' => 'Lycos',
- 'yandex' => 'YandexBot',
- 'mediapartners-google' => 'MediaPartners Google',
- 'CRAZYWEBCRAWLER' => 'Crazy Webcrawler',
- 'adsbot-google' => 'AdsBot Google',
- 'feedfetcher-google' => 'Feedfetcher Google',
- 'curious george' => 'Curious George',
- 'ia_archiver' => 'Alexa Crawler',
- 'MJ12bot' => 'Majestic-12',
- 'Uptimebot' => 'Uptimebot',
- ];
-}
diff --git a/app/Config/Validation.php b/app/Config/Validation.php
deleted file mode 100644
index 97f08c7..0000000
--- a/app/Config/Validation.php
+++ /dev/null
@@ -1,36 +0,0 @@
- 'CodeIgniter\Validation\Views\list',
- 'single' => 'CodeIgniter\Validation\Views\single',
- ];
-
- //--------------------------------------------------------------------
- // Rules
- //--------------------------------------------------------------------
-}
diff --git a/app/Config/View.php b/app/Config/View.php
deleted file mode 100644
index f66b253..0000000
--- a/app/Config/View.php
+++ /dev/null
@@ -1,34 +0,0 @@
-session = \Config\Services::session();
- }
-
-}
diff --git a/app/Controllers/Dashboard.php b/app/Controllers/Dashboard.php
deleted file mode 100644
index 5f5a443..0000000
--- a/app/Controllers/Dashboard.php
+++ /dev/null
@@ -1,470 +0,0 @@
-dModel = new Dashboard_model();
- $this->rModel = new Receipt_model();
- $this->tModel = new Transaction_model();
- $this->ddModel = new Donation_data_model();
- $this->MyModel = new My_model();
- $this->dcModel = new Donation_cause();
- }
- public function index()
- {
-
- $data = [];
- if(!session()->has('logged_user'))
- {
- return redirect()->to(base_url());
- }
-
- $id= session()->get('logged_user');
- $data['userdata']=$this->dModel->getLoggedInUserData($id);
- // echo view('templates/header',$data);
- // echo view('dashboard');
- // echo view('templates/footer');
- return view('dashboard');
- }
- public function logout()
- {
- session()->remove('logged_user');
- session()->destroy();
- return redirect()->to(base_url());
- }
-
- function fetch_donor_id()
- {
- echo $this->MyModel->fetch_donor_id();
- }
- function edit_donor_id($receipt_id)
- {
- echo $receipt_id; die();
- echo $this->MyModel->edit_donor_id();
- }
- function fetch_cause_name()
- {
- echo $this->dcModel->fetch_cause_name();
- }
-
- public function receipts()
- {
- $data = [];
- if(!session()->has('logged_user'))
- {
- return redirect()->to(base_url());
- }
-
- $name= session()->get('logged_user');
- return view('receipts');
- // echo view('templates/header');
- // echo view('receipts');
- // echo view('templates/footer');
- }
-
-
- public function generate_receipts()
- {
- if(!session()->has('logged_user'))
- {
- return redirect()->to(base_url());
- }
-
- $donor_id=$this->request->getVar('donor_id');
- $mymodel = new My_model();
- $donor = $mymodel->find($donor_id);
- $donor_name = $donor['name'];
-
- $cause_id=$this->request->getVar('cause_id');
- $causemodel = new Donation_cause();
- $cause = $causemodel->find($cause_id);
- $cause_name = $cause['cause_name'];
-
- $receiptData=[
-
- 'date' =>$this->request->getVar('date'),
- 'donor_id' =>$this->request->getVar('donor_id'),
- 'donor_name' =>$donor_name,
- 'amount' =>$this->request->getVar('amount'),
- 'mode_of_receipt' =>$this->request->getVar('mode_of_receipt'),
- 'receipt_details' =>$this->request->getVar('receipt_details'),
- 'cause_id' =>$this->request->getVar('cause_id'),
- 'cause_name' =>$cause_name,
- 'remarks' =>$this->request->getVar('remarks'),
- ];
- //print_r($receiptData);die();
- $model = new Receipt_model();
- $model->save($receiptData);
- return redirect()->to(base_url().'all_receipt');
- }
-
- function update_receipt()
- {
- if(!session()->has('logged_user'))
- {
- return redirect()->to(base_url());
- }
-
- $receipt_id=$this->request->getVar('receipt_id');
-
- $donor_id=$this->request->getVar('donor_id');
- $mymodel = new My_model();
- $donor = $mymodel->find($donor_id);
- $donor_name = $donor['name'];
-
- $cause_id=$this->request->getVar('cause_id');
- $causemodel = new Donation_cause();
- $cause = $causemodel->find($cause_id);
- $cause_name = $cause['cause_name'];
-
- $receiptData=[
-
- 'date' =>$this->request->getVar('date'),
- 'donor_id' =>$this->request->getVar('donor_id'),
- 'donor_name' =>$donor_name,
- 'amount' =>$this->request->getVar('amount'),
- 'mode_of_receipt' =>$this->request->getVar('mode_of_receipt'),
- 'receipt_details' =>$this->request->getVar('receipt_details'),
- 'cause_id' =>$this->request->getVar('cause_id'),
- 'cause_name' =>$cause_name,
- 'remarks' =>$this->request->getVar('remarks'),
- ];
- $model = new Receipt_model();
- $model->update($receipt_id , $receiptData);
- return redirect()->to(base_url().'/all_receipt');
-
- }
-
- public function all_receipt()
- {
- $data = [];
- if(!session()->has('logged_user'))
- {
- return redirect()->to(base_url());
- }
- $data['receiptdata']=$this->rModel->all_receipt();
-
- return view('receipts_table',$data);
-
- }
-
- function edit_receipt($receipt_id)
- {
- if(!session()->has('logged_user'))
- {
- return redirect()->to(base_url());
- }
- $receipt_model = new Receipt_model();
- $receipt_data=$receipt_model->find($receipt_id);
-
- $donor_model = new My_model();
- $donor_data=$donor_model->findAll();
-
- $cause_model = new Donation_cause();
- $cause_data=$cause_model->findAll();
-
- $data= [ 'post'=>$receipt_data , 'donor'=>$donor_data , 'cause'=>$cause_data ];
- // if($this->request->getMethod() == 'post')
- // {
- // $model = new Receipt_model();
- // $_POST['receipt_id'] = $receipt_id;
- // $model->save($_POST);
- // return redirect()->to(base_url()."/Dashboard/all_receipt");
- // }
-
- return view('receipt_edit',$data);
-
-
- }
- function last_receipt()
- {
- if(!session()->has('logged_user'))
- {
- return redirect()->to(base_url());
- }
- // admin data
- $dmodel = new Donor_model();
- $id= session()->get('logged_user');
- $admin_data=$dmodel->find($id);
- // last receipt data
- $receipt_data=$this->rModel->last_receipt();
- //print_r($receipt_data);
- foreach($receipt_data as $key){ $key['receipt_id']; $key['donor_id'];}
- //donation cause
- $causemodel = new Donation_cause();
- $cause_id=$key['receipt_id'];
- $cause_data=$causemodel->find($cause_id);
- // donor data
- $model = new My_model();
- $donor_id=$key['donor_id'];
- $Donor_data=$model->find($donor_id);
- // array for receipt
- $data= [ 'donordata'=>$Donor_data , 'admindata' =>$admin_data , 'receipt'=>$receipt_data ,'causedata'=>$cause_data ];
-
- echo view('templates/header');
- echo view('pdf_view',$data);
- echo view('templates/footer');
- }
-
- function view_receipt($receiptid)
- {
- if(!session()->has('logged_user'))
- {
- return redirect()->to(base_url());
- }
- // admin data
- $dmodel = new Donor_model();
- $id= session()->get('logged_user');
- $admin_data=$dmodel->find($id);
- // receipt data
- $rmodel = new Receipt_model();
- $receipt_id=$receiptid;
- $receipt_data=$rmodel->find($receipt_id);
- $donorid = $receipt_data['donor_id'];
- $causeid = $receipt_data['cause_id'];
- // donation cause
- $causemodel = new Donation_cause();
- $cause_id=$causeid;
- $cause_data=$causemodel->find($cause_id);
- // donor data
- $model = new My_model();
- $donor_id=$donorid;
- $Donor_data=$model->find($donor_id);
- // array for receipt
- $data= [ 'donordata'=>$Donor_data , 'admindata' =>$admin_data , 'receipt'=>$receipt_data , 'causedata'=>$cause_data];
-
- //print_r($data); die();
- return view('receipt_view',$data);
-
- }
-
- public function transaction()
- {
- $data = [];
- if(!session()->has('logged_user'))
- {
- return redirect()->to(base_url());
- }
-
- $name= session()->get('logged_user');
- //$data['userdata']=$this->dModel->getLoggedInUserData($name);
-
- return view('transaction_upload');
-
- }
- // public function transaction_upload()
- // {
- // if(!session()->has('logged_user'))
- // {
- // return redirect()->to(base_url());
- // }
- // $model = new Transaction_model();
- // $transactionData=[
- // 'date' =>$this->request->getVar('date'),
- // 'ref_1' =>$this->request->getVar('ref_1'),
- // 'remarks' =>$this->request->getVar('remarks'),
- // 'amount' =>$this->request->getVar('amount'),
- // 'donation_ref' =>$this->request->getVar('donation_ref'),
-
- // ];
- // $model->save($transactionData);
- // return redirect()->to(base_url().'/Dashboard/all_transaction');
- // }
- public function all_transaction()
- {
- $data = [];
- if(!session()->has('logged_user'))
- {
- return redirect()->to(base_url());
- }
-
-
- $data['receiptdata']=$this->tModel->all_transaction();
-
- return view('transaction_table',$data);
-
- }
- function edit_transaction($id)
- {
- if(!session()->has('logged_user'))
- {
- return redirect()->to(base_url());
- }
- $model = new Transaction_model();
- $transaction_data=$model->find($id);
- $data= [ 'post'=>$transaction_data ];
-
- if($this->request->getMethod() == 'post')
- {
- $model = new Transaction_model();
- $_POST['id'] = $id;
- $model->save($_POST);
- return redirect()->to(base_url()."/all_transaction");
- }
-
- return view('transaction_edit',$data);
-
-
- }
-
-
-
- public function donation_data()
- {
- $data = [];
- if(!session()->has('logged_user'))
- {
- return redirect()->to(base_url());
- }
-
- return view('donation_data');
-
- }
- // public function donation_data_upload()
- // {
- // if(!session()->has('logged_user'))
- // {
- // return redirect()->to(base_url());
- // }
- // $model = new Donation_data_model();
- // $donationData=[
- // 'date' =>$this->request->getVar('date'),
- // 'cause_name' =>$this->request->getVar('cause_name'),
- // 'amount' =>$this->request->getVar('amount'),
- // 'mode_of_payment' =>$this->request->getVar('mode_of_payment'),
- // 'ref_1' =>$this->request->getVar('ref_1'),
- // 'donation_ref' =>$this->request->getVar('donation_ref'),
- // ];
- // $model->save($donationData);
- // return redirect()->to(base_url().'/Dashboard');
- // }
- public function all_donation_data()
- {
- $data = [];
- if(!session()->has('logged_user'))
- {
- return redirect()->to(base_url());
- }
-
-
- $data['donationdata']=$this->ddModel->all_donation_data();
-
- return view('donation_data_table',$data);
-
- }
- function edit_donation_data($id)
- {
- if(!session()->has('logged_user'))
- {
- return redirect()->to(base_url());
- }
- $model = new Donation_data_model();
- $donation_data=$model->find($id);
- $data= [ 'post'=>$donation_data ];
-
- if($this->request->getMethod() == 'post')
- {
- $model = new Donation_data_model();
- $_POST['id'] = $id;
- $model->save($_POST);
- return redirect()->to(base_url()."/all_donation_data");
- }
-
- return view('donation_data_edit',$data);
-
-
- }
- public function donation_cause()
- {
- $data = [];
- if(!session()->has('logged_user'))
- {
- return redirect()->to(base_url());
- }
- $data['donationcause']=$this->dcModel->all_donation_cause();
-
- return view('add_donation_cause');
-
- }
- public function all_donation_cause()
- {
- $data = [];
- if(!session()->has('logged_user'))
- {
- return redirect()->to(base_url());
- }
- $data['donationcause']=$this->dcModel->all_donation_cause();
-
- return view('all_donation_cause',$data);
-
- }
- public function add_donation_cause()
- {
- if(!session()->has('logged_user'))
- {
- return redirect()->to(base_url());
- }
- $model = new Donation_cause();
- $active="Active";
- $donationCause=[
- 'cause_name' =>$this->request->getVar('cause_name'),
- 'from_date' =>$this->request->getVar('from_date'),
- 'to_date' =>$this->request->getVar('to_date'),
- 'status' =>$active,
- ];
- $model->save($donationCause);
- return redirect()->to(base_url()."/Dashboard/donation_cause");
- }
- function edit_donation_cause($id)
- {
- if(!session()->has('logged_user'))
- {
- return redirect()->to(base_url());
- }
- $model = new Donation_cause();
- $donation_cause=$model->find($id);
- $data= [ 'post'=>$donation_cause ];
-
- if($this->request->getMethod() == 'post')
- {
- $model = new Donation_cause();
- $_POST['id'] = $id;
- $model->save($_POST);
- return redirect()->to(base_url()."/all_donation_cause");
- }
-
- return view('donation_cause_edit',$data);
-
-
- }
- function inactive_cause($cause_id)
- { $id = $cause_id;
- $inactive="Inactive";
- $donationCause=['status' =>$inactive,];
- $model = new Donation_cause();
- $model->update($id , $donationCause);
- return redirect()->to(base_url()."/all_donation_cause");
-
- }
- function active_cause($cause_id)
- { $id = $cause_id;
- $active="Active";
- $donationCause=['status' =>$active,];
- $model = new Donation_cause();
- $model->update($id , $donationCause);
- return redirect()->to(base_url()."/all_donation_cause");
-
- }
-
-
-}
\ No newline at end of file
diff --git a/app/Controllers/Donation.php b/app/Controllers/Donation.php
deleted file mode 100644
index 6ba5e60..0000000
--- a/app/Controllers/Donation.php
+++ /dev/null
@@ -1,41 +0,0 @@
-orderBy('id', 'DESC')->findAll();
-
- return view('list', $data);
- }
-
- public function test($type,$type2)
- {
- echo 'this is a product:'.$type.'and'.$type2.' ';
- //return view('show');
- }
- public function register()
- {
- if($this->request->getMethod() == 'post'){
- $model = new Donation_model();
- $model->save($_POST);
- }
- return view('show');
- }
-
-
-
-
-
- //--------------------------------------------------------------------
-
-}
diff --git a/app/Controllers/Donor_controller.php b/app/Controllers/Donor_controller.php
deleted file mode 100644
index 3ec8d34..0000000
--- a/app/Controllers/Donor_controller.php
+++ /dev/null
@@ -1,188 +0,0 @@
-session = session();
- $this->Donor_model = new Donor_model();
- $this->Dashboard_model = new Dashboard_model();
- }
- public function index()
- {
- $data=[];
- helper(['form']);
-
- if($this->request->getmethod() == 'post')
- {
-
- $email = $this->request->getVar('email');
- $password = $this->request->getVar('password');
- $userdata = $this->Donor_model->verifyEmail($email);
- if($userdata)
- {
- if(password_verify($password, $userdata['password']))
- {
-
- $this->session->set('logged_user',$userdata['id']);
- return redirect()->to(base_url().'/Dashboard');
- }
- else{
- $this->session->setTempdata('error','sorry wrong password entered for the Email',3);
- return redirect()->to(base_url());
- }
- }else
- {
- $this->session->setTempdata('error','sorry Email does not existe',3);
- return redirect()->to(base_url());
- }
-
-
- }
-
- return view('login');
-
-}
-
-
-
-
- public function register()
- {
-
-
- $data['country']=$this->Dashboard_model->fetch_country();
- helper(['form']);
-
- if($this->request->getmethod() == 'post')
- {
- //validate
- $rules=[
- 'name' =>'required|min_length[3]|max_length[30]',
- 'phone' =>'required|min_length[10]|max_length[12]|is_unique[user_management.phone]',
- 'email' =>'required|min_length[6]|max_length[50]|valid_email|is_unique[user_management.email]',
- 'pan' =>'required|min_length[10]|max_length[10]|is_unique[user_management.pan]',
- 'address' =>'required|min_length[3]|max_length[70]',
- 'pin_code' =>'required|min_length[6]|max_length[6]',
- 'org_name' =>'required|min_length[3]|max_length[20]',
- 'gstin' =>'required|min_length[15]|max_length[15]|is_unique[user_management.gstin]',
- 'password' =>'required|min_length[5]|max_length[20]',
- 'password_confirm' =>'matches[password]',
- 'userfile' => [
- 'uploaded[userfile]',
- 'mime_in[userfile,image/jpg,image/png,image/jpeg]',
- 'max_size[userfile,1000]',
- ],
-
- ];
-
- if(! $this->validate($rules))
- {
- $data['validation'] = $this->validator;
- }else{
-
-
- $Address_model = new Address_model();
-
- $country_id=$this->request->getVar('country');
- $state_id=$this->request->getVar('state');
- $city_id=$this->request->getVar('city');
-
- $country_name=$Address_model->country($country_id);
- foreach($country_name as $key){ $key['country_name']; }
- $country=$key['country_name'];
- $state_name=$Address_model->state($state_id);
- foreach($state_name as $key){ $key['state_name']; }
- $state=$key['state_name'];
- $city_name=$Address_model->city($city_id);
- foreach($city_name as $key){ $key['city_name']; }
- $city=$key['city_name'];
-
- $path="public/assets/uploads";
- if($img = $this->request->getFile('userfile'))
- {
- if ($img->isValid() && ! $img->hasMoved())
- {
- //$newName = $img->getRandomName();
- $f_type=date('Y-m-d').time().$_FILES['userfile']['name'];
- $img->move($path, $f_type);
- $signature="public/assets/uploads/".$f_type;
- }
- }
-
-
- //store the donor in database
- $model = new Donor_model();
- $donorData=[
- 'name' =>$this->request->getVar('name'),
- 'phone' =>$this->request->getVar('phone'),
- 'email' =>$this->request->getVar('email'),
- 'pan' =>$this->request->getVar('pan'),
- 'address' =>$this->request->getVar('address'),
- 'country' =>$country,
- 'state' =>$state,
- 'city' =>$city,
- 'pin_code' =>$this->request->getVar('pin_code'),
- 'date_of_birth' =>$this->request->getVar('date_of_birth'),
- 'gender' =>$this->request->getVar('gender'),
- 'org_name' =>$this->request->getVar('org_name'),
- 'gstin' =>$this->request->getVar('gstin'),
- 'foreign_key' =>$this->request->getVar('email'),
- 'password' =>$this->request->getVar('password'),
- 'signature' =>$signature,
- ];
- //print_r($donorData);die();
- $model->save($donorData);
- $session = session();
- $session ->setFlashdata('success','Successful Registration');
- return redirect()->to(base_url());
- }
- }
-
-
- //echo view('templates/header',$data);
- return view('register',$data);
- //echo view('templates/footer');
-
- }
-
- function profile()
- {
- $id= session()->get('logged_user');
- $data['userdata']=$this->Dashboard_model->getLoggedInUserData($id);
- return view('profile',$data);
- }
-
- function fetch_country()
- {
-
- echo $this->Dashboard_model->fetch_country();
-
- }
- function fetch_state()
- {
-
- if($this->request->getVar('country_id'))
- {
- echo $this->Dashboard_model->fetch_state($this->request->getVar('country_id'));
- }
- }
-
- function fetch_city()
- {
- if($this->request->getVar('state_id'))
- {
- echo $this->Dashboard_model->fetch_city($this->request->getVar('state_id'));
- }
- }
-
-
- //--------------------------------------------------------------------
-
-}
diff --git a/app/Controllers/Home.php b/app/Controllers/Home.php
deleted file mode 100644
index b024394..0000000
--- a/app/Controllers/Home.php
+++ /dev/null
@@ -1,81 +0,0 @@
-test('7777','9999');
- // }
-
- public function store()
- {
- helper(['form', 'url']);
-
- $model = new Donation_model();
-
- $data = [
- 'email' => $this->request->getVar('email'),
- 'name' => $this->request->getVar('name'),
- 'department' => $this->request->getVar('department'),
-
- ];
-
- $save = $model->insert($data);
- return redirect()->to( base_url('show') );
- }
-
- public function edit($id = null)
- {
- $model = new Donation_model();
- $post = $model->find($id);
- $data=['post' => $post,];
- return view('edit_view', $data);
- //return view('edit_view',['firstci4'=>$this->$model->find($id)]);
- }
-
- public function update()
- {
- helper(['form', 'url']);
-
- $model = new Donation_model();
-
- $id = $this->request->getVar('id');
- $data = [
- 'name' => $this->request->getVar('name'),
- 'email' => $this->request->getVar('email'),
- ];
- $save = $model->update($id,$data);
- $donation = new Donation();
- echo $donation->edit_view();
- //return redirect()->to( base_url('users') );
- }
-
- public function userDelete($id = null)
- {
- $model = new Donation_model();
- $data['user'] = $model->where('id', $id)->delete();
- $donation = new Donation();
- echo $donation->edit_view();
- // return redirect()->to( base_url('users') );
- }
- public function profile($id = null)
- {
- $model = new Donation_model();
- $post = $model->find($id);
- $data=['post' => $post,];
- return view('profile_view', $data);
-
- }
-
- //--------------------------------------------------------------------
-
-}
diff --git a/app/Controllers/My_controller.php b/app/Controllers/My_controller.php
deleted file mode 100644
index 96c6097..0000000
--- a/app/Controllers/My_controller.php
+++ /dev/null
@@ -1,230 +0,0 @@
-session = session();
- $this->My_model = new My_model();
- $this->Dashboard_model = new Dashboard_model();
- }
-
- // public function donor_register() {
- // helper(['form', 'url']);
-
- // $input = $this->validate([
- // 'name' =>'required|min_length[3]|max_length[20]',
- // 'phone' =>'required|min_length[3]|max_length[10]',
- // 'email' =>'required|min_length[6]|max_length[50]|valid_email|is_unique[donar_management.email]',
- // 'pan' =>'required|min_length[3]|max_length[20]',
- // 'address' =>'required|min_length[3]|max_length[70]',
- // 'country' =>'required',
- // 'state' =>'required',
- // 'city' =>'required',
- // 'pin_code' =>'required|min_length[6]|max_length[6]',
- // 'date_of_birth' =>'required|min_length[3]|max_length[20]',
- // 'gender' =>'required',
- // 'org_name' =>'required|min_length[3]|max_length[20]',
- // 'gstin' =>'required|min_length[3]|max_length[20]',
- // ]);
-
- // $formModel = new FormModel();
-
- // if (!$input) {
- // echo view('contact_form', [
- // 'validation' => $this->validator
- // ]);
- // } else {
- // $formModel->save([
- // 'name' => $this->request->getVar('name'),
- // 'email' => $this->request->getVar('email'),
- // 'phone' => $this->request->getVar('phone'),
- // ]);
-
- // return $this->response->redirect(site_url('/submit-form'));
- // }
- // }
-
-
-
- public function donor_register()
- {
-
- $data['country']=$this->Dashboard_model->fetch_country();
- helper(['form', 'url']);
- if(!session()->has('logged_user'))
- {
- return redirect()->to(base_url());
- }
-
-
-
- if($this->request->getmethod() == 'post')
- {
- // validate
- $rules=[
- 'name' =>'required|min_length[3]|max_length[20]',
- 'phone' =>'required|min_length[10]|max_length[12]|is_unique[donar_management.phone]',
- 'email' =>'required|min_length[6]|max_length[50]|valid_email|is_unique[donar_management.email]',
- 'pan' =>'required|min_length[10]|max_length[10]|is_unique[donar_management.pan]',
- 'address' =>'required|min_length[3]|max_length[70]',
- 'pin_code' =>'required|min_length[6]|max_length[6]',
- 'date_of_birth' =>'required|min_length[6]|max_length[10]',
- 'org_name' =>'required|min_length[3]|max_length[20]',
- 'gstin' =>'required|min_length[15]|max_length[15]|is_unique[donar_management.gstin]',
- ];
-
- if(! $this->validate($rules))
- {
- $data['validation'] = $this->validator;
- //echo '';
- }else{
- $Address_model = new Address_model();
-
- $country_id=$this->request->getVar('country');
- $state_id=$this->request->getVar('state');
- $city_id=$this->request->getVar('city');
-
- $country_name=$Address_model->country($country_id);
- foreach($country_name as $key){ $key['country_name']; }
- $country=$key['country_name'];
- $state_name=$Address_model->state($state_id);
- foreach($state_name as $key){ $key['state_name']; }
- $state=$key['state_name'];
- $city_name=$Address_model->city($city_id);
- foreach($city_name as $key){ $key['city_name']; }
- $city=$key['city_name'];
-
- $model = new My_model();
- $donorData=[
- 'name' =>$this->request->getVar('name'),
- 'phone' =>$this->request->getVar('phone'),
- 'email' =>$this->request->getVar('email'),
- 'pan' =>$this->request->getVar('pan'),
- 'address' =>$this->request->getVar('address'),
- 'country' =>$country,
- 'state' =>$state,
- 'city' =>$city,
- 'pin_code' =>$this->request->getVar('pin_code'),
- 'date_of_birth' =>$this->request->getVar('date_of_birth'),
- 'gender' =>$this->request->getVar('gender'),
- 'org_name' =>$this->request->getVar('org_name'),
- 'gstin' =>$this->request->getVar('gstin'),
-
-
- ];
- //print_r($donorData); die();
- $model->save($donorData);
- $session = session();
- $session ->setFlashdata('success','Successful Added');
- return redirect()->to(base_url().'/all_donor');
- }
- }
-
- // echo view('templates/header',$data);
- return view('donor_registration');
- // echo view('templates/footer');
-
- }
-
- public function all_donor()
- {
- $data = [];
- if(!session()->has('logged_user'))
- {
- return redirect()->to(base_url());
- }
-
-
- $data['receiptdata']=$this->My_model->all_donor();
-
- return view('donor_table',$data);
-
- }
- function edit_donor($id)
- {
- if(!session()->has('logged_user'))
- {
- return redirect()->to(base_url());
- }
- $model = new My_model();
- $donor_data=$model->find($id);
- $data= [ 'post'=>$donor_data ];
-
- if($this->request->getMethod() == 'post')
- {
- $model = new My_model();
- $_POST['id'] = $id;
- $model->save($_POST);
- return redirect()->to(base_url()."/all_donor");
- }
- return view('donor_edit',$data);
-
- }
- function update_donor()
- {
- if(!session()->has('logged_user'))
- {
- return redirect()->to(base_url());
- }
-
- $donor_id=$this->request->getVar('id');
-
-
- $DonorData=[
-
- 'name' =>$this->request->getVar('name'),
- 'phone' =>$this->request->getVar('phone'),
- 'email' =>$this->request->getVar('email'),
- 'pan' =>$this->request->getVar('pan'),
- 'address' =>$this->request->getVar('address'),
- 'country' =>$this->request->getVar('country'),
- 'state' =>$this->request->getVar('state'),
- 'city' =>$this->request->getVar('city'),
- 'pin_code' =>$this->request->getVar('pin_code'),
- 'date_of_birth' =>$this->request->getVar('date_of_birth'),
- 'gender' =>$this->request->getVar('gender'),
- 'org_name' =>$this->request->getVar('org_name'),
- 'gstin' =>$this->request->getVar('gstin'),
- ];
- //print_r($DonorData);die();
- $model = new My_model();
- $model->update($donor_id , $DonorData);
- return redirect()->to(base_url().'/all_donor');
-
- }
-
- function fetch_country()
- {
-
- echo $this->Dashboard_model->fetch_country();
-
- }
- function fetch_state()
- {
-
- if($this->request->getVar('country_id'))
- {
- echo $this->Dashboard_model->fetch_state($this->request->getVar('country_id'));
- }
- }
-
- function fetch_city()
- {
- if($this->request->getVar('state_id'))
- {
- echo $this->Dashboard_model->fetch_city($this->request->getVar('state_id'));
- }
- }
-
-
-
-
- //--------------------------------------------------------------------
-
-}
diff --git a/app/Controllers/PdfController.php b/app/Controllers/PdfController.php
deleted file mode 100644
index ad49b20..0000000
--- a/app/Controllers/PdfController.php
+++ /dev/null
@@ -1,75 +0,0 @@
-find($receipt_id);
- $data= [ 'post'=>$receipt_data ];
- // $html = view('pdf_view',$data);
- // $dompdf->loadHtml($html);
- $dompdf = new \Dompdf\Dompdf();
- $dompdf->loadHtml(view('pdf_view',$data));
- $dompdf->setPaper('A4', 'landscape');
- $dompdf->render();
- $dompdf->stream();
- }
- function download_receipt($receiptid)
- {
- // admin data
- $dmodel = new Donor_model();
- $id= session()->get('logged_user');
- $admin_data=$dmodel->find($id);
- // receipt data
- $rmodel = new Receipt_model();
- $receipt_id=$receiptid;
- $receipt_data=$rmodel->find($receipt_id);
- $donorid = $receipt_data['donor_id'];
- $causeid = $receipt_data['cause_id'];
- // donation cause
- $causemodel = new Donation_cause();
- $cause_id=$causeid;
- $cause_data=$causemodel->find($cause_id);
- // donor data
- $model = new My_model();
- $donor_id=$donorid;
- $Donor_data=$model->find($donor_id);
- // array for receipt
- $data= [ 'donordata'=>$Donor_data , 'admindata' =>$admin_data , 'receipt'=>$receipt_data , 'causedata'=>$cause_data];
- //echo view('download_receipt',$data); die();
- $html = view('download_receipt',$data);
-
- $dompdf = new \Dompdf\Dompdf();
- //$dompdf->loadHtml(view('download_receipt',$data));
-
-
- $options = $dompdf->getOptions();
- $options->set(array('isRemoteEnabled' => true));
- $dompdf->setOptions($options);
- $dompdf->loadHtml($html);
- $dompdf->setPaper('A4', 'portrait');
- $dompdf->render();
- $dompdf->stream();
- $pdfContent = $dompdf->output();
-
-
-
- }
-
-
-
-}
\ No newline at end of file
diff --git a/app/Controllers/PhpspreadsheetController.php b/app/Controllers/PhpspreadsheetController.php
deleted file mode 100644
index 3481b50..0000000
--- a/app/Controllers/PhpspreadsheetController.php
+++ /dev/null
@@ -1,270 +0,0 @@
-session = session();
- $this->Donation_data_model = new Donation_data_model();
- $this->Transaction_model = new Transaction_model();
-
- }
-
-public function import_donation_data()
-{
- if(!session()->has('logged_user'))
- {
- return redirect()->to(base_url());
- }
-
-
- if($this->request->getmethod() == 'post')
- {
- //validate
- $rules=[
-
- 'upload_file' => [
- 'rules'=>'uploaded[upload_file]|max_size[upload_file,1024]|ext_in[upload_file,xlsx]',
- 'lable'=>'upload file'
-
- ]
-
- ];
-
- if(! $this->validate($rules))
- {
- $data['validation'] = $this->validator;
- }else{
-
- $file= $this->request->getFile('upload_file');
- //echo $file->getName();exit();
- $ext=$file->getClientExtension();
- if($ext == 'xls'){
- $render = new \PhpOffice\PhpSpreadsheet\Reader\Xls();
- } else {
- $render = new \PhpOffice\PhpSpreadsheet\Reader\Xlsx();
- }
- $spreadsheet = $render->load($file);
- $allDataInSheet = $spreadsheet->getActiveSheet()->toArray(null, true, true, true);
- $arrayCount = count($allDataInSheet);
-
- $flag = 0;
- $createArray = array('DATE', 'CAUSE_NAME', 'AMOUNT', 'PAYMENT_MODE' , 'REF' , 'DONATION_REF');
-
- $makeArray = array('DATE' => 'DATE', 'CAUSE_NAME' => 'CAUSE_NAME', 'AMOUNT' => 'AMOUNT', 'PAYMENT_MODE' => 'PAYMENT_MODE', 'REF' => 'REF', 'DONATION_REF' => 'DONATION_REF');
-
- $SheetDataKey = array();
-
- foreach ($allDataInSheet as $dataInSheet) {
- foreach ($dataInSheet as $key => $value) {
-
- if (in_array(trim($value), $createArray)) {
-
- $value = preg_replace('/\s+/', '', $value);
- $SheetDataKey[trim($value)] = $key;
-
- }
-
- }
-
- }
- $dataDiff = array_diff_key($makeArray, $SheetDataKey);
-
- if (empty($dataDiff)) {
- $flag = 1;
- }
- // match excel sheet column
- if ($flag == 1)
- {
- for ($i = 2; $i <= $arrayCount; $i++)
- {
-
- $date = $SheetDataKey['DATE'];
- $cause_name = $SheetDataKey['CAUSE_NAME'];
- $amount = $SheetDataKey['AMOUNT'];
- $payment_mode = $SheetDataKey['PAYMENT_MODE'];
- $ref = $SheetDataKey['REF'];
- $donation_ref = $SheetDataKey['DONATION_REF'];
-
-
- $date = filter_var(trim($allDataInSheet[$i][$date]), FILTER_SANITIZE_STRING);
- $cause_name = filter_var(trim($allDataInSheet[$i][$cause_name]), FILTER_SANITIZE_STRING);
- $amount = filter_var(trim($allDataInSheet[$i][$amount]), FILTER_SANITIZE_EMAIL);
- $payment_mode = filter_var(trim($allDataInSheet[$i][$payment_mode]), FILTER_SANITIZE_STRING);
- $ref = filter_var(trim($allDataInSheet[$i][$ref]), FILTER_SANITIZE_EMAIL);
- $donation_ref = filter_var(trim($allDataInSheet[$i][$donation_ref]), FILTER_SANITIZE_STRING);
-
- $fetchData= array('date' => $date, 'cause_name' => $cause_name, 'amount' => $amount, 'mode_of_payment' => $payment_mode, 'ref_1' => $ref, 'donation_ref' => $donation_ref);
-
-
- $model = new Donation_data_model();
- $model->save($fetchData);
-
- }
-
-
-
-
-
- } else {
- echo '';
- //echo "Please import correct file, did not match excel sheet column";
- }
-
-
- }
- }
- //return redirect()->to(base_url().'/all_donation_data');
- return view('donation_data');
-}
-
-
-// public function import_transaction_data()
-// {
- // $file_mimes = array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'application/x-csv', 'text/x-csv', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel', 'text/plain', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
-
-// if(isset($_FILES['transacton_upload']['name']) && in_array($_FILES['transacton_upload']['type'], $file_mimes))
-// {
-// $arr_file = explode('.', $_FILES['transacton_upload']['name']);
-// $extension = end($arr_file);
-// if('csv' == $extension){
-// $reader = new \PhpOffice\PhpSpreadsheet\Reader\Csv();
-// } else {
-// $reader = new \PhpOffice\PhpSpreadsheet\Reader\Xlsx();
-// }
-// $spreadsheet = $reader->load($_FILES['transacton_upload']['tmp_name']);
-// $sheetData = $spreadsheet->getActiveSheet()->toArray();
-// if(!empty($sheetData))
-// {echo "";
-// print_r($sheetData);
-// }
-// }
-// }
-
-
-
-
-public function import_transaction_data()
-{
- if(!session()->has('logged_user'))
- {
- return redirect()->to(base_url());
- }
-
- if($this->request->getmethod() == 'post')
- {
- //validate
- $rules=[
-
- 'transacton_upload' => [
- 'rules'=>'uploaded[transacton_upload]|max_size[transacton_upload,1024]|ext_in[transacton_upload,xlsx]',
- 'lable'=>'upload file'
-
- ]
-
- ];
-
- if(! $this->validate($rules))
- {
- $data['validation'] = $this->validator;
- }else{
-
- $file= $this->request->getFile('transacton_upload');
- //echo $file->getName();exit();
- $ext=$file->getClientExtension();
- if($ext == 'xls'){
- $render = new \PhpOffice\PhpSpreadsheet\Reader\Xls();
- } else {
- $render = new \PhpOffice\PhpSpreadsheet\Reader\Xlsx();
- }
- $spreadsheet = $render->load($file);
- $allDataInSheet = $spreadsheet->getActiveSheet()->toArray(null, true, true, true);
- $arrayCount = count($allDataInSheet);
- print_r($arrayCount);die();
- $flag = 0;
- $createArray = array('DATE', 'REF_1', 'REF_2', 'REMARKS' , 'AMOUNT' , 'DONATION_REF');
-
- $makeArray = array('DATE' => 'DATE', 'REF_1' => 'REF_1', 'REF_2' => 'REF_2', 'REMARKS' => 'REMARKS', 'AMOUNT' => 'AMOUNT', 'DONATION_REF' => 'DONATION_REF');
-
- $SheetDataKey = array();
-
- foreach ($allDataInSheet as $dataInSheet) {
- foreach ($dataInSheet as $key => $value) {
-
- if (in_array(trim($value), $createArray)) {
-
- $value = preg_replace('/\s+/', '', $value);
- $SheetDataKey[trim($value)] = $key;
-
- }
-
- }
-
- }
- $dataDiff = array_diff_key($makeArray, $SheetDataKey);
-
- if (empty($dataDiff)) {
- $flag = 1;
- }
- // match excel sheet column
- if ($flag == 1)
- {
- for ($i = 2; $i <= $arrayCount; $i++)
- {
-
- $date = $SheetDataKey['DATE'];
- $ref_1 = $SheetDataKey['REF_1'];
- $ref_2 = $SheetDataKey['REF_2'];
- $remarks = $SheetDataKey['REMARKS'];
- $amount = $SheetDataKey['AMOUNT'];
- $donation_ref = $SheetDataKey['DONATION_REF'];
-
-
- $date = filter_var(trim($allDataInSheet[$i][$date]), FILTER_SANITIZE_STRING);
- $ref_1 = filter_var(trim($allDataInSheet[$i][$ref_1]), FILTER_SANITIZE_STRING);
- $ref_2 = filter_var(trim($allDataInSheet[$i][$ref_2]), FILTER_SANITIZE_EMAIL);
- $remarks = filter_var(trim($allDataInSheet[$i][$remarks]), FILTER_SANITIZE_STRING);
- $amount = filter_var(trim($allDataInSheet[$i][$amount]), FILTER_SANITIZE_EMAIL);
- $donation_ref = filter_var(trim($allDataInSheet[$i][$donation_ref]), FILTER_SANITIZE_STRING);
-
- $fetchData= array('date' => $date, 'ref_1' => $ref_1, 'ref_2' => $ref_2, 'remarks' => $remarks, 'amount' => $amount, 'donation_ref' => $donation_ref);
- // print_r($fetchData);
- $model = new Transaction_model();
- $model->save($fetchData);
-
- }
-
- } else {
- echo '';
- //echo "Please import correct file, did not match excel sheet column";
- }
-
-
- }
-
-
- }
- // return redirect()->to(base_url().'/all_transaction');
- return view('transaction_upload');
-
-}
- public function transaction_file()
-{
- return $this->response->download('public/assets/download/transaction_data_file.xlsx', NULL);
-}
- public function donation_data_file()
-{
- return $this->response->download('public/assets/download/donation_data_file.xlsx', NULL);
-}
-
-}
\ No newline at end of file
diff --git a/app/Controllers/Sendmail.php b/app/Controllers/Sendmail.php
deleted file mode 100644
index 1d48299..0000000
--- a/app/Controllers/Sendmail.php
+++ /dev/null
@@ -1,63 +0,0 @@
-setFrom('celine.forworkinphp96@gmail.com', 'Gowtham');
- $email->setTo($to);
- $email->setSubject($subject);
- $email->setMessage($message);
-
- if ($email->send())
- {
- echo 'Email successfully sent';
- }
- else
- {
- $data = $email->printDebugger(['headers']);
- print_r($data);
- }
-
- }
-
- function sendMail() {
- $to = $this->request->getVar('mailTo');
- $subject = $this->request->getVar('subject');
- $message = $this->request->getVar('message');
-
- $email = \Config\Services::email();
-
- $email->setTo($to);
- $email->setFrom('johndoe@gmail.com', 'Confirm Registration');
-
- $email->setSubject($subject);
- $email->setMessage($message);
-
- if ($email->send())
- {
- echo 'Email successfully sent';
- }
- else
- {
- $data = $email->printDebugger(['headers']);
- print_r($data);
- }
- }
-
-}
\ No newline at end of file
diff --git a/app/Controllers/UsersRules.php b/app/Controllers/UsersRules.php
deleted file mode 100644
index ca51a30..0000000
--- a/app/Controllers/UsersRules.php
+++ /dev/null
@@ -1,18 +0,0 @@
-where('email',$data['email'])
- ->first();
- if($Donor)
- return false;
- return password_verify($data['password'],$Donor['password']);
- }
-
-}
\ No newline at end of file
diff --git a/app/Controllers/admin/Donation.php b/app/Controllers/admin/Donation.php
deleted file mode 100644
index 271d968..0000000
--- a/app/Controllers/admin/Donation.php
+++ /dev/null
@@ -1,20 +0,0 @@
-this is a product:'.$type.'and'.$type2.'';
- //return view('show');
- }
-
- //--------------------------------------------------------------------
-
-}
diff --git a/app/Database/Migrations/.gitkeep b/app/Database/Migrations/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/app/Database/Seeds/.gitkeep b/app/Database/Seeds/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/app/Filters/.gitkeep b/app/Filters/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/app/Helpers/.gitkeep b/app/Helpers/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/app/Language/.gitkeep b/app/Language/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/app/Language/en/Validation.php b/app/Language/en/Validation.php
deleted file mode 100644
index 54d1e7a..0000000
--- a/app/Language/en/Validation.php
+++ /dev/null
@@ -1,4 +0,0 @@
-db->table('donation_cause');
- // $builder->where('status','Active');
- $result = $builder->get();
- $output = $result->getResultArray();
- return $output;
- }
-function inactive_donation_cause()
- {
- $builder = $this->db->table('donation_cause');
- $builder->where('status','Inactive');
- $result = $builder->get();
- $output = $result->getResultArray();
- return $output;
- }
- function country($id)
- {
- $builder=$this->db->query("SELECT country_name FROM country WHERE country_id = ".$id);
- $output = $builder->getResultArray();
- return $output;
- }
- function state($id)
- {
- $builder=$this->db->query("SELECT state_name FROM state WHERE state_id = ".$id);
- $output = $builder->getResultArray();
- return $output;
- }
- function city($id)
- {
- $builder=$this->db->query("SELECT city_name FROM city WHERE city_id = ".$id);
- $output = $builder->getResultArray();
- return $output;
- }
-// function active_cause($id)
- // {
- // $builder=$this->db->query("UPDATE donation_cause SET status ='Active' WHERE id = ".$id);
- // }
- function fetch_cause_name()
- {
- $builder = $this->db->table('donation_cause');
- $builder->where('status','Active');
- $query = $builder->get();
- $output = 'Select Cause Name ';
- foreach($query->getResult() as $row)
- {
- $output .= ''.$row->cause_name.' ';
- }
- return $output;
- }
-
-
-
-}
\ No newline at end of file
diff --git a/app/Models/Dashboard_model.php b/app/Models/Dashboard_model.php
deleted file mode 100644
index 4ea8d25..0000000
--- a/app/Models/Dashboard_model.php
+++ /dev/null
@@ -1,65 +0,0 @@
-db->table('user_management');
- $builder->where('id',$id);
- $result = $builder->get();
- if(count($result->getResultArray()) ==1)
- {
- return $result->getRow();
- }else{
- return false;
- }
-
- }
-
- function fetch_country()
- {
-
- $builder = $this->db->table('country');
- $query = $builder->get();
- //print_r($query);die();
- $output = 'Select Country ';
- foreach($query->getResult() as $row)
- {
- $output .= ''.$row->country_name.' ';
- }
- return $output;
- }
- function fetch_state($country_id)
- {
-
- $builder = $this->db->table('state');
- $builder->where('country_id',$country_id);
- $query = $builder->get();
- //print_r($query);die();
- $output = 'Select State ';
- foreach($query->getResult() as $row)
- {
- $output .= ''.$row->state_name.' ';
- }
- return $output;
- }
- function fetch_city($state_id)
- {
-
- $builder = $this->db->table('city');
- $builder->where('state_id',$state_id);
- $query = $builder->get();
- //print_r($query);die();
- $output = 'Select city ';
- foreach($query->getResult() as $row)
- {
- $output .= ''.$row->city_name.' ';
- }
- return $output;
- }
-
-}
\ No newline at end of file
diff --git a/app/Models/Donation_cause.php b/app/Models/Donation_cause.php
deleted file mode 100644
index 4f671d2..0000000
--- a/app/Models/Donation_cause.php
+++ /dev/null
@@ -1,64 +0,0 @@
-db->table('donation_cause');
- // $builder->where('status','Active');
- $result = $builder->get();
- $output = $result->getResultArray();
- return $output;
- }
-function inactive_donation_cause()
- {
- $builder = $this->db->table('donation_cause');
- $builder->where('status','Inactive');
- $result = $builder->get();
- $output = $result->getResultArray();
- return $output;
- }
- // function inactive_cause($id)
- // {
- // $builder=$this->db->query("UPDATE donation_cause SET status = Inactive WHERE id = ".$id);
- // }
-// function active_cause($id)
- // {
- // $builder=$this->db->query("UPDATE donation_cause SET status ='Active' WHERE id = ".$id);
- // }
- function fetch_cause_name()
- {
- $builder = $this->db->table('donation_cause');
- $builder->where('status','Active');
- $query = $builder->get();
- $output = 'Select Cause Name ';
- foreach($query->getResult() as $row)
- {
- $output .= ''.$row->cause_name.' ';
- }
- return $output;
- }
-
-
- // protected $returnType = 'array';
- // protected $useSoftDeletes = true;
-
-
-
- // protected $useTimestamps = false;
- // protected $createdField = 'created_at';
- // protected $updatedField = 'updated_at';
- // protected $deletedField = 'deleted_at';
-
- // protected $validationRules = [];
- // protected $validationMessages = [];
- // protected $skipValidation = false;
-}
\ No newline at end of file
diff --git a/app/Models/Donation_data_model.php b/app/Models/Donation_data_model.php
deleted file mode 100644
index 9fc1410..0000000
--- a/app/Models/Donation_data_model.php
+++ /dev/null
@@ -1,37 +0,0 @@
-db->table('donation_data');
- $result = $builder->get();
- $output = $result->getResultArray();
- return $output;
- }
-
-
- // protected $returnType = 'array';
- // protected $useSoftDeletes = true;
-
-
-
- // protected $useTimestamps = false;
- // protected $createdField = 'created_at';
- // protected $updatedField = 'updated_at';
- // protected $deletedField = 'deleted_at';
-
- // protected $validationRules = [];
- // protected $validationMessages = [];
- // protected $skipValidation = false;
-}
\ No newline at end of file
diff --git a/app/Models/Donation_model.php b/app/Models/Donation_model.php
deleted file mode 100644
index ba30c18..0000000
--- a/app/Models/Donation_model.php
+++ /dev/null
@@ -1,25 +0,0 @@
-passwordHash($data);
- return $data;
- }
-
- protected function beforeUpdate(array $data){
- $data= $this->passwordHash($data);
- return $data;
- }
-
- protected function passwordHash(array $data)
- {
- if(isset($data['data']['password']))
- $data['data']['password'] = password_hash($data['data']['password'],PASSWORD_DEFAULT);
- return $data;
- }
- public function verifyEmail($email)
- {
-
- $builder = $this->db->table('user_management');
- $builder -> select("id,phone,email,password");
- $builder -> where('email',$email);
- $result = $builder->get();
- if(count($result->getResultArray()) ==1)
- {
- return $result->getRowArray();
- }else{
- return false;
- }
- }
-
-
- // protected $returnType = 'array';
- // protected $useSoftDeletes = true;
-
-
-
- // protected $useTimestamps = false;
- // protected $createdField = 'created_at';
- // protected $updatedField = 'updated_at';
- // protected $deletedField = 'deleted_at';
-
- // protected $validationRules = [];
- // protected $validationMessages = [];
- // protected $skipValidation = false;
-}
\ No newline at end of file
diff --git a/app/Models/My_model.php b/app/Models/My_model.php
deleted file mode 100644
index edfd228..0000000
--- a/app/Models/My_model.php
+++ /dev/null
@@ -1,61 +0,0 @@
-db->table('donar_management');
- $result = $builder->get();
- $output = $result->getResultArray();
- return $output;
- }
-function fetch_donor_id()
- {
-
- $builder = $this->db->table('donar_management');
- $query = $builder->get();
- //print_r($query);die();
- $output = 'Select Donor Id ';
- foreach($query->getResult() as $row)
- {
- $output .= ''.$row->name.' ';
- }
- return $output;
- }
- function edit_donor_id()
- {
-
- $builder = $this->db->table('donar_management');
- $query = $builder->get();
- //print_r($query);die();
- $output = 'hai ';
- foreach($query->getResult() as $row)
- {
- $output .= ''.$row->name.' ';
- }
- return $output;
- }
-
- // protected $returnType = 'array';
- // protected $useSoftDeletes = true;
-
-
-
- // protected $useTimestamps = false;
- // protected $createdField = 'created_at';
- // protected $updatedField = 'updated_at';
- // protected $deletedField = 'deleted_at';
-
- // protected $validationRules = [];
- // protected $validationMessages = [];
- // protected $skipValidation = false;
-}
\ No newline at end of file
diff --git a/app/Models/Receipt_model.php b/app/Models/Receipt_model.php
deleted file mode 100644
index efb4629..0000000
--- a/app/Models/Receipt_model.php
+++ /dev/null
@@ -1,42 +0,0 @@
-db->table('receipts');
- $result = $builder->get();
- $output = $result->getResultArray();
- return $output;
- }
-
- function last_receipt()
- {
- $builder=$this->db->query("SELECT receipt_id,receipt_no,date,donor_id,amount,mode_of_receipt,receipt_details,cause_name,remarks FROM receipts where receipt_id =(select max(receipt_id) from receipts) ");
- $output = $builder->getResultArray();
- return $output;
- }
-
-
- // protected $returnType = 'array';
- // protected $useSoftDeletes = true;
-
-
-
- // protected $useTimestamps = false;
- // protected $createdField = 'created_at';
- // protected $updatedField = 'updated_at';
- // protected $deletedField = 'deleted_at';
-
- // protected $validationRules = [];
- // protected $validationMessages = [];
- // protected $skipValidation = false;
-}
\ No newline at end of file
diff --git a/app/Models/Transaction_model.php b/app/Models/Transaction_model.php
deleted file mode 100644
index c9284c0..0000000
--- a/app/Models/Transaction_model.php
+++ /dev/null
@@ -1,37 +0,0 @@
-db->table('transactions_uploads');
- $result = $builder->get();
- $output = $result->getResultArray();
- return $output;
- }
-
-
- // protected $returnType = 'array';
- // protected $useSoftDeletes = true;
-
-
-
- // protected $useTimestamps = false;
- // protected $createdField = 'created_at';
- // protected $updatedField = 'updated_at';
- // protected $deletedField = 'deleted_at';
-
- // protected $validationRules = [];
- // protected $validationMessages = [];
- // protected $skipValidation = false;
-}
\ No newline at end of file
diff --git a/app/ThirdParty/.gitkeep b/app/ThirdParty/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/app/Validation/UsersRules.php b/app/Validation/UsersRules.php
deleted file mode 100644
index 8da50aa..0000000
--- a/app/Validation/UsersRules.php
+++ /dev/null
@@ -1,19 +0,0 @@
-where('email',$data['email'])
- ->first();
- if(!$Donor)
- return false;
-
- return password_verify($data['password'],$user['password']);
- }
-
-}
\ No newline at end of file
diff --git a/app/Views/add_donation_cause.php b/app/Views/add_donation_cause.php
deleted file mode 100644
index a0f5745..0000000
--- a/app/Views/add_donation_cause.php
+++ /dev/null
@@ -1,271 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Donor App
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-