plugins/SpecialAdmin.php
changeset 356 9f8fca26ddb9
parent 348 87e08a6e4fec
child 357 1d0152181585
equal deleted inserted replaced
355:d15e4411ef65 356:9f8fca26ddb9
  1666     echo '<h3>' . $lang->get('adm_err_not_auth_title') . '</h3>';
  1666     echo '<h3>' . $lang->get('adm_err_not_auth_title') . '</h3>';
  1667     echo '<p>' . $lang->get('adm_err_not_auth_body', array( 'login_link' => $login_link )) . '</p>';
  1667     echo '<p>' . $lang->get('adm_err_not_auth_body', array( 'login_link' => $login_link )) . '</p>';
  1668     return;
  1668     return;
  1669   }
  1669   }
  1670   
  1670   
  1671   echo '<h2>Background information</h2>';
  1671   echo '<h2>' . $lang->get('acpcp_heading_main') . '</h2>';
  1672   echo '<p>
  1672   echo '<p>
  1673           The United States Childrens\' Online Privacy Protection Act (COPPA) was a law passed in 2001 that requires sites oriented towards
  1673           ' . $lang->get('acpcp_intro') . '
  1674           children under 13 years old or with a significant amount of under-13 children clearly state what information is being collected
       
  1675           in a privacy policy and obtain authorization from a parent or legal guardian before allowing children to use the site. Enano 
       
  1676           provides an easy way to allow you, as the website administrator, to obtain this authorization.
       
  1677         </p>';
  1674         </p>';
  1678   
  1675   
  1679   // Start form
  1676   // Start form
  1680   
  1677   
  1681   if ( isset($_POST['coppa_address']) )
  1678   if ( isset($_POST['coppa_address']) )
  1685     setConfig('enable_coppa', $enable_coppa);
  1682     setConfig('enable_coppa', $enable_coppa);
  1686     
  1683     
  1687     $address = $_POST['coppa_address']; // RenderMan::preprocess_text($_POST['coppa_address'], true, false);
  1684     $address = $_POST['coppa_address']; // RenderMan::preprocess_text($_POST['coppa_address'], true, false);
  1688     setConfig('coppa_address', $address);
  1685     setConfig('coppa_address', $address);
  1689     
  1686     
  1690     echo '<div class="info-box">Your changes have been saved.</div>';
  1687     echo '<div class="info-box">' . $lang->get('acpcp_msg_save_success') . '</div>';
  1691   }
  1688   }
  1692   
  1689   
  1693   echo '<form action="'.makeUrl($paths->nslist['Special'].'Administration', (( isset($_GET['sqldbg'])) ? 'sqldbg&amp;' : '') .'module='.$paths->cpage['module']).'" method="post">';
  1690   echo '<form action="'.makeUrl($paths->nslist['Special'].'Administration', (( isset($_GET['sqldbg'])) ? 'sqldbg&amp;' : '') .'module='.$paths->cpage['module']).'" method="post">';
  1694   
  1691   
  1695   echo '<div class="tblholder">';
  1692   echo '<div class="tblholder">';
  1696   echo '<table border="0" cellspacing="1" cellpadding="4">';
  1693   echo '<table border="0" cellspacing="1" cellpadding="4">';
  1697   echo '<tr>
  1694   echo '<tr>
  1698           <th colspan="2">
  1695           <th colspan="2">
  1699             COPPA support
  1696             ' . $lang->get('acpcp_th_form') . '
  1700           </th>
  1697           </th>
  1701         </tr>';
  1698         </tr>';
  1702         
  1699         
  1703   echo '<tr>
  1700   echo '<tr>
  1704           <td class="row1">
  1701           <td class="row1">
  1705             Enable COPPA support:
  1702             ' . $lang->get('acpcp_field_enable_title') . '
  1706           </td>
  1703           </td>
  1707           <td class="row2">
  1704           <td class="row2">
  1708             <label><input type="checkbox" name="enable_coppa" ' . ( ( getConfig('enable_coppa') == '1' ) ? 'checked="checked"' : '' ) . ' /> COPPA enabled</label><br />
  1705             <label><input type="checkbox" name="enable_coppa" ' . ( ( getConfig('enable_coppa') == '1' ) ? 'checked="checked"' : '' ) . ' /> ' . $lang->get('acpcp_field_enable') . '</label><br />
  1709             <small>If this is checked, users will be asked if they are under 13 years of age before registering</small>
  1706             <small>' . $lang->get('acpcp_field_enable_hint') . '</small>
  1710           </td>
  1707           </td>
  1711         </tr>';
  1708         </tr>';
  1712         
  1709         
  1713   echo '<tr>
  1710   echo '<tr>
  1714           <td class="row1">
  1711           <td class="row1">
  1715             Your mailing address:<br />
  1712             ' . $lang->get('acpcp_field_address') . '<br />
  1716             <small>This is the address to which parents will send authorization forms.</small>
  1713             <small>' . $lang->get('acpcp_field_address_hint') . '</small>
  1717           </td>
  1714           </td>
  1718           <td class="row2">
  1715           <td class="row2">
  1719             <textarea name="coppa_address" rows="7" cols="40">' . getConfig('coppa_address') . '</textarea>
  1716             <textarea name="coppa_address" rows="7" cols="40">' . getConfig('coppa_address') . '</textarea>
  1720           </td>
  1717           </td>
  1721         </tr>';
  1718         </tr>';
  1722         
  1719         
  1723   echo '<tr>
  1720   echo '<tr>
  1724           <th colspan="2" class="subhead">
  1721           <th colspan="2" class="subhead">
  1725             <input type="submit" value="Save changes" />
  1722             <input type="submit" value="' . $lang->get('etc_save_changes') . '" />
  1726           </th>
  1723           </th>
  1727         </tr>';
  1724         </tr>';
  1728         
  1725         
  1729   echo '</table>';
  1726   echo '</table>';
  1730   
  1727