Comments (3)
How can this work?
$cron is not defined.
Also, there is no $_POST variable.
There is no $domain_id available to filter the SQL.
SQL injection can easily occur.
Must actually populate the class cron's delete function which is currently empty.
The TB_PREFIX define is not included.
Also the "return" statement prevents any further execution.
from simpleinvoices.
the delete.php can be:
<?php
checkLogin();
$sql = "DELETE FROM ".TB_PREFIX."cron WHERE id = :id AND domain_id = :domain_id";
$sth = dbQuery($sql, ':id', $_GET['id'], ':domain_id',domain_id::get())
or die(htmlsafe(end($dbh->errorInfo())));
$saved = !empty($sth) ? "true" : "false";
$invoices = new invoice();
$invoices->sort='id';
$invoice_all = $invoices->select_all('count');
$smarty -> assign('invoice_all',$invoice_all);
$smarty -> assign('saved',$saved);
$smarty -> assign('pageActive', 'cron');
$smarty -> assign('subPageActive', 'cron_manage');
$smarty -> assign('active_tab', '#money');
from simpleinvoices.
Committed: apmuthu@06af3c7
from simpleinvoices.
Related Issues (20)
- Enabling authentication.enabled = true creates installation errors HOT 6
- Mounting the query from the Customer Invoice panel HOT 3
- Grid invoices manage does not load HOT 2
- simpleinvoice are clodes? HOT 5
- All the discussion/contact methods seem to be gone HOT 2
- FPDF error: Could not include font definition file HOT 1
- Updating and custom my SI
- Getting "Zend Mail Protocol Exception: Could not open socket" HOT 13
- PDF not exporting HOT 1
- PDF Export wrong format HOT 8
- Really struggling to install HOT 2
- Export to PDF not showing logo (Have checked and tried everything i can find) HOT 10
- SI broke after upgrade - cannot downgrade - stuck in limbo with no access HOT 1
- Default Invoice Preference shows wrong value in SI Defaults page
- Default Number Of Line Items in SI Defaults is NOT editable... returns error
- Reports "Statement of Invoices" shows even quotations instead of unpaid invoices only HOT 6
- Fatal Error when using multiple emails in To field (when sending invoice) HOT 5
- Hand project to someone else HOT 1
- Call to undefined method FPDF::GetFontAscender() HOT 4
- ## Issue Description While setting up the project locally, I encountered a fatal error related to the HTMLPurifier library. The error is as follows: HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simpleinvoices.