includes/pageprocess.php
changeset 28 dd2edcdc6c03
parent 26 acf6f55bf023
child 31 dc8741857bde
equal deleted inserted replaced
27:dd659f6ba891 28:dd2edcdc6c03
   750     {
   750     {
   751       $class = ( $class == 'row1' ) ? 'row3' : 'row1';
   751       $class = ( $class == 'row1' ) ? 'row3' : 'row1';
   752       echo '<tr><td class="'.$class.'">Enjoys: ' . htmlspecialchars($userdata['user_hobbies']) . '</td></tr>';
   752       echo '<tr><td class="'.$class.'">Enjoys: ' . htmlspecialchars($userdata['user_hobbies']) . '</td></tr>';
   753     }
   753     }
   754     
   754     
       
   755     if ( empty($userdata['user_location']) && empty($userdata['user_job']) && empty($userdata['user_hobbies']) )
       
   756     {
       
   757       $class = ( $class == 'row1' ) ? 'row3' : 'row1';
       
   758       echo '<tr><td class="'.$class.'">' . htmlspecialchars($target_username) . ' hasn\'t posted any real-life contact information.</td></tr>';
       
   759     }
       
   760     
   755     echo '  </table>
   761     echo '  </table>
   756           </div>';
   762           </div>';
   757           
   763           
   758     echo '</tr></table>';
   764     echo '</tr></table>';
   759     
   765     
   863         $db->_die('The deletion log could not be selected.');
   869         $db->_die('The deletion log could not be selected.');
   864       }
   870       }
   865       if ( $db->numrows() > 0 )
   871       if ( $db->numrows() > 0 )
   866       {
   872       {
   867         $r = $db->fetchrow();
   873         $r = $db->fetchrow();
   868         echo '<p>This page also appears to have some log entries in the database - it seems that it was deleted on ' . $r['date_string'] . '. You can probably <a href="'.makeUrl($paths->page, 'do=rollback&amp;id='.$r['time_id']).'" onclick="ajaxRollback(\''.$r['time_id'].'\'); return false;">roll back</a> the deletion.</p>';
   874         echo '<p><b>This page was deleted on ' . $r['date_string'] . '.</b> The stated reason was:</p><blockquote>' . $r['edit_summary'] . '</blockquote><p>You can probably <a href="'.makeUrl($paths->page, 'do=rollback&amp;id='.$r['time_id']).'" onclick="ajaxRollback(\''.$r['time_id'].'\'); return false;">roll back</a> the deletion.</p>';
   869       }
   875       }
   870       $db->free_result();
   876       $db->free_result();
   871     }
   877     }
   872     echo '<p>
   878     echo '<p>
   873             HTTP Error: 404 Not Found
   879             HTTP Error: 404 Not Found