<?php if (!defined('IN_STDF')) { header("HTTP/1.0 404 Not Found"); exit; } require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/professions.php"; require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/portfolio.php"; $prfs = new professions(); $uid = $user->GetUid($err); $error .= $err; $profs = $prfs->GetSelProf($uid); $portf = new portfolio(); $prjs = $portf->GetPortf($uid); ?> <script language="JavaScript1.2" type="text/javascript"> <!-- prjprof_id = new Array(); prjname = new Array(); prjlink = new Array(); prjdescr = new Array(); prjid = new Array(); prof_ids = new Array(); profnames = new Array(); <?php $i = 0; if ($prjs) { foreach ($prjs as $prj) { print "prjprof_id[{$i}] = '" . $prj['prof_id'] . "';\nprjid[{$i}] = '" . $prj['id'] . "';\nprjname[{$i}] = '" . $prj['name'] . "';\nprjlink[{$i}] = '" . $prj['link'] . "';\nprjdescr[{$i}] = '" . $prj['descr'] . "';\n\n";
<?php if (!$_in_setup) { header('HTTP/1.0 403 Forbidden'); exit; } require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/professions.php'; require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/portfolio.php'; $prfs = new professions(); $profs = $prfs->GetSelProf(get_uid()); if (!$profs) { include 'portfolio_in_setup.php'; } else { $portf = new portfolio(); $prjs = $portf->GetPortf(get_uid()); ?> <script language="JavaScript1.2" type="text/javascript"> <!-- prjprof_id = new Array(); prjname = new Array(); prjlink = new Array(); prjdescr = new Array(); prjid = new Array(); prof_ids = new Array(); profnames = new Array(); <?php $i = 0; if ($prjs) { foreach ($prjs as $prj) {