Add configuration for warranty and payment options, update email templates, and implement marketing file migration
- Created STEP3.txt for business rules and payment configurations. - Modified listPartner function parameter order in functions.php. - Updated invoice email template to reflect new contact details. - Revised PDF invoice template to include updated contact information. - Added user session checks in index.php for improved security. - Introduced marketing_migrate.php to migrate existing marketing files to the database. - Increased max-height of content blocks in admin.css for better UI.
This commit is contained in:
@@ -48,7 +48,7 @@ if (isset($post_content['batch_update']) && isset($post_content['user_id']) && i
|
||||
if ($existing){
|
||||
//Reactivate existing assignment
|
||||
$stmt = $pdo->prepare('UPDATE user_role_assignments SET is_active = 1, assigned_by = ?, assigned_at = ?, updatedby = ?, updated = ? WHERE rowID = ?');
|
||||
$stmt->execute([$username, $date, $username, $date, $$username]);
|
||||
$stmt->execute([$username, $date, $username, $date, $existing['rowID']]);
|
||||
} else {
|
||||
//Create new assignment
|
||||
$stmt = $pdo->prepare('INSERT INTO user_role_assignments (user_id, role_id, is_active, assigned_by, assigned_at, created, createdby) VALUES (?, ?, 1, ?, ?, ?, ?)');
|
||||
|
||||
Reference in New Issue
Block a user