diff -r e5484a9e0818 -r 7e8fd44b36b0 plugins/SpecialAdmin.php --- a/plugins/SpecialAdmin.php Thu Jun 28 11:13:39 2007 -0400 +++ b/plugins/SpecialAdmin.php Thu Jun 28 13:49:40 2007 -0400 @@ -247,10 +247,10 @@ Global site options These options control the entire site. - Site name: - Site description: + Site name: + Site description: Main page: pagename_field('main_page', str_replace('_', ' ', getConfig('main_page'))); ?> - Copyright notice shown on pages: + Copyright notice shown on pages: Hint: If you're using Windows, you can make a "©" symbol by holding ALT and pressing 0169 on the numeric keypad. Contact e-mail
All e-mail sent from this site will appear to have come from the address shown here. @@ -348,7 +348,7 @@ -
+ @@ -958,7 +958,10 @@ break; } } - $q = $db->sql_query('SELECT log_type, action, time_id, date_string, author, edit_summary FROM '.table_prefix.'logs WHERE log_type=\'admin\' AND action=\'activ_req\' ORDER BY time_id DESC;'); + $q = $db->sql_query('SELECT l.log_type, l.action, l.time_id, l.date_string, l.author, l.edit_summary, u.user_coppa FROM '.table_prefix.'logs AS l + LEFT JOIN '.table_prefix.'users AS u + ON ( u.username = l.edit_summary OR u.username IS NULL ) + WHERE log_type=\'admin\' AND action=\'activ_req\' ORDER BY time_id DESC;'); if($q) { if($db->numrows() > 0) @@ -969,13 +972,14 @@ echo '

'.$s . ' awaiting account activation

'; echo '
- '; + '; $cls = 'row2'; while($row = $db->fetchrow()) { if($cls == 'row2') $cls = 'row1'; else $cls = 'row2'; - echo ''; + $coppa = ( $row['user_coppa'] == '1' ) ? 'Yes' : 'No'; + echo ''; } echo '
Date of requestRequested byRequested forActions
Date of requestRequested byRequested forCOPPA userActions
'.date('F d, Y h:i a', $row['time_id']).''.$row['author'].''.$row['edit_summary'].'Activate nowSend activation e-mailDeny request
'.date('F d, Y h:i a', $row['time_id']).''.$row['author'].''.$row['edit_summary'].'' . $coppa . 'Activate nowSend activation e-mailDeny request
'; } @@ -1342,6 +1346,79 @@ echo ''; } +function page_Admin_COPPA() +{ + global $db, $session, $paths, $template, $plugins; // Common objects + if ( $session->auth_level < USER_LEVEL_ADMIN || $session->user_level < USER_LEVEL_ADMIN ) + { + echo '

Error: Not authenticated

It looks like your administration session is invalid or you are not authorized to access this administration page. Please re-authenticate to continue.

'; + return; + } + + echo '

Background information

'; + echo '

+ The United States Childrens\' Online Privacy Protection Act (COPPA) was a law passed in 2001 that requires sites oriented towards + children under 13 years old or with a significant amount of under-13 children clearly state what information is being collected + in a privacy policy and obtain authorization from a parent or legal guardian before allowing children to use the site. Enano + provides an easy way to allow you, as the website administrator, to obtain this authorization. +

'; + + // Start form + + if ( isset($_POST['coppa_address']) ) + { + // Saving changes + $enable_coppa = ( isset($_POST['enable_coppa']) ) ? '1' : '0'; + setConfig('enable_coppa', $enable_coppa); + + $address = $_POST['coppa_address']; // RenderMan::preprocess_text($_POST['coppa_address'], true, false); + setConfig('coppa_address', $address); + + echo '
Your changes have been saved.
'; + } + + echo '
'; + + echo '
'; + echo ''; + echo ' + + '; + + echo ' + + + '; + + echo ' + + + '; + + echo ' + + '; + + echo '
+ COPPA support +
+ Enable COPPA support: + +
+ If this is checked, users will be asked if they are under 13 years of age before registering +
+ Your mailing address:
+ This is the address to which parents will send authorization forms. +
+ +
+ +
'; + + echo ''; + +} + function page_Admin_PageManager() { global $db, $session, $paths, $template, $plugins; // Common objects