position(sidebar,articles,$gategory['id']);
function position($name, $module, $cat) {
$position = mysql_fetch_array(mysql_query("SELECT * FROM ads_positions WHERE tpl='".$name."'"));
if(!empty($position)) {
$ads = mysql_fetch_array(mysql_query("SELECT * FROM ads WHERE position_id='".$position['id']."' ORDER BY rand() LIMIT 1"));
$modules_array = explode('|||', $ads['modules']);
if (in_array($module, $modules_array)) {
if($module == 'articles') {
if(!empty($ads['cats'])) {
$cats_array = explode('|||', $ads['cats']);
if (in_array($cat, $cats_array)) {
$adblock = $ads['text'];
}
} else {
$adblock = $ads['text'];
}
} else {
$adblock = $ads['text'];
}
}
if($adblock == '') {
position($name, $module, $cat);
} else {
return $adblock;
}
}
}
root@ovz2:~# cd osrm-backend
root@ovz2:~/osrm-backend# mkdir -p build; cd build; cmake ..; make
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:60 (project):
No CMAKE_CXX_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "/root/osrm-backend/build/CMakeFiles/CMakeOutput.log".
See also "/root/osrm-backend/build/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found. Stop.
The output was:
No such file or directory
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND
Build flags:
Id flags:
The output was:
No such file or directory
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND
Build flags:
Id flags: -c