repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/controller/tool/export_import.php
www/public/commentics/backend/controller/tool/export_import.php
<?php namespace Commentics; class ToolExportImportController extends Controller { public function index() { $this->loadLanguage('tool/export_import'); $this->loadModel('tool/export_import'); if ($this->request->server['REQUEST_METHOD'] == 'POST') { if ($this->validate()) {...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/controller/tool/text_finder.php
www/public/commentics/backend/controller/tool/text_finder.php
<?php namespace Commentics; class ToolTextFinderController extends Controller { public function index() { $this->loadLanguage('tool/text_finder'); $this->loadModel('tool/text_finder'); $this->data['search'] = false; if ($this->request->server['REQUEST_METHOD'] == 'POST') { ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/controller/tool/clear_cache.php
www/public/commentics/backend/controller/tool/clear_cache.php
<?php namespace Commentics; class ToolClearCacheController extends Controller { public function index() { $this->loadLanguage('tool/clear_cache'); $this->loadModel('tool/clear_cache'); if ($this->request->server['REQUEST_METHOD'] == 'POST') { if ($this->validate()) { ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/controller/tool/upgrade.php
www/public/commentics/backend/controller/tool/upgrade.php
<?php namespace Commentics; class ToolUpgradeController extends Controller { public function index() { $this->loadLanguage('tool/upgrade'); $this->loadModel('tool/upgrade'); $this->loadModel('main/dashboard'); $this->data['start'] = false; if ($this->request->server[...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/login/logout.php
www/public/commentics/backend/model/login/logout.php
<?php namespace Commentics; class LoginLogoutModel extends Model { public function logout() { $this->session->regenerate(); $this->session->end(); $this->response->redirect('login/login'); } }
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/login/reset.php
www/public/commentics/backend/model/login/reset.php
<?php namespace Commentics; class LoginResetModel extends Model { public function sendReset($username, $password, $to_email, $format) { $email = $this->email->get('password_reset'); $subject = $this->security->decode($email['subject']); $text = str_ireplace('[username]', $username, $e...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/login/login.php
www/public/commentics/backend/model/login/login.php
<?php namespace Commentics; class LoginLoginModel extends Model { public function validateAccount($username, $password) { if ($this->db->numRows($this->db->query("SELECT * FROM `" . CMTX_DB_PREFIX . "admins` WHERE `username` = '" . $this->db->escape($username) . "' AND `is_enabled` = '0'"))) { ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/extension/installer.php
www/public/commentics/backend/model/extension/installer.php
<?php namespace Commentics; class ExtensionInstallerModel extends Model { public function install() { // Load the error messages $error = $this->loadWord('extension/installer'); // Name of the temp folder to store the uploaded zip file $temp_folder = CMTX_DIR_UPLOAD . 'temp-' ....
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/extension/languages.php
www/public/commentics/backend/model/extension/languages.php
<?php namespace Commentics; class ExtensionLanguagesModel extends Model { public function update($data) { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "settings` SET `value` = '" . $this->db->escape($data['language_frontend']) . "' WHERE `title` = 'language_frontend'"); $this->db->query("UPD...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/extension/modules.php
www/public/commentics/backend/model/extension/modules.php
<?php namespace Commentics; class ExtensionModulesModel extends Model { public function getInstalled() { $query = $this->db->query("SELECT `module` FROM `" . CMTX_DB_PREFIX . "modules`"); $results = $this->db->rows($query); $installed = array(); foreach ($results as $result) ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/extension/themes.php
www/public/commentics/backend/model/extension/themes.php
<?php namespace Commentics; class ExtensionThemesModel extends Model { public function update($data) { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "settings` SET `value` = '" . $this->db->escape($data['theme_frontend']) . "' WHERE `title` = 'theme_frontend'"); $this->db->query("UPDATE `" . ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/settings/layout_comments.php
www/public/commentics/backend/model/settings/layout_comments.php
<?php namespace Commentics; class SettingsLayoutCommentsModel extends Model { public function update($data) { /* General */ $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "settings` SET `value` = '" . (isset($data['show_comment_count']) ? 1 : 0) . "' WHERE `title` = 'show_comment_count'"); ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/settings/licence.php
www/public/commentics/backend/model/settings/licence.php
<?php namespace Commentics; class SettingsLicenceModel extends Model { public function update($data) { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "settings` SET `value` = '" . $this->db->escape($data['licence']) . "' WHERE `title` = 'licence'"); $this->db->query("UPDATE `" . CMTX_DB_PREFIX...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/settings/cache.php
www/public/commentics/backend/model/settings/cache.php
<?php namespace Commentics; class SettingsCacheModel extends Model { public function update($data) { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "settings` SET `value` = '" . $this->db->escape($data['cache_type']) . "' WHERE `title` = 'cache_type'"); $this->db->query("UPDATE `" . CMTX_DB_PR...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/settings/flooding.php
www/public/commentics/backend/model/settings/flooding.php
<?php namespace Commentics; class SettingsFloodingModel extends Model { public function update($data) { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "settings` SET `value` = '" . (isset($data['flood_control_delay_enabled']) ? 1 : 0) . "' WHERE `title` = 'flood_control_delay_enabled'"); $this...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/settings/email_editor.php
www/public/commentics/backend/model/settings/email_editor.php
<?php namespace Commentics; class SettingsEmailEditorModel extends Model { public function getEmail($type) { $email = array(); $query = $this->db->query("SELECT * FROM `" . CMTX_DB_PREFIX . "emails` WHERE `type` = '" . $this->db->escape($type) . "'"); $results = $this->db->rows($query...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/settings/layout_form.php
www/public/commentics/backend/model/settings/layout_form.php
<?php namespace Commentics; class SettingsLayoutFormModel extends Model { public function update($data) { /* General */ $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "settings` SET `value` = '" . (isset($data['enabled_form']) ? 1 : 0) . "' WHERE `title` = 'enabled_form'"); $this->db-...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/settings/approval.php
www/public/commentics/backend/model/settings/approval.php
<?php namespace Commentics; class SettingsApprovalModel extends Model { public function update($data) { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "settings` SET `value` = '" . (isset($data['approve_comments']) ? 1 : 0) . "' WHERE `title` = 'approve_comments'"); $this->db->query("UPDATE `"...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/settings/processor.php
www/public/commentics/backend/model/settings/processor.php
<?php namespace Commentics; class SettingsProcessorModel extends Model { public function update($data) { /* Name */ $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "settings` SET `value` = '" . (isset($data['one_name_enabled']) ? 1 : 0) . "' WHERE `title` = 'one_name_enabled'"); $this-...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/settings/email_setup.php
www/public/commentics/backend/model/settings/email_setup.php
<?php namespace Commentics; class SettingsEmailSetupModel extends Model { public function update($data, $username, $admin_id) { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "settings` SET `value` = '" . $this->db->escape($data['transport_method']) . "' WHERE `title` = 'transport_method'"); $...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/settings/security.php
www/public/commentics/backend/model/settings/security.php
<?php namespace Commentics; class SettingsSecurityModel extends Model { public function update($data) { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "settings` SET `value` = '" . (isset($data['check_referrer']) ? 1 : 0) . "' WHERE `title` = 'check_referrer'"); $this->db->query("UPDATE `" . C...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/settings/error_reporting.php
www/public/commentics/backend/model/settings/error_reporting.php
<?php namespace Commentics; class SettingsErrorReportingModel extends Model { public function update($data) { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "settings` SET `value` = '" . (isset($data['error_reporting_frontend']) ? 1 : 0) . "' WHERE `title` = 'error_reporting_frontend'"); $this...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/settings/maintenance.php
www/public/commentics/backend/model/settings/maintenance.php
<?php namespace Commentics; class SettingsMaintenanceModel extends Model { public function update($data) { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "settings` SET `value` = '" . (isset($data['maintenance_mode']) ? 1 : 0) . "' WHERE `title` = 'maintenance_mode'"); $this->db->query("UPDATE...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/settings/system.php
www/public/commentics/backend/model/settings/system.php
<?php namespace Commentics; class SettingsSystemModel extends Model { public function update($data) { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "settings` SET `value` = '" . $this->db->escape($data['site_name']) . "' WHERE `title` = 'site_name'"); $this->db->query("UPDATE `" . CMTX_DB_PRE...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/settings/administrator.php
www/public/commentics/backend/model/settings/administrator.php
<?php namespace Commentics; class SettingsAdministratorModel extends Model { public function update($data, $admin_id) { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "admins` SET `username` = '" . $this->db->escape($data['username']) . "', `email` = '" . $this->db->escape($data['email']) . "', `format...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/settings/viewers.php
www/public/commentics/backend/model/settings/viewers.php
<?php namespace Commentics; class SettingsViewersModel extends Model { public function update($data) { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "settings` SET `value` = '" . (isset($data['viewers_enabled']) ? 1 : 0) . "' WHERE `title` = 'viewers_enabled'"); $this->db->query("UPDATE `" . ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/edit/site.php
www/public/commentics/backend/model/edit/site.php
<?php namespace Commentics; class EditSiteModel extends Model { public function update($data, $id) { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "sites` SET `name` = '" . $this->db->escape($data['name']) . "', `domain` = '" . $this->db->escape($data['domain']) . "', `url` = '" . $this->db->escape($d...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/edit/page.php
www/public/commentics/backend/model/edit/page.php
<?php namespace Commentics; class EditPageModel extends Model { public function identifierExists($identifier, $id = 0) { if ($this->db->numRows($this->db->query("SELECT * FROM `" . CMTX_DB_PREFIX . "pages` WHERE `identifier` = '" . $this->db->escape($identifier) . "' AND `id` != '" . (int) $id . "'")))...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/edit/comment.php
www/public/commentics/backend/model/edit/comment.php
<?php namespace Commentics; class EditCommentModel extends Model { public function update($data, $id) { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "comments` SET `page_id` = '" . (int) $data['page_id'] . "', `website` = '" . $this->db->escape($data['website']) . "', `town` = '" . $this->db->escape(...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/edit/ban.php
www/public/commentics/backend/model/edit/ban.php
<?php namespace Commentics; class EditBanModel extends Model { public function banExists($id) { if ($this->db->numRows($this->db->query("SELECT * FROM `" . CMTX_DB_PREFIX . "bans` WHERE `id` = '" . (int) $id . "' AND `unban` = '0'"))) { return true; } else { return false...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/edit/admin.php
www/public/commentics/backend/model/edit/admin.php
<?php namespace Commentics; class EditAdminModel extends Model { public function update($data, $id) { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "admins` SET `username` = '" . $this->db->escape($data['username']) . "', `email` = '" . $this->db->escape($data['email']) . "', `date_modified` = NOW() W...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/edit/state.php
www/public/commentics/backend/model/edit/state.php
<?php namespace Commentics; class EditStateModel extends Model { public function update($data, $id) { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "states` SET `name` = '" . $this->db->escape($data['name']) . "', `country_code` = '" . $this->db->escape($data['country_code']) . "', `enabled` = '" . (i...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/edit/question.php
www/public/commentics/backend/model/edit/question.php
<?php namespace Commentics; class EditQuestionModel extends Model { public function questionExists($id) { if ($this->db->numRows($this->db->query("SELECT * FROM `" . CMTX_DB_PREFIX . "questions` WHERE `id` = '" . (int) $id . "'"))) { return true; } else { return false; ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/edit/country.php
www/public/commentics/backend/model/edit/country.php
<?php namespace Commentics; class EditCountryModel extends Model { public function getName($code) { $query = $this->db->query("SELECT * FROM `" . CMTX_DB_PREFIX . "geo` WHERE `country_code` = '" . $this->db->escape($code) . "'"); $results = $this->db->rows($query); $names = array(); ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/edit/subscription.php
www/public/commentics/backend/model/edit/subscription.php
<?php namespace Commentics; class EditSubscriptionModel extends Model { public function subscriptionExists($id) { if ($this->db->numRows($this->db->query("SELECT * FROM `" . CMTX_DB_PREFIX . "subscriptions` WHERE `id` = '" . (int) $id . "'"))) { return true; } else { ret...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/edit/user.php
www/public/commentics/backend/model/edit/user.php
<?php namespace Commentics; class EditUserModel extends Model { public function nameExists($name, $id = 0) { if ($this->db->numRows($this->db->query("SELECT * FROM `" . CMTX_DB_PREFIX . "users` WHERE `name` = '" . $this->db->escape($name) . "' AND `id` != '" . (int) $id . "'"))) { return tr...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/edit/spam.php
www/public/commentics/backend/model/edit/spam.php
<?php namespace Commentics; class EditSpamModel extends Model { public function remove($data, $id) { $comment = $this->comment->getComment($id); if ($data['delete'] == 'delete_this') { $this->user->deleteUser($comment['user_id']); } else { $query = $this->db->qu...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/add/site.php
www/public/commentics/backend/model/add/site.php
<?php namespace Commentics; class AddSiteModel extends Model { public function add($data) { $this->db->query("INSERT INTO `" . CMTX_DB_PREFIX . "sites` SET `name` = '" . $this->db->escape($data['name']) . "', `domain` = '" . $this->db->escape($data['domain']) . "', `url` = '" . $this->db->escape($data[...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/add/ban.php
www/public/commentics/backend/model/add/ban.php
<?php namespace Commentics; class AddBanModel extends Model { public function add($data) { $this->db->query("DELETE FROM `" . CMTX_DB_PREFIX . "bans` WHERE `ip_address` = '" . $this->db->escape($data['ip_address']) . "'"); $this->db->query("INSERT INTO `" . CMTX_DB_PREFIX . "bans` SET `ip_addr...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/add/admin.php
www/public/commentics/backend/model/add/admin.php
<?php namespace Commentics; class AddAdminModel extends Model { public function add($data) { if (isset($data['is_super'])) { $data['is_enabled'] = 1; unset($data['restrict_pages']); $data['viewable_pages'] = ''; $data['modifiable_pages'] = ''; ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/add/state.php
www/public/commentics/backend/model/add/state.php
<?php namespace Commentics; class AddStateModel extends Model { public function add($data) { $this->db->query("INSERT INTO `" . CMTX_DB_PREFIX . "states` SET `name` = '" . $this->db->escape($data['name']) . "', `country_code` = '" . $this->db->escape($data['country_code']) . "', `enabled` = '" . (int) ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/add/question.php
www/public/commentics/backend/model/add/question.php
<?php namespace Commentics; class AddQuestionModel extends Model { public function add($data) { $this->db->query("INSERT INTO `" . CMTX_DB_PREFIX . "questions` SET `question` = '" . $this->db->escape($data['question']) . "', `answer` = '" . $this->db->escape($data['answer']) . "', `language` = '" . $th...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/add/country.php
www/public/commentics/backend/model/add/country.php
<?php namespace Commentics; class AddCountryModel extends Model { public function add($data) { $this->db->query("INSERT INTO `" . CMTX_DB_PREFIX . "countries` SET `code` = '" . $this->db->escape($data['code']) . "', `top` = '" . (int) $data['top'] . "', `enabled` = '" . (int) $data['enabled'] . "', `da...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/common/poster.php
www/public/commentics/backend/model/common/poster.php
<?php namespace Commentics; class CommonPosterModel extends Model { public function unpostable($data) { $error = ''; $restrict_pages = $this->restrict_pages(); $modifiable_pages = $this->modifiable_pages(); if (!$this->page_modifiable($restrict_pages, $modifiable_pages)) { ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/common/pagination.php
www/public/commentics/backend/model/common/pagination.php
<?php namespace Commentics; class CommonPaginationModel extends Model { public function paginate($page, $total, $url, $lang) { if ($page < 1) { $page = 1; } $limit = $this->setting->get('limit_results'); $num_links = 3; $num_pages = ceil($total / $limit); ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/common/language.php
www/public/commentics/backend/model/common/language.php
<?php namespace Commentics; class CommonLanguageModel extends Model { public function getFrontendLanguages() { $languages = array(); foreach (glob(CMTX_DIR_ROOT . 'frontend/view/*/language/*', GLOB_ONLYDIR) as $directory) { $language = basename($directory); $language_n...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/common/header.php
www/public/commentics/backend/model/common/header.php
<?php namespace Commentics; class CommonHeaderModel extends Model { public function backendFolderExists() { if (file_exists('../backend/')) { return true; } else { return false; } } public function installFolderExists() { if (file_exists('../...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/common/administrator.php
www/public/commentics/backend/model/common/administrator.php
<?php namespace Commentics; class CommonAdministratorModel extends Model { public function adminExists($id) { if ($this->db->numRows($this->db->query("SELECT * FROM `" . CMTX_DB_PREFIX . "admins` WHERE `id` = '" . (int) $id . "'"))) { return true; } else { return false; ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/main/dashboard.php
www/public/commentics/backend/model/main/dashboard.php
<?php namespace Commentics; class MainDashboardModel extends Model { public function getCurrentVersion() { $query = $this->db->query("SELECT `version` FROM `" . CMTX_DB_PREFIX . "version` ORDER BY `date_added` DESC LIMIT 1"); $result = $this->db->row($query); return $result['version']...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/main/checklist.php
www/public/commentics/backend/model/main/checklist.php
<?php namespace Commentics; class MainChecklistModel extends Model { public function update() { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "settings` SET `value` = '1' WHERE `title` = 'checklist_complete'"); } }
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/manage/states.php
www/public/commentics/backend/model/manage/states.php
<?php namespace Commentics; class ManageStatesModel extends Model { public function getStates($data, $count = false) { $sql = "SELECT `s`.*,"; $sql .= " ( SELECT `g`.`name` FROM `" . CMTX_DB_PREFIX . "countries` `c` LEFT JOIN `" . CMTX_DB_PREFIX . "geo` ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/manage/questions.php
www/public/commentics/backend/model/manage/questions.php
<?php namespace Commentics; class ManageQuestionsModel extends Model { public function getQuestions($data, $count = false) { $sql = "SELECT * FROM `" . CMTX_DB_PREFIX . "questions` `q`"; $sql .= " WHERE 1 = 1"; if ($data['filter_id']) { $sql .= " AND `q`.`id` = '" . (int) ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/manage/comments.php
www/public/commentics/backend/model/manage/comments.php
<?php namespace Commentics; class ManageCommentsModel extends Model { public function getComments($data, $count = false) { $sql = "SELECT `c`.*, `u`.`id` AS `user_id`, `u`.`name` AS `name`, `p`.`id` AS `page_id`, `p`.`reference` AS `page_reference`, `p`.`url` AS `page_url` FROM `" . CMTX_DB_PREFIX . "c...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/manage/countries.php
www/public/commentics/backend/model/manage/countries.php
<?php namespace Commentics; class ManageCountriesModel extends Model { public function getCountries($data, $count = false) { $sql = "SELECT `c`.*, `g`.`name` FROM `" . CMTX_DB_PREFIX . "countries` `c`"; $sql .= " LEFT JOIN `" . CMTX_DB_PREFIX . "geo` `g` ON `g`.`country_code` = `c`.`code`"; ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/manage/admins.php
www/public/commentics/backend/model/manage/admins.php
<?php namespace Commentics; class ManageAdminsModel extends Model { public function getAdmins($data, $count = false) { $sql = "SELECT * FROM `" . CMTX_DB_PREFIX . "admins` `a`"; $sql .= " WHERE 1 = 1"; if ($data['filter_id']) { $sql .= " AND `a`.`id` = '" . (int) $data['fi...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/manage/users.php
www/public/commentics/backend/model/manage/users.php
<?php namespace Commentics; class ManageUsersModel extends Model { public function getUsers($data, $count = false) { if ($count) { $sql = "SELECT COUNT(`u`.`id`)"; } else { $sql = "SELECT `u`.*,"; $sql .= " (SELECT COUNT(`id`) FROM `" . CMTX_DB_PREFIX . "sub...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/manage/pages.php
www/public/commentics/backend/model/manage/pages.php
<?php namespace Commentics; class ManagePagesModel extends Model { public function getPages($data, $count = false) { if ($count) { $sql = "SELECT COUNT(`p`.`id`)"; } else { $sql = "SELECT `p`.*,"; $sql .= " (SELECT COUNT(`id`) FROM `" . CMTX_DB_PREFIX . "sub...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/manage/sites.php
www/public/commentics/backend/model/manage/sites.php
<?php namespace Commentics; class ManageSitesModel extends Model { public function getSites($data, $count = false) { if ($count) { $sql = "SELECT COUNT(`s`.`id`)"; } else { $sql = "SELECT `s`.*,"; $sql .= " (SELECT COUNT(`c`.`id`) FROM `" . CMTX_DB_PREFIX . ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/manage/subscriptions.php
www/public/commentics/backend/model/manage/subscriptions.php
<?php namespace Commentics; class ManageSubscriptionsModel extends Model { public function getSubscriptions($data, $count = false) { $sql = "SELECT `s`.*, `u`.`id` AS `user_id`, `u`.`token` AS `user_token`, `u`.`name` AS `name`, `u`.`email` AS `email`, `p`.`id` AS `page_id`, `p`.`reference` AS `page_r...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/manage/bans.php
www/public/commentics/backend/model/manage/bans.php
<?php namespace Commentics; class ManageBansModel extends Model { public function getBans($data, $count = false) { $sql = "SELECT * FROM `" . CMTX_DB_PREFIX . "bans` `b`"; $sql .= " WHERE 1 = 1"; $sql .= " AND `unban` = '0'"; if ($data['filter_id']) { $sql .= " AN...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/report/errors.php
www/public/commentics/backend/model/report/errors.php
<?php namespace Commentics; class ReportErrorsModel extends Model { public function isBig() { if (file_exists(CMTX_DIR_LOGS . 'errors.log') && filesize(CMTX_DIR_LOGS . 'errors.log') >= 5242880) { // larger than 5 MB return true; } else { return false; } } ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/report/version.php
www/public/commentics/backend/model/report/version.php
<?php namespace Commentics; class ReportVersionModel extends Model { public function getVersions($data, $count = false) { $sql = "SELECT * FROM `" . CMTX_DB_PREFIX . "version` `v`"; $sql .= " WHERE 1 = 1"; if ($data['filter_id']) { $sql .= " AND `v`.`id` = '" . (int) $data...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/report/permissions.php
www/public/commentics/backend/model/report/permissions.php
<?php namespace Commentics; class ReportPermissionsModel extends Model { public function isWritable($file) { if (is_writable($file)) { return true; } else { return false; } } }
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/report/version_check.php
www/public/commentics/backend/model/report/version_check.php
<?php namespace Commentics; class ReportVersionCheckModel extends Model { public function clearLog() { $log_file = CMTX_DIR_LOGS . 'version_check.log'; $handle = fopen($log_file, 'w'); fputs($handle, ''); fclose($handle); } public function getLog() { if (...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/report/access.php
www/public/commentics/backend/model/report/access.php
<?php namespace Commentics; class ReportAccessModel extends Model { public function getViews($data, $count = false) { $sql = "SELECT * FROM `" . CMTX_DB_PREFIX . "access` `a`"; $sql .= " WHERE 1 = 1"; if ($data['filter_id']) { $sql .= " AND `a`.`id` = '" . (int) $data['fil...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/report/viewers.php
www/public/commentics/backend/model/report/viewers.php
<?php namespace Commentics; class ReportViewersModel extends Model { public function getViewers($data, $count = false) { $sql = "SELECT * FROM `" . CMTX_DB_PREFIX . "viewers` `v`"; $sql .= " WHERE 1 = 1"; if ($data['filter_id']) { $sql .= " AND `v`.`id` = '" . (int) $data[...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/module/css_editor.php
www/public/commentics/backend/model/module/css_editor.php
<?php namespace Commentics; class ModuleCssEditorModel extends Model { public function getCss() { $css = ''; if (file_exists(CMTX_DIR_ROOT . 'frontend/view/' . $this->setting->get('theme_frontend') . '/stylesheet/css/custom.css')) { $css = file_get_contents(CMTX_DIR_ROOT . 'fronten...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/module/merge_users.php
www/public/commentics/backend/model/module/merge_users.php
<?php namespace Commentics; class ModuleMergeUsersModel extends Model { public function merge($data) { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "comments` SET `user_id` = '" . (int) $data['user_id_to'] . "' WHERE `user_id` = '" . (int) $data['user_id_from'] . "'"); $this->avoidDuplicateS...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/module/rich_snippets.php
www/public/commentics/backend/model/module/rich_snippets.php
<?php namespace Commentics; class ModuleRichSnippetsModel extends Model { public function update($data) { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "settings` SET `value` = '" . (isset($data['rich_snippets_enabled']) ? 1 : 0) . "' WHERE `title` = 'rich_snippets_enabled'"); $this->db->quer...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/module/language_editor.php
www/public/commentics/backend/model/module/language_editor.php
<?php namespace Commentics; class ModuleLanguageEditorModel extends Model { private $exclude = array( 'lang_title_digg', 'lang_title_facebook', 'lang_title_linkedin', 'lang_title_reddit', 'lang_title_twitter', 'lang_title_weibo', 'lang_text_powered_by' );...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/module/chart.php
www/public/commentics/backend/model/module/chart.php
<?php namespace Commentics; class ModuleChartModel extends Model { public function update($data) { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "settings` SET `value` = '" . (isset($data['chart_enabled']) ? 1 : 0) . "' WHERE `title` = 'chart_enabled'"); } public function install() { ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/module/akismet.php
www/public/commentics/backend/model/module/akismet.php
<?php namespace Commentics; class ModuleAkismetModel extends Model { public function update($data) { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "settings` SET `value` = '" . (isset($data['akismet_enabled']) ? 1 : 0) . "' WHERE `title` = 'akismet_enabled'"); $this->db->query("UPDATE `" . CM...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/module/extra_fields.php
www/public/commentics/backend/model/module/extra_fields.php
<?php namespace Commentics; class ModuleExtraFieldsModel extends Model { public function getFields($data, $count = false) { $sql = "SELECT * FROM `" . CMTX_DB_PREFIX . "fields` `f`"; $sql .= " WHERE 1 = 1"; if ($data['group_by']) { $sql .= " GROUP BY " . $this->db->backtic...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/data/list.php
www/public/commentics/backend/model/data/list.php
<?php namespace Commentics; class DataListModel extends Model { public function getList($type) { $query = $this->db->query("SELECT * FROM `" . CMTX_DB_PREFIX . "data` WHERE `type` = '" . $this->db->escape($type) . "'"); $result = $this->db->row($query); return $result; } publ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/task/delete_reporters.php
www/public/commentics/backend/model/task/delete_reporters.php
<?php namespace Commentics; class TaskDeleteReportersModel extends Model { public function update($data) { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "settings` SET `value` = '" . (isset($data['task_enabled_delete_reporters']) ? 1 : 0) . "' WHERE `title` = 'task_enabled_delete_reporters'"); ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/task/delete_bans.php
www/public/commentics/backend/model/task/delete_bans.php
<?php namespace Commentics; class TaskDeleteBansModel extends Model { public function update($data) { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "settings` SET `value` = '" . (isset($data['task_enabled_delete_bans']) ? 1 : 0) . "' WHERE `title` = 'task_enabled_delete_bans'"); $this->db->qu...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/task/delete_subscriptions.php
www/public/commentics/backend/model/task/delete_subscriptions.php
<?php namespace Commentics; class TaskDeleteSubscriptionsModel extends Model { public function update($data) { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "settings` SET `value` = '" . (isset($data['task_enabled_delete_subscriptions']) ? 1 : 0) . "' WHERE `title` = 'task_enabled_delete_subscriptions...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/task/delete_comments.php
www/public/commentics/backend/model/task/delete_comments.php
<?php namespace Commentics; class TaskDeleteCommentsModel extends Model { public function update($data) { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "settings` SET `value` = '" . (isset($data['task_enabled_delete_comments']) ? 1 : 0) . "' WHERE `title` = 'task_enabled_delete_comments'"); $...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/task/delete_voters.php
www/public/commentics/backend/model/task/delete_voters.php
<?php namespace Commentics; class TaskDeleteVotersModel extends Model { public function update($data) { $this->db->query("UPDATE `" . CMTX_DB_PREFIX . "settings` SET `value` = '" . (isset($data['task_enabled_delete_voters']) ? 1 : 0) . "' WHERE `title` = 'task_enabled_delete_voters'"); $this->...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/tool/database_backup.php
www/public/commentics/backend/model/tool/database_backup.php
<?php namespace Commentics; class ToolDatabaseBackupModel extends Model { public function create($description = '') { $filename = CMTX_DIR_BACKUPS . $this->variable->random(50) . '.sql'; $query = $this->db->query("SHOW TABLES"); $result = $this->db->rows($query); $tables = ne...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/tool/optimize_tables.php
www/public/commentics/backend/model/tool/optimize_tables.php
<?php namespace Commentics; class ToolOptimizeTablesModel extends Model { public function optimize() { $query = $this->db->query("SHOW TABLES"); $tables = $this->db->rows($query); foreach ($tables as $table) { $table = array_shift($table); $this->db->query("OP...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/tool/export_import.php
www/public/commentics/backend/model/tool/export_import.php
<?php namespace Commentics; class ToolExportImportModel extends Model { public function export($type) { $this->loadModel('common/language'); if ($type == 'countries') { $this->exportCountries(); } if ($type == 'emails') { $this->exportEmails(); ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/tool/text_finder.php
www/public/commentics/backend/model/tool/text_finder.php
<?php namespace Commentics; class ToolTextFinderModel extends Model { public function search($data) { $results = array(); $lang_text_result = $this->loadWord('tool/text_finder', 'lang_text_result'); $text = $this->security->decode($data['text']); $text = str_replace("'", "\'"...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/tool/clear_cache.php
www/public/commentics/backend/model/tool/clear_cache.php
<?php namespace Commentics; class ToolClearCacheModel extends Model { public function clear($data) { if (isset($data['database'])) { remove_directory(CMTX_DIR_CACHE . 'database/', false, false); } if (isset($data['modification'])) { remove_directory(CMTX_DIR_CAC...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/model/tool/upgrade.php
www/public/commentics/backend/model/tool/upgrade.php
<?php namespace Commentics; class ToolUpgradeModel extends Model { public function getNext($version, $versions) { $versions = json_decode($versions, true); if ($versions) { if (is_array($versions)) { $versions = $versions['versions']; if (isset($ver...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/view/default/language/english/general.php
www/public/commentics/backend/view/default/language/english/general.php
<?php // Message $_['lang_message_success'] = 'Settings saved'; $_['lang_message_error'] = 'Please review the errors below'; // Entry $_['lang_entry_enabled'] = 'Enabled:'; // Text $_['lang_text_enabled'] = 'Enabled'; $_['lang_text_disabled'] = 'Disabled'; $_['lang_tex...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/view/default/language/english/login/reset.php
www/public/commentics/backend/view/default/language/english/login/reset.php
<?php // Text $_['lang_text_reset'] = 'Reset'; // Link $_['lang_link_login'] = 'Return to login'; // Entry $_['lang_entry_email'] = 'Email:'; // Button $_['lang_button_reset'] = 'Reset'; // Success $_['lang_success_sent'] = 'An email has been sent'; // Error $_['lang_error_demo'] = 'Function disabled in dem...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/view/default/language/english/login/login.php
www/public/commentics/backend/view/default/language/english/login/login.php
<?php // Text $_['lang_text_login'] = 'Login'; // Link $_['lang_link_reset'] = 'Lost your details?'; // Entry $_['lang_entry_username'] = 'Username:'; $_['lang_entry_password'] = 'Password:'; // Button $_['lang_button_login'] = 'Login'; // Error $_['lang_error_timeout'] = 'Timeout of 30 minutes'; $_['lan...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/view/default/language/english/extension/installer.php
www/public/commentics/backend/view/default/language/english/extension/installer.php
<?php // Message $_['lang_message_success'] = 'Extension installed'; // Heading $_['lang_heading'] = 'Installer'; // Description $_['lang_description'] = '<p>Install official extensions such as languages, modules and themes.</p>'; // Entry $_['lang_entry_upload'] = 'Upload:...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/view/default/language/english/extension/languages.php
www/public/commentics/backend/view/default/language/english/extension/languages.php
<?php // Heading $_['lang_heading'] = 'Languages'; // Notice $_['lang_notice'] = 'Get more <a href="%s" target="_blank">languages</a> here <a>x</a>'; $_['lang_submit'] = 'Please consider <a href="%s" target="_blank">submitting</a> your language back to the project <a>x</a>'; $_['lang_others'] ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/view/default/language/english/extension/modules.php
www/public/commentics/backend/view/default/language/english/extension/modules.php
<?php // Message $_['lang_message_installed'] = 'The module %s has been installed'; $_['lang_message_uninstalled'] = 'The module %s has been uninstalled'; // Heading $_['lang_heading'] = 'Modules'; // Notice $_['lang_notice'] = 'Get more <a href="%s" target="_blank">modu...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/view/default/language/english/extension/themes.php
www/public/commentics/backend/view/default/language/english/extension/themes.php
<?php // Heading $_['lang_heading'] = 'Themes'; $_['lang_subheading'] = 'Theme Options'; // Notice $_['lang_notice'] = 'Get more <a href="%s" target="_blank">themes</a> here <a>x</a>'; // Description $_['lang_description'] = '<p>Select a theme to style the pages.</p>'; // Entry ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/view/default/language/english/settings/layout_comments.php
www/public/commentics/backend/view/default/language/english/settings/layout_comments.php
<?php // Heading $_['lang_heading'] = 'Comments'; // Notice $_['lang_notice'] = 'To assign the Online feature you must also enable it in <a href="%s">Settings -> Viewers</a> <a>x</a>'; // Subheading $_['lang_subheading_general'] = 'General'; $_['lang...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/view/default/language/english/settings/licence.php
www/public/commentics/backend/view/default/language/english/settings/licence.php
<?php // Heading $_['lang_heading'] = 'Licence'; // Description $_['lang_description'] = '<p>If you have purchased a licence enter your licence key here.</p>'; // Entry $_['lang_entry_licence'] = 'Licence Key:'; $_['lang_entry_forum_user'] = 'Forum User:'; // Hint $_['lang_hint_forum_user'] = 'If y...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/view/default/language/english/settings/cache.php
www/public/commentics/backend/view/default/language/english/settings/cache.php
<?php // Heading $_['lang_heading'] = 'Cache'; // Description $_['lang_description'] = '<p>Enable one of the caching options below to reduce database queries when retrieving comments.</p><p class="extra">Cache is automatically refreshed, for example after a user has posted a comment.</p>'; ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/view/default/language/english/settings/flooding.php
www/public/commentics/backend/view/default/language/english/settings/flooding.php
<?php // Heading $_['lang_heading'] = 'Flooding'; // Description $_['lang_description'] = '<p>These settings relate to the submission of multiple comments over a short period of time.</p>'; // Entry $_['lang_entry_delay'] = 'Delay:'; $_['lang_entry_time'] = 'Time:'; $_['lang_entry_all_pages'] = '...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/view/default/language/english/settings/email_editor.php
www/public/commentics/backend/view/default/language/english/settings/email_editor.php
<?php // Message $_['lang_message_success'] = 'Email updated'; // Heading $_['lang_heading_ban'] = 'Email: Banned User'; $_['lang_heading_comment_approve'] = 'Email: Comment Approve'; $_['lang_heading_comment_success'] = 'Email...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/view/default/language/english/settings/layout_form.php
www/public/commentics/backend/view/default/language/english/settings/layout_form.php
<?php // Heading $_['lang_heading'] = 'Form'; // Notice $_['lang_notice'] = 'To disable the \'Powered By\' please <a href="%s" target="_blank">purchase a licence</a> here <a>x</a>'; // Subheading $_['lang_subheading_general'] = 'General'; $_['lang_subheading_bb_code'] = 'BB ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/view/default/language/english/settings/approval.php
www/public/commentics/backend/view/default/language/english/settings/approval.php
<?php // Heading $_['lang_heading'] = 'Approval'; // Description $_['lang_description'] = '<p>These settings relate to the approval of new comments.</p><p class="extra"><b>Note</b>: Detailed options are in Settings -> Processor.</p>'; // Entry $_['lang_entry_approve_comments'] ...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false
openbenches/openbenches.org
https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/backend/view/default/language/english/settings/processor.php
www/public/commentics/backend/view/default/language/english/settings/processor.php
<?php // Heading $_['lang_heading'] = 'Processor'; // Description $_['lang_description'] = '<p>These settings relate to the processing of the form fields.</p>'; // Tab $_['lang_tab_name'] = 'Name'; $_['lang_tab_email'] = 'Email'; $_['lang_tab_town']...
php
MIT
548728c8f59e5dfca2dda6efd1612e4fa31205b9
2026-01-05T02:33:43.558014Z
false