Example #1
0
 function drainhole_upload($hole)
 {
     AT_Audit::create('drainhole_upload', $hole->id, serialize($hole));
 }
 function template_redirect()
 {
     // Don't log 404's
     if (!is_404()) {
         global $post, $posts;
         if (isset($_GET['preview']) && $_GET['preview'] == 'true') {
             return;
         }
         AT_Audit::create('template_redirect', count($posts) > 1 ? 0 : $post->ID, $_SERVER['REQUEST_URI']);
     }
 }