Type: |
|
|
Tab: |
|
|
Name: |
|
|
Title: |
|
|
Description/"i" field-tip: text or HTML: |
displayCmsEditor( 'description', $row->description, 600 /* ( $row->type == 'delimiter' ? 600 : 286 ) */ , 200, 50, 7 );
//
?> |
type != 'delimiter' ) { ?>
type == 'editorta' ) { ?>
: |
displayCmsEditor( 'cb_default', $row->default, 600, 200, 50, 7 );
?> |
: |
" class="inputbox" value="default ); ?>" />
|
|
Required?: |
|
|
Show on Profile?: |
|
|
Display field title in Profile?: |
|
|
Searchable in users-lists?: |
|
|
User Read Only?: |
|
|
Show at Registration?: |
|
|
Published: |
sys == 1 ? ( $row->published ? _UE_YES : _UE_NO ) . ' (System-fields cannot be published/unpublished here.' . ( in_array( $row->name, array( 'name', 'firstname', 'middlename', 'lastname' ) ) ? ' Name-fields publishing depends on your setting in global CB config.)' : ')' ) : $lists['published'] ); ?> |
|
Size: |
|
|
\n | fieldtitle ) . "\" name=\"vNames[".$i."]\" id=\"vNames".$i."\" /> |
\n";
}
if(count( $fieldvalues )< 1) {
echo "\n |
\n";
$i=0;
}
?>
/>
fieldid > 0) {
print "";
print "";
print "";
}
// print "";
// print "";
}
function showTabs( &$rows, $pageNav, $search, $option ) {
global $_CB_framework;
HTML_comprofiler::secureAboveForm('showTabs');
outputCbTemplate( 2 );
outputCbJs( 2 );
global $_CB_Backend_Title;
$_CB_Backend_Title = array( 0 => array( 'cbicon-48-tabs', "CB Tab Manager" ) );
?>
outputCbJQuery( '' );
global $_CB_Backend_Title;
$_CB_Backend_Title = array( 0 => array( 'cbicon-48-tabs', "Community Builder Tab: " . ( $row->tabid ? "Edit" . ' [ '. htmlspecialchars( getLangDefinition( $row->title ) ) .' ]' : "New" ) . '' ) );
if ( $row->tabid && ( ! $row->enabled ) ) {
echo 'Tab is not published
' . "\n";
}
?>
array( 'cbicon-48-user', "CB User Manager" ) );
$colspans = 13 + count( $pluginColumns );
?>
trigger( 'onBeforeUserProfileEditDisplay', array( &$user, 2, &$additionalHeadTags ) );
if ($_PLUGINS->is_errors()) {
echo "\n";
exit();
}
HTML_comprofiler::secureAboveForm('edituser');
outputCbTemplate(2);
echo initToolTip(2);
$tabs = new cbTabs( ( ( ( $_CB_framework->getUi() == 2 ) && ( ! isset($_REQUEST['tab']) ) ) ? 1 : 0 ), 2 ); // use cookies in backend to remember selected tab.
$tabcontent = $tabs->getEditTabs( $user, $postdata );
outputCbJs( 2 );
if ( count( $additionalHeadTags ) > 0 ) {
addCbHeadTag( 2, implode( '', $additionalHeadTags ) );
}
global $_CB_Backend_Title;
//OLD: $_CB_Backend_Title = array( 0 => array( 'cbicon-48-users', "Community Builder User: " . ( $user->id ? "Edit" . ' [ '. $user->username .' ]' : "New" ) . '' ) );
//NEW:
$_CB_Backend_Title = array( 0 => array( 'cbicon-48-users', CBTxt::T( "Community Builder User" ) . ": " . ( $user->id ? CBTxt::T( "Edit" ) . ' [ '. $user->username .' ]' : CBTxt::T( "New" ) ) . '' ) );
//
ob_start();
?>
var cbDefaultFieldbackgroundColor;
function cbFrmSubmitButton() {
var me = this.elements;
var r = new RegExp("^[\<|\>|\"|\'|\%|\;|\(|\)|\&|\+|\-]*$", "i");
var r = new RegExp("[^A-Za-z0-9]", "i");
var r = new RegExp("[\<|\>|\"|\'|\%|\;|\(|\)|\&|\+|\-]", "i");
var errorMSG = '';
var iserror=0;
if (cbDefaultFieldbackgroundColor === undefined) cbDefaultFieldbackgroundColor = ((me['username'].style.getPropertyValue) ? me['username'].style.getPropertyValue("backgroundColor") : me['username'].style.backgroundColor);
fieldJS; ?>
if (me['username'].value == "") {
errorMSG += "\n";
me['username'].style.backgroundColor = "red";
iserror=1;
} else if (r.exec(me['username'].value) || (me['username'].value.length < 3)) {
errorMSG += "\n";
me['username'].style.backgroundColor = "red";
iserror=1;
} else if (me['username'].style.backgroundColor.slice(0,3)=="red") {
me['username'].style.backgroundColor = cbDefaultFieldbackgroundColor;
}
if ((me['password'].value) && (me['password'].value.length < 6)) {
errorMSG += "\n";
me['password'].style.backgroundColor = "red";
iserror=1;
} else if ((me['password'].value != "") && (me['password'].value != me['password__verify'].value)){
errorMSG += "\n";
me['password'].style.backgroundColor = "red"; me['password__verify'].style.backgroundColor = "red";
iserror=1;
} else {
if (me['password'].style.backgroundColor.slice(0,3)=="red") me['password'].style.backgroundColor = cbDefaultFieldbackgroundColor;
if (me['password__verify'].style.backgroundColor.slice(0,3)=="red") me['password__verify'].style.backgroundColor = cbDefaultFieldbackgroundColor;
}
if (me['gid'].value == "") {
errorMSG += "You must assign user to a group.\n";
iserror=1;
}
// loop through all input elements in form
var fieldErrorMessages = new Array;
for (var i=0; i < me.length; i++) {
// check if element is mandatory; here mosReq=1
if ( (typeof(me[i].getAttribute('mosReq')) != "undefined") && ( me[i].getAttribute('mosReq') == 1) ) {
if (me[i].type == 'radio' || me[i].type == 'checkbox') {
var rOptions = me[me[i].getAttribute('name')];
var rChecked = 0;
if(rOptions.length > 1) {
for (var r=0; r < rOptions.length; r++) {
if ( (typeof(rOptions[r].getAttribute('mosReq')) != "undefined") && ( rOptions[r].getAttribute('mosReq') == 1) ) {
if (rOptions[r].checked) {
rChecked=1;
}
}
}
} else {
if (me[i].checked) {
rChecked=1;
}
}
if(rChecked==0) {
for (var k=0; k < me.length; k++) {
if (me[i].getAttribute('name') == me[k].getAttribute('name')) {
if (me[k].checked) {
rChecked=1;
break;
}
}
}
}
if(rChecked==0) {
var alreadyFlagged = false;
for (var j = 0, n = fieldErrorMessages.length; j < n; j++) {
if (fieldErrorMessages[j] == me[i].getAttribute('name')) {
alreadyFlagged = true;
break
}
}
if ( ! alreadyFlagged ) {
fieldErrorMessages.push(me[i].getAttribute('name'));
// add up all error messages
errorMSG += me[i].getAttribute('mosLabel') + ' : \n';
// notify user by changing background color, in this case to red
me[i].style.backgroundColor = "red";
iserror=1;
}
} else if (me[i].style.backgroundColor.slice(0,3)=="red") me[i].style.backgroundColor = cbDefaultFieldbackgroundColor;
}
if (me[i].value == '') {
// add up all error messages
errorMSG += me[i].getAttribute('mosLabel') + ' : \n';
// notify user by changing background color, in this case to red
me[i].style.backgroundColor = "red";
iserror=1;
} else if (me[i].style.backgroundColor.slice(0,3)=="red") me[i].style.backgroundColor = cbDefaultFieldbackgroundColor;
}
}
if(iserror==1) {
alert(errorMSG);
return false;
} else {
return true;
}
}
$('#cbcheckedadminForm').submit( cbFrmSubmitButton );
$('div.cbtoolbarbar a.cbtoolbar').click( function() {
var taskVal = $(this).attr('href').substring(1);
$('#cbcheckedadminForm input[name=task]').val( taskVal );
if (taskVal == 'showusers') {
$('#cbcheckedadminForm')[0].submit();
} else {
$('#cbcheckedadminForm').submit();
}
return false;
} );
outputCbJQuery( $cbjavascript );
if ( is_array( $results ) ) {
echo implode( '', $results );
}
?>
showCBTab( '".urldecode($_REQUEST['tab'])."' ); \n";
?>
array( 'cbicon-48-settings', "CB " . _UE_REG_CONFIGURATION_MANAGER ) );
?>
array( 'cbicon-48-tools', "CB Tools Manager" ) );
$cbSpoofField = cbSpoofField();
$cbSpoofString = cbSpoofString( null, 'cbtools' );
?>
' . $msg . '';
}
}
if ( $dbChecker !== null ) {
if ( $result == true ) {
echo ''
. ( $upgrade ? ( $dryRun ? $dbName . ' Database adjustments dryrun is successful, see results below' : $dbName . ' Database adjustments have been performed successfully.' ) : 'All ' . $dbName . ' Database is up to date.' )
. '
';
} elseif ( is_string( $result ) ) {
echo '' . $result . '
';
} else {
echo '';
echo '
'
. $dbName . ' ' . ( $upgrade ? 'Database adjustments errors:' : 'Database structure differences:' )
. '
';
$errors = $dbChecker->getErrors( false );
foreach ( $errors as $err ) {
echo '
' . $err[0];
if ( $err[1] ) {
echo '
' . $err[1] . '
';
}
echo '
';
}
echo "
";
if ( ! $upgrade ) {
echo 'The ' . $dbName . ' database structure differences can be fixed (adjusted) by clicking here: Click here to Fix (adjust) all ' . $dbName . ' database differences listed above (you can also Click here to preview fixing (adjusting) queries in a dry-run), but in all cases you need to backup database first as this adjustment is changing database and is a new feature.'
. '
';
}
}
$logs = $dbChecker->getLogs( false );
if ( count( $logs ) > 0 ) {
echo "";
echo "";
foreach ( $logs as $err ) {
echo '
' . $err[0];
if ( $err[1] ) {
echo '
' . $err[1] . '
';
}
echo '
';
}
echo '
';
$_CB_framework->outputCbJQuery( "$('#cbdetailsdbcheck_" . $jsId . "').hide(); $('#cbdetailsLinkShow_" . $jsId . "').click( function() { $('#cbdetailsdbcheck_" . $jsId . "').toggle('slow'); $('#cbdetailsLinkShow_" . $jsId . "').html( $('#cbdetailsLinkShow_" . $jsId . "').html() == 'Click here to Show details' ? 'Click here to Hide details' : 'Click here to Show details' ); return false; } );");
}
}
if ( $showConclusion ) {
if ( $upgrade ) {
if ( $dryRun ) {
echo "Dry-run of " . $dbName . " database adjustments done. None of the queries listed in details have been performed.
";
echo 'The database adjustments listed above can be applied by clicking here: Click here to Fix (adjust) all database differences listed above, but you need to backup database first as this fixing/adjusting is changing database and is a new feature.
';
} else {
echo 'The ' . $dbName . ' database adjustments have been done. If all lines above are in green, database adjustments completed successfully. Otherwise, if some lines are red, please report exact errors and queries to authors forum, and try checking database again.
';
echo 'The database structure can be checked again by clicking here: Click here to Check ' . $dbName . ' database.
';
}
} else {
echo '' . $dbName . ' database checks done. If all lines above are in green, test completed successfully. Otherwise, please take corrective measures proposed in red.
';
}
}
foreach ( $messagesAfter as $msg ) {
if ( $msg ) {
echo '' . $msg . '
';
}
}
}
/**
* Writes a list of the defined modules
* @param array An array of category objects
*/
function showPlugins( &$rows, &$pageNav, $option, &$lists, $search ) {
global $_CB_framework, $_PLUGINS;
HTML_comprofiler::secureAboveForm('showPlugins');
outputCbTemplate( 2 );
outputCbJs( 2 );
echo initToolTip( 2 );
global $_CB_Backend_Title;
$_CB_Backend_Title = array( 0 => array( 'cbicon-48-plugins', 'CB Plugin Manager Install Plugin' ) );
$p_startdir=$_CB_framework->getCfg('absolute_path')."/components/com_comprofiler/plugin/";
?>
getCfg('ftp_enable') != 1)) {
writableCell( 'components/com_comprofiler/plugin/user' );
// writableCell( 'components/com_comprofiler/plugin/fieldtypes' );
writableCell( 'components/com_comprofiler/plugin/templates' );
writableCell( 'components/com_comprofiler/plugin/language' );
}
writableCell( 'media' );
?>
$row is passed with the id
* property set to 0.
* @param moscomprofilerPlugin $row
* @param array of string $lists An array of select lists
* @param cbParamsEditor $params
* @param string $option of component.
*
*/
function editPlugin( &$row, &$lists, &$params, $options ) {
global $_PLUGINS;
HTML_comprofiler::secureAboveForm('editPlugin');
outputCbTemplate( 2 );
outputCbJs( 2 );
echo initToolTip( 2 );
$nameA = '';
$filesInstalled = true;
if ( $row->id ) {
$nameA = '[ '. htmlspecialchars( getLangDefinition( $row->name ) ) .' ]';
$xmlfile = $_PLUGINS->getPluginXmlPath( $row );
$filesInstalled = file_exists($xmlfile);
}
global $_CB_Backend_Title;
$_CB_Backend_Title = array( 0 => array( 'cbicon-48-plugins', "Community Builder Plugin: " . ( $row->id ? "Edit" . ' ' . $nameA : "New" ) . '' ) );
if ( $row->id && ( ! $row->published ) ) {
echo 'Plugin is not published
' . "\n";
}
?>
getCfg('absolute_path') . '/' . $folder;
if ( $useAdminFs ) {
cbimport( 'cb.adminfilesystem' );
$adminFS =& cbAdminFileSystem::getInstance();
if ( ! $adminFS->isUsingStandardPHP() ) {
return;
}
// not yet implemented in ftp layer $writable = ( $adminFS->file_exists( $path ) && $adminFS->is_writable( $path ) );
}
$writable = is_writable( $path );
echo '