Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Pages: 1 [2]

Author Topic: Mika...help...404 ?  (Read 8299 times)

codetwist

  • Hero Member
  • *****
  • Karma: 50
  • Posts: 940
Mika...help...404 ?
« Reply #15 on: April 28, 2007, 02:19:59 PM »

There is not much left uncovered unless You want to check for availability of page requested.
Logged

ognennyjstorm

  • Guest
Mika...help...404 ?
« Reply #16 on: April 29, 2007, 03:05:40 AM »

SIMPLE SOLUTION (if U need Header 404 only)
Quote
function snews_startup() {
   connect_to_db();
   $categorySEF = get_id('category'); $articleSEF = get_id('article');
   if ($categorySEF == 'rss') {rss(); die;}

...

      }
   }
   $categoryID = retrieve('id', 'categories', 'seftitle', $categorySEF);
   $articleID = retrieve('id', 'articles', 'seftitle', $articleSEF);
   if (!empty($categorySEF) && $categoryID == false && check_category($categorySEF) == false) {header('HTTP/1.1 404 Not Found'); die;}
   if (!empty($articleSEF) && $articleID == false && false === strpos($articleSEF,l('paginator'))) {header('HTTP/1.1 404 Not Found'); die;}

}
snews_startup();
Your suggestions in this case: (http://sitename/?blabla) ???
« Last Edit: July 23, 2009, 07:07:21 PM by philmoz »
Logged

piXelatedEmpire

  • MIA
  • ULTIMATE member
  • ******
  • Karma: 37
  • Posts: 1401
  • currently MIA
Mika...help...404 ?
« Reply #17 on: May 02, 2007, 02:39:14 AM »

Another issue being addressed in the next version of sNews ;)
Logged
my apologies to the sNews crew, but I will be MIA for the forseeable future
Pages: 1 [2]