Серверная часть системы создания и управления сайтами

Дипломная работа - Компьютеры, программирование

Другие дипломы по предмету Компьютеры, программирование



= default;$project_uid = $_POST [project_uid];

$page_uid = $_POST [page_uid];$stm->RemovePage ($project_uid, $page_uid, TRUE);

};

// Remove page draftpage_removedraft:

{(! isset ($_POST[project_uid])) $project_uid = default;$project_uid = $_POST [project_uid];

$page_uid = $_POST [page_uid];

$draft_uid = $_POST [draft_uid];$stm->RemoveDraft ($project_uid, $page_uid, $draft_uid, TRUE);

};

// Remove templatetemplate_remove:

{(! isset ($_POST[project_uid])) $project_uid = default;$project_uid = $_POST [project_uid];

$template_uid = $_POST [template_uid];$stm->RemoveTemplate ($project_uid, $template_uid);

};

// Get templatetemplate_get:

{(! isset ($_POST[project_uid])) $project_uid = default;$project_uid = $_POST [project_uid];

$template_uid = $_POST [template_uid];(! isset ($_POST[draft_uid])) $draft_uid = default;$draft_uid = $_POST [draft_uid];$stm->GetTemplate ($project_uid, $template_uid, $draft_uid);

};

// Get page draftpage_getdraft:

{(! isset ($_POST[project_uid])) $project_uid = default;$project_uid = $_POST [project_uid];

$page_uid = $_POST [page_uid];(! isset ($_POST[draft_uid])) $draft_uid = default;$draft_uid = $_POST [draft_uid];$stm->GetPageDraft ($project_uid, $page_uid, $draft_uid);

};

// Get pages info for MCCmcc_get_pages:

{(! isset ($_POST[project_uid])) $project_uid = default;$project_uid = $_POST [project_uid];$stm->MccGetPages ($project_uid);

};

// Get templates info for MCCmcc_get_templates:

{(! isset ($_POST[project_uid])) $project_uid = default;$project_uid = $_POST [project_uid];$stm->MccGetTemplates ($project_uid);

};

// Get common info for MCCmcc_get_status:

{(! isset ($_POST[project_uid])) $project_uid = default;$project_uid = $_POST [project_uid];$stm->MccGetStatus ($project_uid);

};

// Get resources info for MCC or Editorresources_get:

{(! isset ($_POST[project_uid])) $project_uid = default;$project_uid = $_POST [project_uid];

$usedin_type = FALSE;

$usedin_uid = FALSE;(isset ($_POST[usedin_type])) $usedin_type = $_POST [usedin_type];(isset ($_POST[usedin_uid])) $usedin_uid = $_POST [usedin_uid];$stm->GetResources ($project_uid, $usedin_type, $usedin_uid);

};

:

{Bad command.;

}

}

($stm);

$_POST = array();

?>

Приложение В

Исходный код автоматической системы тестирования (dummy.php)

<? php

_once (install.php);_once (../config.php);_once (lib/strbool.php);

$verbose = TRUE;

$step = 1;showdb()

{$verbose;(!$verbose) return;_once (dbm/dbm.php);$config_db_host, $config_db_user, $config_db_password, $config_db_name;

$dbm = new MysqlDbm ($config_db_host, $config_db_user, $config_db_password);

$dbm->SelectDatabase ($config_db_name);

$step;;

$res = $dbm->GetTable (array(pages));;($row = mysql_fetch_array ($res, MYSQL_NUM))

{(, $row[0], $row[1], $row[4]);

}

$res = $dbm->GetTable (array(templates));;($row = mysql_fetch_array ($res, MYSQL_NUM))

{(, $row[0], $row[1]);

}

$res = $dbm->GetTable (array(template_drafts));;($row = mysql_fetch_array ($res, MYSQL_NUM))

{(, $row[0], $row[1], $row[2]);

}

$res = $dbm->GetTable (array(page_drafts));;($row = mysql_fetch_array ($res, MYSQL_NUM))

{(, $row[0], $row[1], $row[7], $row[6]);

}

$res = $dbm->GetTable (array(resources));;($row = mysql_fetch_array ($res, MYSQL_NUM))

{(, $row[0], $row[1], $row[2]);

}($dbm);;

$step += 1;

}

showsteponly()

{$verbose;(!$verbose) return;$step;;

$step += 1;

}

();

$_POST[cmd] = project_add;(coordinator.php);();

$_POST[cmd] = template_add;

$_POST [template_uid] = Меню, содержимое 1, содежимое 2, копирайт;

$_POST [draft_uid] = default;

;(coordinator.php);();

$_POST[cmd] = page_add;

$_POST [page_uid] = О кроликах;

$_POST [template_uid] = Меню, содержимое 1, содежимое 2, копирайт;

// $_POST [draft_uid] = default;

$_POST [page_url] = bunnies;

$_POST [object_data] = ;

$_POST[published] = strbool:get_true();(coordinator.php);();

$_POST[cmd] = template_save;

$_POST [template_uid] = Меню, содержимое 1, содежимое 2, копирайт;

$_POST [object_data] = ;

require (coordinator.php);();

$_POST[cmd] = page_savedraft;

$_POST [page_uid] = О кроликах;

$_POST [template_uid] = Меню, содержимое 1, содежимое 2, копирайт;

$_POST [draft_uid] = default;

$_POST [page_url] = bunniesnew;

$_POST [object_data] = ;

$_POST[published] = strbool:get_true();(coordinator.php);();

////////////////////////////////////////

$_POST[cmd] = template_add;

$_POST [template_uid] = Содержимое и копирайт;

;(coordinator.php);();

$_POST[cmd] = page_add;

$_POST [page_uid] =