function test_furchash() { if (is_facebook()) { var_dump(furchash_hphp_ext("15minutesoffame", 15, 86) == '25'); } else { var_dump(furchash_hphp_ext("15minutesoffame", 15, 86) == '85'); } }
$rowcontent['vid_type'] = 0; if (!nv_is_url($rowcontent['vid_path']) and is_file(NV_DOCUMENT_ROOT . $rowcontent['vid_path'])) { $lu = strlen(NV_BASE_SITEURL . NV_UPLOADS_DIR . '/' . $module_upload . '/vid/'); $rowcontent['vid_path'] = substr($rowcontent['vid_path'], $lu); if (file_exists(NV_ROOTDIR . '/' . NV_UPLOADS_DIR . '/' . $module_upload . '/vid/' . $rowcontent['vid_path'])) { $rowcontent['vid_type'] = 1; //is uploaded file } } elseif (nv_is_url($rowcontent['vid_path'])) { if (is_youtube($rowcontent['vid_path'])) { $rowcontent['vid_type'] = 2; //is Youtube } elseif (is_picasa($rowcontent['vid_path'])) { $rowcontent['vid_type'] = 3; //is Picasa } elseif (is_facebook($rowcontent['vid_path'])) { $rowcontent['vid_type'] = 4; //is Facebook } else { $rowcontent['vid_type'] = 5; //hotlink from other site } } else { $rowcontent['vid_path'] = ''; } // Auto-Thumb from Youtube - if empty Image if ($rowcontent['vid_type'] == 2 and empty($rowcontent['homeimgfile'])) { $rowcontent['homeimgfile'] = 'http://img.youtube.com/vi/' . get_youtube_id($rowcontent['vid_path']) . '/0.jpg'; $rowcontent['homeimgthumb'] = 3; } // Auto-duration from Youtube - if empty