You are here

background_process.bootstrap.php in Background Process 7.2

File

background_process.bootstrap.php
View source
<?php

// Major security issue with unreliable data for require()!
define('DRUPAL_ROOT', base64_decode($_POST['DRUPAL_ROOT']));
chdir(DRUPAL_ROOT);
require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
require_once DRUPAL_ROOT . '/' . base64_decode($_POST['module']) . '/background_process.module';
$process = unserialize(base64_decode($_POST['process']));
drupal_bootstrap($process->callback_options['phase']);
$process
  ->execute();

Constants

Namesort descending Description
DRUPAL_ROOT