예제 #1
0
 //  ----------------- begin  owner section  ----------------------------------
 if ($user_id == $usr['userid'] || $usr['admin']) {
     $rscheck = XDb::xMultiVariableQueryValue("SELECT count(*) FROM caches\n                WHERE (status = 4 OR status = 5 OR status = 6) AND `user_id`= :1", 0, $user_id);
     if ($rscheck != 0) {
         $content .= '<br /><div class="content-title-noshade box-blue">';
     }
     //get not published caches DATE_FORMAT(`caches`.`date_activate`,'%d-%m-%Y'),
     $geocachesNotPublished = $user->getGeocachesNotPublished();
     if ($geocachesNotPublished->count() > 0) {
         $content .= '<p><span class="content-title-noshade txt-blue08">' . tr('not_yet_published') . ':</span></p><br /><div><ul style="margin: -0.9em 0px 0.9em 0px; padding: 0px 0px 0px 10px; list-style-type: none; line-height: 1.2em; font-size: 115%;">';
         foreach ($geocachesNotPublished as $geocache) {
             $content .= "\n" . buildGeocacheHtml($geocache, $cache_notpublished_line);
         }
         $content .= '</ul></div>';
     }
     $waitAproveGeocaches = $user->getGeocachesWaitAproove();
     if ($waitAproveGeocaches->count() > 0) {
         $content .= '<br /><p><span class="content-title-noshade txt-blue08">' . tr('caches_waiting_approve') . ':</span></p><br /><div><ul style="margin: -0.9em 0px 0.9em 0px; padding: 0px 0px 0px 10px; list-style-type: none; line-height: 1.2em; font-size: 115%;">';
         foreach ($waitAproveGeocaches as $geocache) {
             $content .= "\n" . buildGeocacheHtml($geocache, $cache_line);
         }
         $content .= '</ul></div>';
     }
     $geocachesBlocked = $user->getGeocachesBlocked();
     if ($geocachesBlocked->count() > 0) {
         $content .= '<br /><p><span class="content-title-noshade txt-blue08">' . tr('caches_blocked') . ':</span></p><br /><div><ul style="margin: -0.9em 0px 0.9em 0px; padding: 0px 0px 0px 10px; list-style-type: none; line-height: 1.2em; font-size: 115%;">';
         foreach ($geocachesBlocked as $geocache) {
             $content .= "\n" . buildGeocacheHtml($geocache, $cache_line);
         }
         $content .= '</ul></div>';
     }