winix/functions/node.cpp

46 lines
493 B
C++
Executable File

/*
* This file is a part of Winix
* and is not publicly distributed
*
* Copyright (c) 2008-2014, Tomasz Sowa
* All rights reserved.
*
*/
#include "node.h"
namespace Winix
{
namespace Fun
{
Node::Node()
{
fun.url = L"node";
}
void Node::MakeGet()
{
if( cur->request->param_tab.empty() )
{
//cur->request->status = Error
//!!zglosic 404
return;
}
long id = Tol(cur->request->param_tab[0].name);
system->RedirectTo(id);
}
} // namespace
} // namespace Winix