chamilo/chamilo-lms

View on GitHub
public/main/admin/settings.php

Summary

Maintainability
A
0 mins
Test Coverage

Variable "settings_array" is not in valid camel caps format
Open

    $settings_by_access_list = $settings_array['settings_by_access_list'];

Variable "my_category" is not in valid camel caps format
Open

                $settings_array = getCategorySettings($my_category);

Variable "watermark_deleted" is not in valid camel caps format
Open

    $watermark_deleted = PDF::delete_watermark();

Variable "un_mark_all" is not in valid camel caps format
Open

        $un_mark_all = false;

Variable "pdf_export_watermark_path" is not in valid camel caps format
Open

                $pdf_export_watermark_path['name'],

Variable "row_subkeys" is not in valid camel caps format
Open

                        (!isset($value[$row_subkeys['subkey']]) && 'true' == api_get_setting($key, $row_subkeys['subkey']))

Variable "table_settings_current" is not in valid camel caps format
Open

$table_settings_current = Database::get_main_table(TABLE_MAIN_SETTINGS);

Variable "locked_settings" is not in valid camel caps format
Open

                    if (!in_array($key, $locked_settings)) {

Variable "pdf_export_watermark_path" is not in valid camel caps format
Open

        if (isset($pdf_export_watermark_path) && !empty($pdf_export_watermark_path['name'])) {

Variable "pdf_export_watermark_path" is not in valid camel caps format
Open

                $pdf_export_watermark_path['tmp_name']

Variable "my_category" is not in valid camel caps format
Open

    $my_category = isset($_GET['category']) ? $_GET['category'] : null;

Variable "pdf_export_watermark_path_result" is not in valid camel caps format
Open

            $pdf_export_watermark_path_result = PDF::upload_watermark(

Variable "affected_rows" is not in valid camel caps format
Open

                if ($affected_rows) {

Variable "user_id" is not in valid camel caps format
Open

                    $user_id = api_get_user_id();

Variable "settings_by_access_list" is not in valid camel caps format
Open

    $form = generateSettingsForm($settings, $settings_by_access_list);

Variable "settings_by_access_list" is not in valid camel caps format
Open

                $settings_by_access_list = $settings_array['settings_by_access_list'];

Variable "old_value" is not in valid camel caps format
Open

                if ($old_value != $value) {

Variable "row_subkeys" is not in valid camel caps format
Open

                    if ((isset($value[$row_subkeys['subkey']]) && 'false' == api_get_setting($key, $row_subkeys['subkey'])) ||

Variable "row_subkeys" is not in valid camel caps format
Open

                        (!isset($value[$row_subkeys['subkey']]) && 'true' == api_get_setting($key, $row_subkeys['subkey']))

Variable "url_id" is not in valid camel caps format
Open

                    $result = api_set_setting($key, 'true', $subkey, null, $url_id);

Variable "my_category" is not in valid camel caps format
Open

        header('Location: '.api_get_self().'?category='.Security::remove_XSS($my_category));

Variable "un_mark_all" is not in valid camel caps format
Open

        if ($mark_all || $un_mark_all) {

Variable "row_subkeys" is not in valid camel caps format
Open

                while ($row_subkeys = Database::fetch_array($res)) {

Variable "user_id" is not in valid camel caps format
Open

            $user_id

Variable "url_id" is not in valid camel caps format
Open

$url_id = api_get_current_access_url_id();

Variable "pdf_export_watermark_path_result" is not in valid camel caps format
Open

            if ($pdf_export_watermark_path_result) {

Variable "url_id" is not in valid camel caps format
Open

                        access_url = ".intval($url_id)." AND

Variable "user_id" is not in valid camel caps format
Open

        $user_id = api_get_user_id();

Variable "tool_name" is not in valid camel caps format
Open

$tool_name = get_lang('Configuration settings');

Variable "watermark_deleted" is not in valid camel caps format
Open

$watermark_deleted = false;

Variable "settings_array" is not in valid camel caps format
Open

    $settings = $settings_array['settings'];

Variable "settings_array" is not in valid camel caps format
Open

                $settings = $settings_array['settings'];

Variable "pdf_export_watermark_path" is not in valid camel caps format
Open

            $pdf_export_watermark_path = $_FILES['pdf_export_watermark_path'];

Variable "pdf_export_watermark_path" is not in valid camel caps format
Open

        if (isset($pdf_export_watermark_path) && !empty($pdf_export_watermark_path['name'])) {

Variable "this_section" is not in valid camel caps format
Open

$this_section = SECTION_PLATFORM_ADMIN;

Variable "settings_by_access_list" is not in valid camel caps format
Open

    $settings_by_access_list = $settings_array['settings_by_access_list'];

Variable "locked_settings" is not in valid camel caps format
Open

                $locked_settings = api_get_locked_settings();

Variable "settings_array" is not in valid camel caps format
Open

                $settings_array = getCategorySettings($my_category);

Variable "settings_array" is not in valid camel caps format
Open

                $settings_by_access_list = $settings_array['settings_by_access_list'];

Variable "user_id" is not in valid camel caps format
Open

                    $user_id

Variable "table_settings_current" is not in valid camel caps format
Open

            $sql = "UPDATE $table_settings_current

Variable "old_value" is not in valid camel caps format
Open

                            $value = $old_value;

Variable "url_id" is not in valid camel caps format
Open

                $result = api_set_setting($key, $value, null, null, $url_id);

Variable "affected_rows" is not in valid camel caps format
Open

                $affected_rows = DashboardManager::store_dashboard_plugins($_POST);

Variable "my_category" is not in valid camel caps format
Open

    $settings_array = getCategorySettings($my_category);

Variable "update_values" is not in valid camel caps format
Open

            unset($update_values['pdf_export_watermark_path']);

Variable "table_settings_current" is not in valid camel caps format
Open

                $sql = "SELECT subkey FROM $table_settings_current

Variable "settings_array" is not in valid camel caps format
Open

    $settings_array = getCategorySettings($my_category);

Variable "tool_name" is not in valid camel caps format
Open

Display::display_header($tool_name);

Variable "mark_all" is not in valid camel caps format
Open

                $mark_all = true;

Variable "mark_all" is not in valid camel caps format
Open

        if ($mark_all || $un_mark_all) {

Variable "old_value" is not in valid camel caps format
Open

                                $value = $old_value;

Variable "mark_all" is not in valid camel caps format
Open

        $mark_all = false;

Variable "settings_by_access_list" is not in valid camel caps format
Open

                    $settings_by_access_list

Variable "this_section" is not in valid camel caps format
Open

$_SESSION['this_section'] = $this_section;

Variable "un_mark_all" is not in valid camel caps format
Open

                $un_mark_all = true;

Variable "mark_all" is not in valid camel caps format
Open

                        if ($mark_all) {

Variable "row_subkeys" is not in valid camel caps format
Open

                    if ((isset($value[$row_subkeys['subkey']]) && 'false' == api_get_setting($key, $row_subkeys['subkey'])) ||

Variable "user_id" is not in valid camel caps format
Open

                        $user_id

Variable "old_value" is not in valid camel caps format
Open

                $old_value = api_get_setting($key);

There are no issues that match your filters.

Category
Status