Ejemplo n.º 1
0
//
//    http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
define('TUBEX_CONTROL_PANEL', true);
require_once 'includes/cp-global.php';
// Send initial response headers
header("Content-type: text/html; charset: UTF-8");
NoCacheHeaders();
// Check for Firefox
$is_firefox = preg_match('~Firefox/~', $_SERVER['HTTP_USER_AGENT']);
if (Authenticate::Login()) {
    Execute(Request::Get('r'), 'tbxIndexShow');
} else {
    Growl::AddError(Authenticate::GetError());
    include_once 'cp-login.php';
}
function tbxVideoImportShow($errors = null)
{
    include_once 'cp-video-import.php';
}
function tbxVideoImportAnalyze()
{
    $v = Validator::Create();
    try {
        $file = Video_Import::ProcessSource($_REQUEST);
        $fields = Video_Import::Analyze(TEMP_DIR . '/' . $file, Request::Get('delimiter'));