コード例 #1
0
ファイル: catchError.php プロジェクト: awwthentic1234/hey
function myErrorHandler($errno, $errstr, $errfile, $errline)
{
    //--------------------------------------
    //init var
    //--------------------------------------
    global $arr;
    $chk = array("bool" => false);
    $error = array();
    //--------------------------------------
    $error['type'] = getErrorType($errno);
    $error['message'] = $errstr;
    $error['file'] = $errfile;
    $error['line'] = $errline;
    //--------------------------------------
    if (strpos($_SERVER['SCRIPT_FILENAME'], $_ENV['werm_root']) !== false) {
        if ($errno == E_WARNING && basename($_SERVER['SCRIPT_FILENAME']) != "service.ignore.php") {
            krumo($error);
            die;
        } else {
            if ($errno == E_WARNING) {
                array_push($arr, $error);
                $chk["error"] = $error;
                $chk = json_encode($chk);
                die($chk);
                //array_push($arr, $string);
            } else {
                array_push($arr, $error);
            }
        }
    }
    //--------------------------------------
    return true;
}
コード例 #2
0
ファイル: Metadata.php プロジェクト: awwthentic1234/hey
 function __construct($filename)
 {
     $size = getimagesize($filename, $info);
     krumo($size);
     $this->hasmeta = isset($info["APP13"]);
     if ($this->hasmeta) {
         $this->meta = iptcparse($info["APP13"]);
     }
     $this->file = $filename;
 }
コード例 #3
0
 function dpr($input)
 {
     if (function_exists('krumo')) {
         krumo($input);
     } else {
         print '<br /><pre>';
         print_r($input);
         print '<br /></pre>';
     }
 }
コード例 #4
0
ファイル: Krumo.php プロジェクト: ninodafonte/SIFO
/**
 * Alias of krumo::dump(). Formatted data dump. No output in production.
 * You need to download Krumo into "libs" first and declare it in "libraries.config.php"
 *
 * @param mixed $data,...
 */
function d($var)
{
    // Enable Krumo only when debug is present.
    if (\Sifo\Domains::getInstance()->getDebugMode()) {
        require_once ROOT_PATH . '/libs/' . \Sifo\Config::getInstance()->getLibrary('krumo') . '/class.krumo.php';
        krumo($var);
    } else {
        return false;
    }
}
コード例 #5
0
 function debug_url($return = FALSE)
 {
     if ($return) {
         return $this->build_url();
     }
     if (function_exists('dpm') && function_exists('krumo')) {
         dpm($this->build_url());
     } elseif (function_exists('krumo')) {
         krumo($this->build_url());
     } else {
         print '<pre>' . $this->build_url() . '</pre>';
     }
 }
コード例 #6
0
 public function availableKitchens($userID)
 {
     /*
      * Returns an array of IDs of kitchens that the user has access to.
      */
     $query = $this->em->createQuery('SELECT K.id
       FROM AppBundle:Kitchen K
       INNER JOIN AppBundle:KitchenUser KU WITH KU.kitchenID=K.id
       WHERE KU.userID=:userID')->setParameters(['userID' => $userID]);
     $kitchens = $query->getResult();
     require_once 'krumo/class.krumo.php';
     krumo($kitchens);
     exit;
     return $kitchens;
 }
コード例 #7
0
 public function testFormSubmit()
 {
     $new_field = magic_form_field_text::factory($this->input_default_name, $this->input_default_label);
     $this->magic_form->add_field($new_field);
     $this->magic_form->add_field(magic_form_field_submit::factory('submit', 'Submit'));
     // This is our submit handler.
     $this->magic_form->submit(function (magic_form $form) {
         require_once drupal_get_path("module", "devel") . "/krumo/class.krumo.php";
         krumo($form->get_fields());
         drupal_set_message("Submit happened in form {$form->magic_form_id} / {$form->form_id}");
     });
     $html = $this->magic_form->__toString();
     //Get HTML Dom
     $dom = str_get_html($html);
     $form = $dom->find("//form")[0];
     //Find Submit Button
     $test_submit_button = $form->find("button[name=submit]")[0];
     //Check Submit Button
     $this->assertEquals("submit", $test_submit_button->attr['id'], "Check ID Submit");
     $this->assertEquals("submit", $test_submit_button->attr['name'], "Check Name Submit");
 }
コード例 #8
0
ファイル: BannerHub.php プロジェクト: awwthentic1234/hey
 public function codiad_CFG($hash)
 {
     $dir_relative = GlobalMas::$filesPath_relative . $hash . "/";
     $dir = GlobalMas::$filesPath_absolute . $hash . "/";
     //-----------------------------------------------------
     if (!file_exists($dir . "codiad")) {
         Archive::extract(GlobalMas::$filesPath_absolute . "/codiad.zip", $dir);
         //-----------------------------------------------------
         $config_contents = FileFolder::file_get_contents($dir . "codiad/config.php");
         $config_contents = str_replace("{BASE_PATH}", $dir . "codiad", $config_contents);
         $config_contents = str_replace("{BASE_URL}", GenFun::get_full_url($dir . "codiad"), $config_contents);
         FileFolder::file_put_contents($dir . "codiad/config.php", $config_contents);
         //---------------------------------------------------------
         exec("ln -s " . $dir . "compile " . $dir . "codiad/workspace/compile" . " 2>&1", $output);
         exec("ln -s " . $dir . " " . $dir . "codiad/workspace/root" . " 2>&1", $output);
         //---------------------------------------------------------
         if (strpos(join($output), "Errno::") !== false) {
             krumo($output);
             die;
         }
     }
 }
コード例 #9
0
ファイル: AppHistory.php プロジェクト: nshong/processmaker
 function insertHistory($aData)
 {
     $this->setAppUid($aData['APP_UID']);
     $this->setDelIndex($aData['DEL_INDEX']);
     $this->setProUid($aData['PRO_UID']);
     $this->setTasUid($aData['TAS_UID']);
     $this->setDynUid($aData['CURRENT_DYNAFORM']);
     $this->setUsrUid($aData['USER_UID']);
     $this->setAppStatus($aData['APP_STATUS']);
     $this->setHistoryDate($aData['APP_UPDATE_DATE']);
     $this->setHistoryData($aData['APP_DATA']);
     if ($this->validate()) {
         $res = $this->save();
     } else {
         // Something went wrong. We can now get the validationFailures and handle them.
         $msg = '';
         $validationFailuresArray = $this->getValidationFailures();
         foreach ($validationFailuresArray as $objValidationFailure) {
             $msg .= $objValidationFailure->getMessage() . "<br/>";
         }
         krumo($msg);
         //return array ( 'codError' => -100, 'rowsAffected' => 0, 'message' => $msg );
     }
 }
コード例 #10
0
 function getNextAssignedUser($tasInfo)
 {
     $oUser = new Users();
     $nextAssignedTask = $tasInfo['NEXT_TASK'];
     $lastAssigned = $tasInfo['NEXT_TASK']['TAS_LAST_ASSIGNED'];
     $sTasUid = $tasInfo['NEXT_TASK']['TAS_UID'];
     // to do: we can increase the LOCATION by COUNTRY, STATE and LOCATION
     /* Verify if the next Task is set with the option "TAS_ASSIGN_LOCATION == TRUE" */
     $assignLocation = '';
     if ($tasInfo['NEXT_TASK']['TAS_ASSIGN_LOCATION'] == 'TRUE') {
         $oUser->load($tasInfo['USER_UID']);
         krumo($oUser->getUsrLocation());
         //to do: assign for location
         //$assignLocation = " AND USR_LOCATION = " . $oUser->Fields['USR_LOCATION'];
     }
     /* End - Verify if the next Task is set with the option "TAS_ASSIGN_LOCATION == TRUE" */
     $uidUser = '';
     switch ($nextAssignedTask['TAS_ASSIGN_TYPE']) {
         case 'BALANCED':
             $users = $this->getAllUsersFromAnyTask($sTasUid);
             if (is_array($users) && count($users) > 0) {
                 //to do apply any filter like LOCATION assignment
                 $uidUser = $users[0];
                 $i = count($users) - 1;
                 while ($i > 0) {
                     if ($lastAssigned < $users[$i]) {
                         $uidUser = $users[$i];
                     }
                     $i--;
                 }
             } else {
                 throw new Exception(G::LoadTranslation('ID_NO_USERS'));
             }
             $userFields = $this->getUsersFullNameFromArray($uidUser);
             break;
         case 'STATIC_MI':
         case 'CANCEL_MI':
         case 'MANUAL':
             $users = $this->getAllUsersFromAnyTask($sTasUid);
             $userFields = $this->getUsersFullNameFromArray($users);
             break;
         case 'EVALUATE':
             $AppFields = $this->case->loadCase($tasInfo['APP_UID']);
             $variable = str_replace('@@', '', $nextAssignedTask['TAS_ASSIGN_VARIABLE']);
             if (isset($AppFields['APP_DATA'][$variable])) {
                 if ($AppFields['APP_DATA'][$variable] != '') {
                     $value = $AppFields['APP_DATA'][$variable];
                     $userFields = $this->getUsersFullNameFromArray($value);
                     if (is_null($userFields)) {
                         throw new Exception("Task doesn't have a valid user in variable {$variable}.");
                     }
                 } else {
                     throw new Exception("Task doesn't have a valid user in variable {$variable}.");
                 }
             } else {
                 throw new Exception("Task doesn't have a valid user in variable {$variable} or this variable doesn't exist.");
             }
             break;
         case 'REPORT_TO':
             //default error user when the reportsTo is not assigned to that user
             //look for USR_REPORTS_TO to this user
             $userFields['USR_UID'] = '';
             $userFields['USR_FULLNAME'] = 'Current user does not have a valid Reports To user';
             $userFields['USR_USERNAME'] = '******';
             $userFields['USR_FIRSTNAME'] = '';
             $userFields['USR_LASTNAME'] = '';
             $userFields['USR_EMAIL'] = '';
             //get the report_to user & its full info
             $useruid = $this->getDenpendentUser($tasInfo['USER_UID']);
             if (isset($useruid) && $useruid != '') {
                 $userFields = $this->getUsersFullNameFromArray($useruid);
             }
             // if there is no report_to user info, throw an exception indicating this
             if (!isset($userFields) || $userFields['USR_UID'] == '') {
                 throw new Exception(G::LoadTranslation('ID_MSJ_REPORSTO'));
                 // "The current user does not have a valid Reports To user.  Please contact administrator.") ) ;
             }
             break;
         case 'SELF_SERVICE':
             //look for USR_REPORTS_TO to this user
             $userFields['USR_UID'] = '';
             $userFields['USR_FULLNAME'] = '<b>' . G::LoadTranslation('ID_UNASSIGNED') . '</b>';
             $userFields['USR_USERNAME'] = '******' . G::LoadTranslation('ID_UNASSIGNED') . '</b>';
             $userFields['USR_FIRSTNAME'] = '';
             $userFields['USR_LASTNAME'] = '';
             $userFields['USR_EMAIL'] = '';
             break;
         default:
             throw new Exception('Invalid Task Assignment method for Next Task ');
     }
     return $userFields;
 }
コード例 #11
0
ファイル: ting_collection.tpl.php プロジェクト: beltofte/ding
<?php

krumo($collection);
コード例 #12
0
ファイル: jasper.php プロジェクト: nshong/processmaker
<?php

G::LoadClass('jasperReports');
$oJasper = new jasperReports('192.168.0.51', 8080, 'jasperadmin', 'jasperadmin');
$response = $oJasper->ws_list("/");
if (is_object($response) && get_class($response) == 'SOAP_Fault') {
    $errorMessage = $response->getFault()->faultstring;
} else {
    $folders = $oJasper->getResourceDescriptors($response);
}
//$result = $oJasper->ws_put();
krumo($response);
//execute a report
$currentUri = "/reports/samples/Employees";
$result = $oJasper->ws_get($currentUri);
$folders = $oJasper->getResourceDescriptors($result);
if (count($folders) != 1 || $folders[0]['type'] != 'reportUnit') {
    echo "<H1>Invalid RU ({$currentUri})</H1>";
    echo "<pre>{$result}</pre>";
    exit;
}
$reportUnit = $folders[0];
// 2. Prepare the parameters array looking in the $_GET for params
// starting with PARAM_ ...
//
$report_params = array();
$moveToPage = "jasper?uri={$currentUri}";
foreach (array_keys($_GET) as $param_name) {
    if (strncmp("PARAM_", $param_name, 6) == 0) {
        $report_params[substr($param_name, 6)] = $_GET[$param_name];
    }
コード例 #13
0
ファイル: class.system.php プロジェクト: bqevin/processmaker
 /**
  * This function creates a directory
  *
  *
  * @name pm_copy
  *
  * @param string $source
  * @param string $target
  * @return void
  */
 public function pm_copy($source, $target)
 {
     if (!is_dir(dirname($target))) {
         G::mk_dir(dirname($target));
     }
     if (!copy($source, $target)) {
         krumo($source);
         krumo($target);
     }
 }
コード例 #14
0
ファイル: confirmation.php プロジェクト: awwthentic1234/hey
//------------------------------------------------------------------------
//php imports
//------------------------------------------------------------------------
//------------------------------------------------------------------------
require_once 'Import.php';
require_once Import::$uber_src_path . "server/werm/services/Account_v0.php";
require_once Import::$uber_src_path . "server/kaloyan/class.krumo.php";
//------------------------------------------------------------------------
Trace::$html = true;
//------------------------------------------------------------------------
$account = new Account_v0();
Trace::register($account, "account");
$account->tblName = Accounts_const::TBL;
$chk = $account->confirm($_GET['hash'], Accounts_const::TBL);
$chk['output'] = Trace::$output;
krumo($chk);
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html> 
<!--===================================================================-->
<!--===================================================================-->
<!--header-->
<!--===================================================================-->
<!--===================================================================-->
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   <title>Confirmation</title>
   <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;"> 
</head>
コード例 #15
0
ファイル: _drawrating.php プロジェクト: holandacz/nb4
function rating_bar($id, $units = '', $static = '')
{
    global $vbulletin;
    $rating_unitwidth = 30;
    require_once './global.php';
    include_once './includes/krumo/class.krumo.php';
    //set some variables
    $userid = $vbulletin->userinfo['userid'];
    if (!$units) {
        $units = 10;
    }
    if (!$static) {
        $static = FALSE;
    }
    // get votes, values, ips for the current rating bar
    $query = $vbulletin->db->query_read("SELECT total_votes, total_value, userids FROM " . TABLE_PREFIX . "goldbrick_rating WHERE id='{$id}' ") or die(" Error: " . mysql_error());
    // insert the id in the DB if it doesn't exist already
    // see: http://www.masugadesign.com/the-lab/scripts/unobtrusive-ajax-star-rating-bar/#comment-121
    if (mysql_num_rows($query) == 0) {
        $sql = "INSERT INTO " . TABLE_PREFIX . "goldbrick_rating (`id`,`total_votes`, `total_value`, `userids`) VALUES ('{$id}', '0', '0', '')";
        $result = $vbulletin->db->query_read($sql);
    }
    $numbers = $vbulletin->db->fetch_array($query);
    if ($numbers['total_votes'] < 1) {
        $count = 0;
    } else {
        $count = $numbers['total_votes'];
        //how many votes total
    }
    $current_rating = $numbers['total_value'];
    //total number of rating added together and stored
    $tense = $count == 1 ? "vote" : "votes";
    //plural form votes/vote
    // determine whether the user has voted, so we know how to draw the ul/li
    $voted = mysql_num_rows($vbulletin->db->query_read("SELECT userids FROM " . TABLE_PREFIX . "goldbrick_rating WHERE userids={$userid} AND id={$id}"));
    // now draw the rating bar
    $rating_width = @number_format($current_rating / $count, 2) * $rating_unitwidth;
    $rating1 = @number_format($current_rating / $count, 1);
    $rating2 = @number_format($current_rating / $count, 2);
    krumo(array_keys(get_defined_vars()), $id, $units, $static, $vbulletin, $userid, $query, $numbers, $sql, $result, $rating1, $tense, $current_rating, $voted);
    if ($static == 'static') {
        $static_rater = array();
        $static_rater[] .= "\n" . '<div class="ratingblock">';
        $static_rater[] .= '<div id="unit_long' . $id . '">';
        $static_rater[] .= '<ul id="unit_ul' . $id . '" class="unit-rating" style="width:' . $rating_unitwidth * $units . 'px;">';
        $static_rater[] .= '<li class="current-rating" style="width:' . $rating_width . 'px;">Currently ' . $rating2 . '/' . $units . '</li>';
        $static_rater[] .= '</ul>';
        $static_rater[] .= '<p class="static">' . $id . '. Rating: <strong> ' . $rating1 . '</strong>/' . $units . ' (' . $count . ' ' . $tense . ' cast) <em>This is \'static\'.</em></p>';
        $static_rater[] .= '</div>';
        $static_rater[] .= '</div>' . "\n\n";
        return join("\n", $static_rater);
    } else {
        $rater = '';
        $rater .= '<div class="ratingblock">';
        $rater .= '<div id="unit_long' . $id . '">';
        $rater .= '  <ul id="unit_ul' . $id . '" class="unit-rating" style="width:' . $rating_unitwidth * $units . 'px;">';
        $rater .= '     <li class="current-rating" style="width:' . $rating_width . 'px;">Currently ' . $rating2 . '/' . $units . '</li>';
        for ($ncount = 1; $ncount <= $units; $ncount++) {
            // loop from 1 to the number of units
            if (!$voted) {
                // if the user hasn't yet voted, draw the voting stars
                $rater .= '<li><a href="goldbrick/db.php?j=' . $ncount . '&amp;q=' . $id . '&amp;t=' . $userid . '&amp;c=' . $units . '" title="' . $ncount . ' out of ' . $units . '" class="r' . $ncount . '-unit rater" rel="nofollow">' . $ncount . '</a></li>';
            }
        }
        $ncount = 0;
        // resets the count
        $rater .= '  </ul>';
        $rater .= '  <p';
        if ($voted) {
            $rater .= ' class="voted"';
        }
        $rater .= '>' . $id . ' Rating: <strong> ' . $rating1 . '</strong>/' . $units . ' (' . $count . ' ' . $tense . ' cast)';
        $rater .= '  </p>';
        $rater .= '</div>';
        $rater .= '</div>';
        return $rater;
    }
}
コード例 #16
0
ファイル: Client.php プロジェクト: hshoghi/cms
 /**
  * Makes the request to the API via cURL and the arguments given
  * @param   string  $url
  * @param   array   $post
  * @param   array   $extra  extra curloptions, so far only HTTPHEADER supported
  * @return  \stdClass
  */
 protected function makeRequest($url, $post = array(), $opts = array())
 {
     global $vfolder_path;
     //d($url, $post, $opts);
     if ($post == "v2") {
         $config = $opts['config'];
         if ($config['crop'] === false) {
             $config['crop'] = 0;
         }
         if ($config['resize'] === false) {
             $config['resize'] = 0;
         }
         //$params = $opts['venue_ide'] ."/".$opts['filename']."/".implode("/",$config)."/".$opts['type']."/".$opts['flyer_type'];
         //d($config, $params);
         //$url = $vfolder_path."/v3/items/".$params."?oauth_token=mytoken";
         $url = $vfolder_path . "/v3/items/get/?oauth_token=mytoken";
         //$url = "http://localdev.vfolder.com/v3/items/".$params."?oauth_token=mytoken";
     } else {
         $url = $this->getRequestUrl($url);
     }
     $curl = curl_init($url);
     //d($curl);
     if ($opts['HTTPHEADER']) {
         if (!curl_setopt($curl, CURLOPT_HTTPHEADER, $opts['HTTPHEADER'])) {
             static::handleCurlError($curl, 'CURLOPT_HTTPHEADER');
         }
     }
     if ($post == "v2") {
         $v2post['method'] = "item";
         $v2post['ide'] = $opts['ide'];
         $v2post['filename'] = $opts['filename'];
         $v2post['config'] = json_encode($config);
         $v2post['type'] = $opts['type'];
         $v2post['flyer_type'] = $opts['flyer_type'];
         $v2post['folder'] = $opts['folder'];
     }
     $curl_timeout = 100;
     if ($_GET['curl_timeout']) {
         $curl_timeout = $_GET['curl_timeout'];
     }
     // make sure these ints are defined
     // you need curl version 7.16.2 for this to work:
     // define('CURLOPT_TIMEOUT_MS', 155);
     // define('CURLOPT_CONNECTTIMEOUT_MS', 156);
     if (!curl_setopt($curl, CURLOPT_TIMEOUT, $curl_timeout)) {
         static::handleCurlError($curl, 'CURLOPT_TIMEOUT');
     }
     if (!curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, $curl_timeout)) {
         static::handleCurlError($curl, 'CURLOPT_CONNECTTIMEOUT');
     }
     if (!curl_setopt($curl, CURLOPT_POST, true)) {
         static::handleCurlError($curl, 'CURLOPT_POST');
     }
     if ($post == "v2") {
         if (!curl_setopt($curl, CURLOPT_POSTFIELDS, $v2post)) {
             static::handleCurlError($curl, 'CURLOPT_POSTFIELDS');
         }
     } else {
         if (!curl_setopt($curl, CURLOPT_POSTFIELDS, $post)) {
             static::handleCurlError($curl, 'CURLOPT_POSTFIELDS');
         }
     }
     if (!curl_setopt($curl, CURLOPT_RETURNTRANSFER, true)) {
         static::handleCurlError($curl, 'CURLOPT_RETURNTRANSFER');
     }
     $name = '\\VF\\Client::makeRequest: ' . $url;
     elapsed('begin ' . $name);
     if ($_GET['vf_debug']) {
         echo $url . '<br />POST:';
         krumo($post);
     }
     $response = curl_exec($curl);
     elapsed('end ' . $name);
     $error = curl_error($curl);
     //d($response, $error);
     curl_close($curl);
     if ($error) {
         // there was a curl transmission error
         return (object) array('request' => array('url' => $url, 'post' => $post), 'errors' => array($error));
     }
     $data = json_decode($response);
     if (!$data) {
         // the server did not respond with valid json
         // return the unformatted output as an error
         // there was a curl transmission error
         $data = (object) array('request' => array('url' => $url, 'post' => $post), 'errors' => array($response));
     }
     if ($_GET['vf_debug']) {
         echo 'response:<br />';
         krumo($data);
         echo '<br />';
     }
     //d($data);
     return $data;
 }
コード例 #17
0
    echo '<h3>RELATED CONTENT: Submitting to ' . get_class($content_api) . '...</h3>';
    echo '<p style="font-style:italic">API URL: ' . $content_api->getURL() . '</p>';
    echo '<p>API Arguments:</p><pre>';
    print_r($content_api->getArgs());
    echo '</pre>';
    $content_api->query();
    $time_end = microtime(true);
    $time = $time_end - $time_start;
    $curl_info = $content_api->getCurlInfo();
    echo '<p style="font-weight:bold">Raw Result (HTTP code: ' . $curl_info['http_code'] . '):</p>';
    echo '<pre>';
    echo 'Query: ' . $curl_info['url'];
    echo '</pre>';
    krumo($content_api->getRawResult());
    echo '<p style="font-weight:bold">Parsed Result:</p>';
    krumo($content_api->getData());
    echo '<p style="font-weight:bold">RELATED CONTENT:</p>';
    $related = $content_api->getRelated();
    foreach ($related as $r) {
        echo '<p>';
        echo 'Name: <a href="' . $r['url'] . '" target="_blank">' . $r['title'] . '</a> [score: ' . $r['score'] . ']<br />';
        echo 'Publish Date: ' . $r['date'] . '<br />';
        echo 'Description: ' . $r['descr'] . '<br />';
        echo 'Source: ' . $r['source'] . '<br />';
        echo '</p>';
    }
    echo "<p>Query took {$time} seconds</p>";
    echo '<hr />';
}
?>
コード例 #18
0
<?php

require_once $_SERVER["DOCUMENT_ROOT"] . '/bitrix/modules/main/include/prolog_admin_before.php';
require_once $_SERVER["DOCUMENT_ROOT"] . '/bitrix/modules/ibulkapi/prolog.php';
require_once $_SERVER["DOCUMENT_ROOT"] . '/bitrix/modules/main/include/prolog_admin_after.php';
IncludeModuleLangFile(__FILE__);
$APPLICATION->SetTitle(GetMessage('PAGE_TITLE'));
$APPLICATION->SetAdditionalCSS('/bitrix/js/ibulkapi/ibulkapi_manager.css');
if (!CModule::IncludeModule('iblock')) {
    die;
}
if (!CModule::IncludeModule('ibulkapi')) {
    die;
}
$arkActions = CIBulkAPI::GetActions();
$current_action = $arkActions[filter_input(INPUT_GET, 'id', FILTER_SANITIZE_STRING)];
$aTabs = array(array('DIV' => 'tab1', 'TAB' => GetMessage('ACTIONS_SETTINGS_NAME'), 'ICON' => '', 'TITLE' => GetMessage('ACTIONS_SETTINGS_TITLE')));
$tabControl = new CAdminTabControl("tabControl", $aTabs);
$tabControl->Begin();
$tabControl->BeginNextTab();
$action_instance = new $current_action['class']();
$form = $action_instance->GetParams();
krumo($form);
IBulkAPIRenderEngine::Render('actions-settings', array('form' => $form));
$tabControl->EndTab();
$tabControl->End();
require $_SERVER["DOCUMENT_ROOT"] . '/bitrix/modules/main/include/epilog_admin.php';
コード例 #19
0
ファイル: users_View.php プロジェクト: nshong/processmaker
    $oUser = new Users();
    $aFields = $oUser->load($_GET['USR_UID']);
    $aFields['USR_PASSWORD'] = '******';
    $aFields['MESSAGE0'] = str_replace("\r\n", "<br>", G::LoadTranslation('ID_USER_REGISTERED')) . '!';
    $aFields['MESSAGE1'] = str_replace("\r\n", "<br>", G::LoadTranslation('ID_MSG_ERROR_USR_USERNAME'));
    $aFields['MESSAGE2'] = str_replace("\r\n", "<br>", G::LoadTranslation('ID_MSG_ERROR_DUE_DATE'));
    $aFields['MESSAGE3'] = str_replace("\r\n", "<br>", G::LoadTranslation('ID_NEW_PASS_SAME_OLD_PASS'));
    $aFields['MESSAGE4'] = str_replace("\r\n", "<br>", G::LoadTranslation('ID_MSG_ERROR_USR_FIRSTNAME'));
    $aFields['MESSAGE5'] = str_replace("\r\n", "<br>", G::LoadTranslation('ID_MSG_ERROR_USR_LASTNAME'));
    $aFields['NO_RESUME'] = G::LoadTranslation('ID_NO_RESUME');
    $aFields['START_DATE'] = date('Y-m-d');
    $aFields['END_DATE'] = date('Y-m-d', mktime(0, 0, 0, date('m'), date('d'), date('Y') + 5));
    $aFields['RANDOM'] = rand();
    $G_MAIN_MENU = 'processmaker';
    $G_ID_MENU_SELECTED = 'USERS';
    $G_PUBLISH = new Publisher();
    $G_PUBLISH->AddContent('xmlform', 'xmlform', 'users/users_View.xml', '', $aFields);
    krumo($_SESSION);
    if ($_GET['USR_UID'] == '00000000000000000000000000000001') {
        //$G_PUBLISH->AddContent('xmlform', 'xmlform', 'users/users_ViewAdmin.xml', '', $aFields);
        // administrator due date must have a longer range
        $aFields['END_DATE'] = date('Y-m-d', mktime(0, 0, 0, date('m'), date('d'), date('Y') + 10));
        krumo("asdasd");
        $G_PUBLISH->AddContent('xmlform', 'xmlform', 'users/users_EditAdmin.xml', 'display:none', $aFields, 'users_Save?USR_UID=' . $_SESSION['CURRENT_USER']);
    } else {
        $G_PUBLISH->AddContent('xmlform', 'xmlform', 'users/users_Edit.xml', 'display:none', $aFields, 'users_Save?USR_UID=' . $_SESSION['CURRENT_USER']);
    }
    G::RenderPage('publish');
} catch (Exception $oException) {
    die($oException->getMessage());
}
コード例 #20
0
ファイル: object.php プロジェクト: awwthentic1234/hey
<?php

require '../../class.krumo.php';
$obj = (object) array('a' => array('b' => array('c' => array('d' => array('e' => null)))));
krumo($obj);
コード例 #21
0
 * - $css_name: A css-safe version of the view name.
 * - $css_class: The user-specified classes names, if any
 * - $header: The view header
 * - $footer: The view footer
 * - $rows: The results of the view query, if any
 * - $empty: The empty text to display if the view is empty
 * - $pager: The pager next/prev links to display, if any
 * - $exposed: Exposed widget form/info to display
 * - $feed_icon: Feed icon to display, if any
 * - $more: A link to view more, if any
 * - $admin_links: A rendered list of administrative links
 * - $admin_links_raw: A list of administrative links suitable for theme('links')
 *
 * @ingroup views_templates
 */
krumo($rows);
?>
<div class="<?php 
print $classes;
?>
">
  <?php 
if ($admin_links) {
    ?>
    <?php 
    print $admin_links;
    ?>
  <?php 
}
?>
  <?php 
コード例 #22
0
 /**
  * Excecutes select query
  * Returns an array of [int]
  * @param   array   $arr
  * @return  array
  */
 public function select($arr = array())
 {
     $this->setParams($arr)->prepare();
     if ($_GET['getList_debug']) {
         krumo($this);
     }
     $r = sql($this->query_sql);
     $ids = array();
     while (!$r->EOF) {
         $ids[] = $r->Fields('id');
         $r->moveNext();
     }
     return $ids;
 }
コード例 #23
0
ファイル: ting_object.tpl.php プロジェクト: beltofte/ding
<?php

krumo($object);
コード例 #24
0
ファイル: ibulkapiaction.php プロジェクト: ASDAFF/bx-ibulkapi
 public function GetParams()
 {
     krumo(1);
     return array_merge(parent::GetParams(), array('worker_tests' => array('#type' => 'text', '#class' => 'intval', '#default_value' => '22', '#title' => GetMessage('WORKER_TESTS_LABEL'))));
 }
コード例 #25
0
ファイル: Propel.php プロジェクト: bqevin/processmaker
 /**
  * configure propel
  *
  * @param      string $config Path (absolute or relative to include_path) to config file.
  * @return     void
  * @throws     PropelException If configuration file cannot be opened. (E_WARNING probably will also be raised in PHP)
  */
 public static function krumo()
 {
     krumo(self::$configuration);
 }
コード例 #26
0
<?php

require '../../class.krumo.php';
class A
{
    public $b;
    public $c;
}
$x = new A();
$x->b = new A();
$x->b->b = new A();
$x->b->c = new A();
$x->b->c->b = new A();
krumo($x);
コード例 #27
0
    print '<div class="breadcrumb-list"><div itemtype="http://data-vocabulary.org/Breadcrumb" itemscope="" class="breadcrumb-item"><span itemprop="title"><a href="/' . $url . '" itemprop="url">' . $term->name . '</a></span></div></div>';
}
?>


<!-- 
*
**
***		END MODIFICATIONS REQUIRED FOR EVENT TAXONOMY TERM PAGES
**
*
-->


<?php 
krumo(get_defined_vars());
?>





<?php 
if (isset($entity->field_section_new[$entity->language])) {
    ?>
   
   <?php 
    $terms = array();
    ?>
   <?php 
    foreach ($entity->field_section_new[$entity->language] as $tid) {
コード例 #28
0
ファイル: demoSoap.php プロジェクト: bqevin/processmaker
            $params = array($session, 'Leads', $query, $orderby, 0, $fields, 100, false);
            $res = $client->__SoapCall('get_entry_list', $params);
            krumo($res);
        }
        break;
    case 'processList':
        $wsdl = PATH_METHODS . "services" . PATH_SEP . "pmos.wsdl";
        $endpoint = $wsdl;
        $client = new SoapClient($endpoint);
        $params = array('sessionId' => $sessionId);
        $result = $client->__SoapCall('processesList', array($params));
        krumo($result);
        die;
        break;
    default:
        krumo($_POST);
        die;
}
?>
<div class="krumo-root">
	<ul class="krumo-node krumo-first">
		<li class="krumo-child">
			<div class="krumo-element">
				status_code (<em class="krumo-type">Integer</em>) <strong
					class="krumo-integer"><?php 
echo $result->error->number;
?>
</strong>
			</div>
			<div class="krumo-element">
				message (<em class="krumo-type">string</em>) <strong
コード例 #29
0
ファイル: Compile.php プロジェクト: awwthentic1234/hey
 public function start()
 {
     if (is_null($this->folderName)) {
         if (isset($_GET['pageID'])) {
             $this->folderName = $_GET['pageID'];
         }
     }
     //---------------------------------------------------------
     $folderName = Compile::$minifiedPath;
     //---------------------------------------------------------
     $GET = array_merge($_GET, array());
     //---------------------------------------------------------
     unset($GET["pageID"]);
     //---------------------------------------------------------
     //$GET["compile"]=0;
     //$GET['print_cookie'] = 1;
     unset($GET['refresh']);
     $_COOKIE['compile_curl'] = 1;
     //---------------------------------------------------------
     $this->url .= "?" . http_build_query($GET);
     //---------------------------------------------------------
     if (is_null($folderName) && FileFolder::getFileName($this->url) != "") {
         $folderName = explode("/", $this->url);
         end($folderName);
         $folderName = prev($folderName);
     }
     //---------------------------------------------------------
     $this->fileCss = Compile::$minifiedPath . "global/css/" . $this->folderName . "/min.css";
     $this->fileJs = Compile::$minifiedPath . "global/js/" . $this->folderName . "/min.js";
     $this->fileTmpl = Compile::$minifiedPath . $this->folderName . "/min.php";
     //---------------------------------------------------------
     $this->fileCssAb = GenFun::get_full_url($this->fileCss);
     $this->fileJsAb = GenFun::get_full_url($this->fileJs);
     //---------------------------------------------------------
     FileFolder::createFolderStructure($this->fileCss);
     //---------------------------------------------------------
     FileFolder::folderCopy(Import::getImportPath(), Compile::$minifiedPath);
     FileFolder::folderCopy(Import::getImportPath(), Compile::$unminifiedPath);
     //---------------------------------------------------------
     $this->content = CurlUtil::go(array("url" => $this->url));
     //---------------------------------------------------------
     preg_match_all('/Fatal error(.*?)<br \\/>/s', $this->content, $errors);
     //---------------------------------------------------------
     if (sizeof($errors[0]) > 0) {
         krumo($errors[0]);
         die;
     }
     //---------------------------------------------------------
     $this->content = $this->css_CFG();
     $this->script_CFG();
     $this->content = str_replace("<head>", '<head><script type="text/javascript" src="' . $this->fileJsAb . '"></script>' . PHP_EOL, $this->content);
     $this->content = str_replace("<head>", '<head><link rel="stylesheet" type="text/css" href="' . $this->fileCssAb . '"/>' . PHP_EOL, $this->content);
     $this->content = str_replace("<head>", '<head>' . PHP_EOL . file_get_contents($this->fileTmpl), $this->content);
     //---------------------------------------------------------
     $this->project = str_replace("<head>", '<head>' . PHP_EOL . file_get_contents($this->fileTmpl), $this->project);
     //---------------------------------------------------------
     FileFolder::delete($this->fileTmpl);
     //---------------------------------------------------------
     $this->project = StringUtil::removeWhiteLines($this->project);
     //---------------------------------------------------------
     file_put_contents(Import::getImportPath() . "project/index.php", $this->project);
     //---------------------------------------------------------
     $this->content = StringUtil::removeWhiteLines($this->content);
     FileFolder::file_put_contents(Compile::$minifiedPath . "index.php", $this->content);
     //---------------------------------------------------------
     return $this->content;
 }
コード例 #30
0
ファイル: NewFiles.php プロジェクト: awwthentic1234/hey
 private function _insertContents($dirArray, $close = FALSE)
 {
     Trace::output($this->traceID, "_insertContents");
     //----------------------------------------------------------
     //init var
     //----------------------------------------------------------
     $i;
     $queryString = "";
     $chk = array("bool" => true, 'function' => "_insertContents");
     //----------------------------------------------------------
     for ($i = 0; $i < sizeof($dirArray); $i++) {
         $queryString .= 'CALL insertVideo("' . $dirArray[$i]['title'] . '","' . $dirArray[$i]['hash'] . '","' . $dirArray[$i]['mp4'] . '","' . $dirArray[$i]['thumbnail_url'] . '"); ';
     }
     //----------------------------------------------------------
     $chk = Result::go($queryString);
     krumo($chk);
     //----------------------------------------------------------
     return Constants::$mysqli->escape_string($queryString);
 }