Esempio n. 1
0
<?php

/**
 * golink plugin
 *
 * @author Roffun
 * @copyright Copyright (c) 2015 - today: Roffun | https://webcot.net/cotonti/extensions/golink-plugin
 * @license BSD
 */
defined('COT_CODE') or die('Wrong URL');
require_once cot_incfile('page', 'module');
global $db_pages;
cot_extrafield_remove($db_pages, 'OPENLINKSONPAGE');
Esempio n. 2
0
<?php

defined('COT_CODE') or die('Wrong URL');
global $db_users;
// Remove column from table
cot_extrafield_remove($db_users, 'karma');
cot_extrafield_remove($db_users, 'karma_auth');
Esempio n. 3
0
                 if ($fieldresult == 1) {
                     cot_message(sprintf($L['adm_extrafield_updated'], $k));
                 } elseif (!$fieldresult) {
                     cot_error(sprintf($L['adm_extrafield_not_updated'], $k));
                 }
             }
         }
     }
     //cot_redirect(cot_url('admin', "m=extrafields&n=$n&d=$durl", '', true));
 } elseif ($a == 'del' && isset($name)) {
     /* === Hook === */
     foreach (cot_getextplugins('admin.extrafields.delete') as $pl) {
         include $pl;
     }
     /* ===== */
     if (cot_extrafield_remove($n, $name)) {
         cot_message('adm_extrafield_removed');
     } else {
         cot_error('adm_extrafield_not_removed');
     }
     //cot_redirect(cot_url('admin', "m=extrafields&n=$n&d=$durl", '', true));
 }
 $cache && $cache->db->remove('cot_extrafields', 'system');
 cot_load_extrafields(true);
 $totalitems = $db->query("SELECT COUNT(*) FROM {$db_extra_fields} WHERE field_location = '{$n}'")->fetchColumn();
 $res = $db->query("SELECT * FROM {$db_extra_fields} WHERE field_location = '{$n}' ORDER BY field_name ASC LIMIT {$d}, " . $maxperpage);
 $pagenav = cot_pagenav('admin', 'm=extrafields&n=' . $n, $d, $totalitems, $maxperpage, 'd', '', $cfg['jquery'] && $cfg['turnajax']);
 $field_types = array('input', 'inputint', 'currency', 'double', 'textarea', 'select', 'checkbox', 'radio', 'datetime', 'country', 'range', 'checklistbox', 'file');
 $ii = 0;
 /* === Hook - Part1 : Set === */
 $extp = cot_getextplugins('admin.extrafields.loop');
<?php

/**
 * confirmtheright plugin
 *
 * @author Roffun
 * @copyright Copyright (c) 2015 - today: Roffun | https://webcot.net/cotonti/extensions/confirmtheright-plugin
 * @license BSD
 */
defined('COT_CODE') or die('Wrong URL');
require_once cot_incfile('users', 'module');
require_once cot_incfile('confirmtheright', 'plug');
global $db_users, $cfg;
cot_extrafield_remove($db_users, 'CONFIRMTHERIGHT1');
cot_extrafield_remove($db_users, 'CONFIRMTHERIGHT2');