예제 #1
0
// content id - vienen por get/post/whatever de la herramienta
//$ids = array();
// ESTE NO ANDA, TIRA EL SQL> 21327
//$ids = array(1329,21304,21161,20684,20214,18932,18739,18416);
$ids = $listaIds;
$work_dir = TMP_DIR_JG . "/" . $_SESSION["folder"];
$sessDir = $work_dir;
if (!file_exists($sessDir)) {
    exec("mkdir {$sessDir}");
}
$targetDir = $work_dir;
$USE_LOCAL_FTP = FALSE;
// includes
include_once $globalIncludeDir . "/classes/game.class.php";
kimport("kmail");
$debug = new kmail("TIGO.PY CONTENT GAME");
$debug->set_tracking();
$debug->set_logfile("logs/games");
$debug->add("\n--------------------------------------------\nStarting...");
$oDbc = new konexion("Web");
$debug->add("oDbc: " . var_export($oDbc, TRUE));
$DEBUG_LVL = 2;
$todo = count($ids);
$USE_LOCAL_FTP === TRUE ? $debug->add("Using Local FTP - 241") : $debug->add("Using Remote FTP - USA");
$debug->add("Preparing to process {$todo} contents...");
$i = 0;
$j = 0;
foreach ($ids as $id) {
    // borro work_dir
    $debug->add("Cleaning working dir {$work_dir}...");
    exec("rm -rf {$work_dir}/*");
예제 #2
0
// content id - vienen por get/post/whatever de la herramienta
//$ids = array();
//$ids = array(6995,6996,6997,6998,7000,7001,7003,7004,7005,7006,14791,14792,14796,14797,14798,14799,14800,14803,14802,14801,14804);
//$ids = array(14804);
$ids = $listaIds;
$work_dir = TMP_DIR_VD . "/" . $_SESSION["folder"];
$sessDir = $work_dir;
if (!file_exists($sessDir)) {
    exec("mkdir {$sessDir}");
}
$targetDir = $work_dir;
$USE_LOCAL_FTP = TRUE;
// includes
include_once $globalIncludeDir . "/classes/video.class.php";
kimport("kmail");
$debug = new kmail("TIGO.PY CONTENT VIDEO");
$debug->set_tracking();
$debug->set_logfile("logs/videos");
$debug->add("\n--------------------------------------------\nStarting...");
$oDbc = new konexion("Web");
$debug->add("oDbc: " . var_export($oDbc, TRUE));
$DEBUG_LVL = 2;
$todo = count($ids);
$USE_LOCAL_FTP === TRUE ? $debug->add("Using Local FTP - 241") : $debug->add("Using Remote FTP - USA");
$debug->add("Preparing to process {$todo} contents...");
// borro work_dir
$debug->add("Cleaning working dir {$work_dir}...");
exec("rm -rf {$work_dir}/*");
$i = 0;
$j = 0;
foreach ($ids as $id) {
예제 #3
0
<?php

// content id - vienen por get/post/whatever de la herramienta
//$ids =  array(27671,27666,18791,18792,18793,18794,18796,18797,27662,27660,27658,27656,27637,27636,27605,27604,27603,6251,6240,6703);
$ids = $listaIds;
$work_dir = TMP_DIR_WP;
$targetDir = $work_dir;
//$ids = array(22229);
$USE_LOCAL_FTP = TRUE;
// includes
include_once "classes/wallpaper.class.php";
kimport("kmail");
$debug = new kmail("TIGO.PY CONTENT WALLPAPER");
$debug->set_tracking();
$debug->set_logfile("logs/wallpapers");
$debug->add("\n--------------------------------------------\nStarting...");
$oDbc = new konexion("Web");
$debug->add("oDbc: " . var_export($oDbc, TRUE));
$DEBUG_LVL = 2;
$todo = count($ids);
$USE_LOCAL_FTP === TRUE ? $debug->add("Using Local FTP - 241") : $debug->add("Using Remote FTP - USA");
$debug->add("Preparing to process {$todo} contents...");
// borro work_dir
$debug->add("Cleaning working dir {$work_dir}...");
exec("rm -rf {$work_dir}/*");
$i = 0;
$j = 0;
foreach ($ids as $id) {
    $i++;
    $debug->add("******* Processing content #{$id}, {$i} of {$todo}...");
    $map = $xml_map["wallpaper_tpl"];
예제 #4
0
<?php

// content id - vienen por get/post/whatever de la herramienta
//$ids = array(6995,6996,6997,6998,7000,7001,7003,7004,7005,7006,14791,14792,14796,14797,14798,14799,14800,14803,14802,14801,14804);
// includes
include_once $globalIncludeDir . "/classes/truetone.class.php";
$USE_LOCAL_FTP = TRUE;
kimport("kmail");
$ids = $listaIds;
$work_dir = TMP_DIR_RT . "/" . $_SESSION["folder"];
$sessDir = $work_dir;
if (!file_exists($sessDir)) {
    exec("mkdir {$sessDir}");
}
$targetDir = $work_dir;
$debug = new kmail("TIGO.PY CONTENT MP3");
$debug->set_tracking();
$debug->set_logfile($globalIncludeDir . "/logs/mp3");
$debug->add("\n--------------------------------------------\nStarting...");
$oDbc = new konexion("Web");
$debug->add("oDbc: " . var_export($oDbc, TRUE));
$DEBUG_LVL = 2;
$todo = count($ids);
$USE_LOCAL_FTP === TRUE ? $debug->add("Using Local FTP - 241") : $debug->add("Using Remote FTP - USA");
$debug->add("Preparing to process {$todo} contents...");
// borro work_dir
$debug->add("Cleaning working dir {$work_dir}...");
exec("rm -rf {$work_dir}/*");
$i = 0;
$j = 0;
foreach ($ids as $id) {