当前位置: 首页>>代码示例>>PHP>>正文


PHP getTranslation函数代码示例

本文整理汇总了PHP中getTranslation函数的典型用法代码示例。如果您正苦于以下问题:PHP getTranslation函数的具体用法?PHP getTranslation怎么用?PHP getTranslation使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了getTranslation函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: create_filtering_toc

function create_filtering_toc($exp)
{
    global $settings;
    $retval = "<ul>";
    foreach ($exp->obj_match_entries as $ome) {
        if (isset($ome->obj_expression)) {
            $notesection = "";
            if (isset($ome->obj_expression->obj_match_customs["-1.notesection"])) {
                $notesection = $ome->obj_expression->obj_match_customs["-1.notesection"]->value;
            }
            $is_link = true;
            if (strlen($notesection) == 0) {
                $notesection = getTranslation("(blank)", $settings);
                $is_link = false;
            }
            $is_link = true;
            if ($is_link) {
                $retval .= "<a href='#" . $ome->obj_expression->id . "_-1.notesection'>";
            }
            $retval .= htmlspecialchars($notesection);
            if ($is_link) {
                $retval .= "</a>";
            }
            $retval .= "<br/>";
        }
    }
    //echo "<pre>";
    //print_r($exp);
    if (isset($exp->obj_expression)) {
        echo "<pre>";
        print_r($exp->obj_expression);
    }
    foreach ($exp->obj_match_entries as $mes) {
        if (isset($mes->obj_expression)) {
            $retval .= create_filtering_toc($mes->obj_expression);
        }
    }
    $retval .= "</ul>";
    return $retval;
}
开发者ID:hisapi,项目名称:his,代码行数:40,代码来源:utility.functions.php

示例2: MatchEntry_Database_Adapter

$database_table_list = "";
$database_dependencies_valid = true;
if ($match_entry->id_entry_subtype == 'database-connection' && isset($match_entry->obj_me_settings['db_type'])) {
    $DATABASE_ADAPTER = new MatchEntry_Database_Adapter($match_entry->obj_me_settings);
    $database_connection_error_log = "";
    foreach ($SERVICES as $SERVICE) {
        if ($SERVICE->name == $DATABASE_ADAPTER->database->kind) {
            if (!$SERVICE->enabled) {
                foreach ($SERVICE->dependencies as $dependency) {
                    if (!$dependency->enabled) {
                        $database_connection_error_log = $database_connection_error_log . getTranslation("PLATFORM DEPENDENCY FAILURE", $settings) . ":\n" . $dependency->error . "\n";
                        $database_dependencies_valid = false;
                    }
                }
            }
        }
    }
}
// COLLECT TABLE LIST FOR DATABASE, IF DATABASE IS CONNECTED...ELSE LOG ERROR
if (true || $database_dependencies_valid) {
    if ($DATABASE_ADAPTER) {
        if ($DATABASE_ADAPTER->database->connected) {
            $database_table_list = $DATABASE_ADAPTER->database->get_tables();
            //$database_connection_error_log=var_export($database_output->get_tables(),true);//var_export($database_output,true);
        } else {
            $database_connection_error_log = getTranslation("Failed to connect to database using provided credentials.", $settings);
        }
    } else {
        $database_connection_error_log = getTranslation("Failed to connect to database using provided credentials.", $settings);
    }
}
开发者ID:hisapi,项目名称:his,代码行数:31,代码来源:matchentry.output.database-connection.init.php

示例3: getTranslation

?>
</label></p>
	<p class="submit">
		<input type="submit" name="btnSubmit" id="wp-submit" class="button-primary" value="<?php 
echo getTranslation("Log In", $settings);
?>
" tabindex="100" />
	</p>
</form>

<p id="nav">
<a href="index.php" title="<?php 
echo getTranslation("Go Back to HIS", $settings);
?>
"><?php 
echo getTranslation("Go Back to HIS", $settings);
?>
</a>
</p>
<script type="text/javascript">
function attempt_focus(){
setTimeout( function(){ try{
d = document.getElementById('user_login');
d.focus();
d.select();
} catch(e){}
}, 200);
}

//if(typeof wpOnload=='function')wpOnload();
attempt_focus();
开发者ID:hisapi,项目名称:his,代码行数:31,代码来源:login.php

示例4: notes

 public function notes()
 {
     global $settings;
     return getTranslation("updatebody", $settings);
 }
开发者ID:hisapi,项目名称:his,代码行数:5,代码来源:update.2013-08-07.to.2013-08-26.php

示例5: getTranslation

</label></th>
			<td><input name="admin_email" type="text" id="admin_email" size="25" value="" />
			<p><?php 
echo getTranslation('double check email', $settings);
?>
</p></td>
		</tr>
		<!--
		<tr>
			<th scope="row"><label for="blog_public">Privacy</label></th>
			<td colspan="2"><label><input type="checkbox" name="blog_public" value="1"  checked='checked' /> Allow search engines to index this site.</label></td>
		</tr>
		-->
	</table>
	<p class="step"><input type="submit" name="Submit" value="<?php 
echo getTranslation("Create Database Tables & Install HIS", $settings);
?>
" class="button" /></p>
<?php 
foreach ($_POST as $PK => $PV) {
    echo "<input type='hidden' name='" . htmlentities($PK, ENT_QUOTES) . "' value='" . htmlentities($PV, ENT_QUOTES) . "'/>";
}
?>
</form>
<script type="text/javascript">var t = document.getElementById('weblog_title'); if (t){ t.focus(); }</script>
<script type='text/javascript' src='jhf.js?ver=1.7.2'></script>
<script type='text/javascript'>
/* <![CDATA[ */
var pwsL10n = {"empty":"Strength indicator","short":"Very weak","bad":"Weak","good":"Medium","strong":"Strong","mismatch":"Mismatch"};
/* ]]> */
</script>
开发者ID:hisapi,项目名称:his,代码行数:31,代码来源:setupuser.php

示例6: getTranslation

    echo "<div style='width:100%;'><form style='display:inline;text-align:right;' method='post' action='?action=rss'><input type='hidden' name='server_name' value='" . $job_node->name . "'/><input style='font-size:9px;' type='submit' name='restart' value='% ";
    echo getTranslation("Restart Server", $settings);
    echo "' title='";
    echo getTranslation("Restart Server", $settings);
    echo "' alt='";
    echo getTranslation("Restart Server", $settings);
    echo "'/></form></div>";
    echo "</td></tr>";
    echo "<tr><td>";
    echo "<textarea id='log{$idx}' style='font-size:{$log_size}" . "px;width:{$log_width};height:{$log_height};background-color:black;color:white;'>";
    $log_content = $job_node->obj_log->body;
    $log_content = str_replace("&", "&amp;", $log_content);
    $log_content = str_replace("<", "&lt;", $log_content);
    $log_content = str_replace(">", "&gt;", $log_content);
    $log_content = str_replace("\n\n", "\n", $log_content);
    echo $log_content;
    echo "</textarea>";
    echo "</td></tr>";
    echo "<tr><td align='center'>";
    echo "<input type='button' onClick='window.location.reload(true);' value='";
    echo getTranslation("Refresh Log Page Now", $settings);
    echo "'/>";
    echo "</td></tr>";
    echo "</table>";
    $idx = $idx + 1;
}
// end for each through job nodes
if (count($u->obj_servers) == 0) {
    echo getTranslation("No job servers currently exist.  Go to the Cluster Map page and add some!", $settings);
}
echo "\n<script type='text/javascript'>\nfor(var i=0;i<" . count($u->obj_servers) . ";i++)\n{\n\tvar textArea = document.getElementById('log'+i);\n\ttextArea.scrollTop = textArea.scrollHeight;\n}\nsetTimeout('window.location.reload(true);',60*1000*{$refresh_every_x_minutes})\n</script>\n";
开发者ID:hisapi,项目名称:his,代码行数:31,代码来源:view.logs.php

示例7: getTranslation

if (file_exists('../uploads/avatars/' . $dev->getId($_SESSION['user']['username']) . '.png')) {
    $avatar = '../uploads/avatars/' . $dev->getId($_SESSION['user']['username']) . '.png';
} else {
    $avatar = '../uploads/avatars/default.png';
}
?>
        <img src="<?php 
echo $avatar;
?>
" class="roundIMG" id="profile_img"/><p>
        <h4 style="float:right; margin-top:3px;margin-right:10px;"><span id="small" class="user_name_colored"><?php 
echo $_SESSION['user']['username'];
?>
</span></h4>
        <h5 style="float:right; margin-right:10px;"><span id="small" class="user_grade_colored"><?php 
echo getTranslation($dev->getAdminLevel($dev->getId($_SESSION['user']['username'])) . "_level");
?>
 </span></h5>
      </p></div>
      <div class="clearfix"></div>
    </div>
    <div class="left_menu">
      <div class="spacer"></div>
      <a href="#"><div class="menu_item">
        <span class="icon-bug red"></span>
        <span id="title">Bugtracker</span></br>
        <span id="desc">Gerer le bugtracker.</span>
        <div class="clearfix"></div>
      </div>
      <a href="admin-shop.php"><div class="menu_item">
        <span class="icon-cart"></span>
开发者ID:StormxBlur,项目名称:old-ll,代码行数:31,代码来源:admin.php

示例8: explode

    $usedrooms[] = $data['room_id'];
    for ($i = 0; $i < $cnt_times; $i++) {
        $zeit = explode("_", $starttimes[$i]);
        $zeit = mktime($zeit[0], (int) $zeit[1], 0, date('n', $_GET['date']), date('j', $_GET['date']), date('Y', $_GET['date']));
        $lessonIndex = getLessonAtRoomAndTime($zeit, $data['room_nr'], $bookings);
        echo "<td style=\"border-right:solid 1px #bbb;text-align:center;\">";
        if ($lessonIndex !== false) {
            echo "<div class=\"dropables draggable\" style=\"background:rgb(" . $bookings[$lessonIndex][5] * 33 % 256 . "," . $bookings[$lessonIndex][5] * 66 % 256 . "," . $bookings[$lessonIndex][5] * 99 % 256 . ");\" id=\"roomlabor_" . $data['room_nr'] . "_" . $starttimes[$i] . "\"><span id=\"book_" . $bookings[$lessonIndex][0] . "\" style=\"color:rgb(" . getContrastColor($bookings[$lessonIndex][5] * 33 % 256, $bookings[$lessonIndex][5] * 66 % 256, $bookings[$lessonIndex][5] * 99 % 256) . ")\">" . $bookings[$lessonIndex][3] . " (" . $bookings[$lessonIndex][4] . ")</span></div>";
        } else {
            echo "<div class=\"dropables\" id=\"roomlabor_" . $data['room_nr'] . "_" . $starttimes[$i] . "\">&nbsp;</div>";
        }
        echo "</td>";
    }
    echo '</tr>';
}
echo '<tr><th style="text-align:left;font-weight:900;border-right:solid 1px #bbb;cursor:pointer;" onclick="switchVisibility(\'all\')"><img src="img/closed.gif" alt="' . getTranslation(528, $_GET['lang']) . '" title="' . getTranslation(528, $_GET['lang']) . '" id="icon_all" /> ' . getTranslation(517, $_GET['lang']) . '</th><td colspan="' . $cnt_times . '" style="background:#eee;">&nbsp;</td></tr>';
$rs = mysql_query("SELECT room_id,room_nr,room_name FROM room WHERE " . (!$SHOW_ROOMS_MULTIPLE ? "room_id NOT IN ('" . implode("','", $usedrooms) . "') AND " : "") . " " . ($_GET['curriculum_ID'] ? "room_seat>=(SELECT class_count FROM class WHERE class_id=(SELECT class_id FROM curriculum WHERE cur_id='" . $_GET['curriculumID'] . "'))" : "1") . " ORDER BY room_nr");
while ($data = mysql_fetch_assoc($rs)) {
    echo '<tr style="display:none;" class="all"><td style="background:#DEF;color:#019;border-right:solid 1px #bbb;padding-left:23px;">' . $data['room_name'] . ' (' . $data['room_nr'] . ')</td>';
    $usedrooms[] = $data['room_id'];
    for ($i = 0; $i < $cnt_times; $i++) {
        $zeit = explode("_", $starttimes[$i]);
        $zeit = mktime($zeit[0], (int) $zeit[1], 0, date('n', $_GET['date']), date('j', $_GET['date']), date('Y', $_GET['date']));
        $lessonIndex = getLessonAtRoomAndTime($zeit, $data['room_nr'], $bookings);
        echo "<td style=\"border-right:solid 1px #bbb;text-align:center;\">";
        if ($lessonIndex !== false) {
            echo "<div class=\"dropables draggable\" style=\"background:rgb(" . $bookings[$lessonIndex][5] * 33 % 256 . "," . $bookings[$lessonIndex][5] * 66 % 256 . "," . $bookings[$lessonIndex][5] * 99 % 256 . ");\" id=\"roomall_" . $data['room_nr'] . "_" . $starttimes[$i] . "\"><span id=\"book_" . $bookings[$lessonIndex][0] . "\" style=\"color:rgb(" . getContrastColor($bookings[$lessonIndex][5] * 33 % 256, $bookings[$lessonIndex][5] * 66 % 256, $bookings[$lessonIndex][5] * 99 % 256) . ")\">" . $bookings[$lessonIndex][3] . " (" . $bookings[$lessonIndex][4] . ")</span></div>";
        } else {
            echo "<div class=\"dropables\" id=\"roomall_" . $data['room_nr'] . "_" . $starttimes[$i] . "\">&nbsp;</div>";
        }
        echo "</td>";
开发者ID:BackupTheBerlios,项目名称:unisched-svn,代码行数:31,代码来源:roomplanning.php

示例9: catch

                if ($match_entry->obj_me_settings["fs_action_type"]->value == "write") {
                    $bucket_name = "";
                    if (isset($STORAGE_ADAPTER->storage->basefolder)) {
                        $bucket_name = $STORAGE_ADAPTER->storage->basefolder;
                    } else {
                        $bucket_name = $STORAGE_ADAPTER->storage->bucket;
                    }
                    if (strlen($bucket_name) > 0 && isset($match_entry->obj_me_settings["mime"]) && strlen($match_entry->obj_me_settings["mime"]->value) > 0) {
                        try {
                            $STORAGE_ADAPTER->storage->create_object(false, $bucket_name, $match_entry->obj_me_settings["target_filename"]->value, $match_entry->obj_me_settings["content"]->value, $match_entry->obj_me_settings["mime"]->value);
                            if (isset($database_connection_error_log) && strlen($database_connection_error_log) == 0) {
                                $raw_response = "No errors were detected.";
                            }
                        } catch (Exception $e) {
                            $raw_response = var_export($e, true);
                            $storage_error_log = $raw_response;
                        }
                    }
                }
                if ($match_entry->obj_me_settings["fs_action_type"]->value == "delete") {
                }
            }
            // action & target filename set
        }
        // fields set
    } else {
        $raw_response = getTranslation("Unable to connect to file store.", $setting);
        $storage_error_log = $raw_response;
    }
}
// is a file storage connection
开发者ID:hisapi,项目名称:his,代码行数:31,代码来源:matchentry.output.file-storage-connection.exec.php

示例10: user_user_name

        exit;
    }
}
if (isset($_GET['page'])) {
    if ($_GET['page'] == $last_step_of_library_installation + 1 && $DB_CONNECT && $FS_CONNECT && file_exists($BIN_DIR . $PATH_SEPERATOR . "his-config.php")) {
        $check_user = new user_user_name();
        $check_user->get_from_hashrange($_POST['user_name']);
        $pw = sha1($settings['salt1']['@attributes']['value'] . $_POST['admin_password'] . $_POST['user_name'] . $settings['salt2']['@attributes']['value']);
        if ($check_user->pw != $pw) {
            exit;
        }
        $PAGE = new SetupPage($_GET['page']);
        $PAGE->title = "<p>";
        $PAGE->title = $PAGE->title . getTranslation("Setup complete.", $settings);
        $PAGE->body = $PAGE->body . "</p>";
        $PAGE->body = $PAGE->body . "<table width='100%'><tr><td width='50%' valign='top'><p>";
        $PAGE->body = $PAGE->body . getTranslation("Setup was successful.  Click ", $settings);
        $PAGE->body = $PAGE->body . " <a href='index.php?v=login'>";
        $PAGE->body = $PAGE->body . getTranslation("here", $settings);
        $PAGE->body = $PAGE->body . "</a> ";
        $PAGE->body = $PAGE->body . getTranslation(" to login to HIS.", $settings);
        $PAGE->body = $PAGE->body . "</p></td>";
        $PAGE->body = $PAGE->body . "<td valign='top' align='right'>";
        $PAGE->body = $PAGE->body . "<img src='images/checkmark.png'/>";
        $PAGE->body = $PAGE->body . "</td></tr></table>";
        $PAGE->hide_back = true;
        $PAGE->hide_next = true;
        echo $PAGE->content();
        exit;
    }
}
开发者ID:hisapi,项目名称:his,代码行数:31,代码来源:install.php

示例11: getTranslation

            $seltxt = "selected='selected'";
        }
    }
    echo "<option value='false' {$seltxt}>";
    echo getTranslation("False", $settings);
    echo "</option>";
    $seltxt = "";
    if (isset($match_entry->obj_me_settings['run_in_edit_mode'])) {
        if ($match_entry->obj_me_settings['run_in_edit_mode']->value == "true") {
            $seltxt = "selected='selected'";
        }
    }
    echo "<option value='true' {$seltxt}>";
    echo getTranslation("True", $settings);
    echo "</option>";
    echo "</select>";
    if (isset($match_entry->obj_me_settings['run_in_edit_mode'])) {
        if ($match_entry->obj_me_settings['run_in_edit_mode']->value == "true") {
            echo "<ul>";
            echo getTranslation("Raw response from File Storage Server", $settings);
            echo ": <br/>";
            echo "<textarea style='background-color:#ddd;width:500px;display:inline;' rows='3'>";
            echo str_replace("<", "&lt;", $raw_response);
            echo "</textarea>";
            echo "<a href='?q={$qn}&v=filtering-expression'><img style='padding-left:50px;' border='0' src='images/refresh.png' height='50'/></a>";
            echo "</ul>";
        }
    }
    echo "<br/>";
}
// end if (file-storage-connection output)
开发者ID:hisapi,项目名称:his,代码行数:31,代码来源:matchentry.output.file-storage-connection.edit.php

示例12: getTranslation

            $PAGE->body = $PAGE->body . "<a href='?'>" . getTranslation("Click here to use your new & improved HIS Web Interface", $settings) . "</a>";
            $PAGE->body = $PAGE->body . "<br/>";
            $PAGE->body = $PAGE->body . "<br/>";
            $PAGE->body = $PAGE->body . getTranslation("job server update reminder", $settings);
            $PAGE->hide_back = true;
            $PAGE->hide_next = true;
        }
    }
    $PAGE->title = "<h1>" . $title_text . "</h1>";
    if ($database_version != $software_version) {
        $PAGE->body = $PAGE->body . "<br/>";
        $PAGE->body = $PAGE->body . "<br/>";
        if (!isset($_GET['page'])) {
            $PAGE->body = $PAGE->body . getTranslation("Click Submit to execute the update.", $settings);
        } else {
            $PAGE->body = $PAGE->body . getTranslation("Click Submit to execute the next update.", $settings);
        }
    }
    echo $PAGE->content();
    exit;
} elseif ($error_database_from_future_version) {
    $PAGE = new SetupPage(1);
    $PAGE->pagetitle = "Update";
    $PAGE->generate_headers_footers();
    $PAGE->title = "<p>" . getTranslation("Database is using a future schema version", $settings) . "</p>";
    $PAGE->hide_back = true;
    echo $PAGE->content();
    $PAGE->body = getTranslation("downgrade attempt", $settings);
    $PAGE->body = $PAGE->body . "<br/><br/>";
    exit;
}
开发者ID:hisapi,项目名称:his,代码行数:31,代码来源:update.php

示例13: service_table

 function service_table($service_kind)
 {
     global $SERVICES;
     $dbc = "";
     $fsc = "";
     $idc = 0;
     $ifc = 0;
     foreach ($SERVICES as $service) {
         $dstr = "";
         if ($service->type == "database") {
             //if ($idc>3) $dstr=" disabled='disabled'";
             if (!$service->enabled) {
                 $dstr = " disabled='disabled'";
             }
             $dbc = $dbc . "<option value='" . $service->name . "'{$dstr}>" . $service->name . "</option>";
             $idc = $idc + 1;
         }
         if ($service->type == "file-storage") {
             if ($ifc > 2) {
                 $dstr = " disabled='disabled'";
             }
             if (!$service->enabled) {
                 $dstr = " disabled='disabled'";
             }
             $fsc = $fsc . "<option value='" . $service->name . "'{$dstr}>" . $service->name . "</option>";
             $ifc = $ifc + 1;
         }
     }
     // foreach
     $core_configuration = "database";
     $configuration_category = "Application Memory System (Database)";
     $services_content = "";
     //$services_content=$services_content."<h3>$configuration_category</h3>";
     $services_content = $services_content . "<table width='700'>";
     $SIDX = 0;
     foreach ($SERVICES as $SERVICE) {
         if ($SERVICE->type != "{$service_kind}") {
             continue;
         }
         $SIDX = $SIDX + 1;
         if ($SIDX % 4 == 1) {
             $services_content = $services_content . "<tr>";
         }
         $services_content = $services_content . "<td style='vertical-align:top;text-align:center;width:200px;'>";
         if (strlen($SERVICE->home) > 0) {
         }
         if (strlen($SERVICE->icon) > 0) {
             if ($SERVICE->enabled) {
                 $services_content = $services_content . "<img width=70 src='" . $SERVICE->icon . "'/>";
             } else {
                 $alttxt = str_replace("'", "&rsquo;", $SERVICE->error);
                 $services_content = $services_content . "<img width=70 alt='{$alttxt}' title='{$alttxt}' src='" . str_replace("png", "disabled.png", $SERVICE->icon) . "'/>";
             }
             $services_content = $services_content . "<br/>";
         } else {
             $services_content = $services_content . "<img width='70' height='70' />";
             $services_content = $services_content . "<br/>";
         }
         $services_content = $services_content . $SERVICE->name;
         if (strlen($SERVICE->home) > 0) {
         }
         if (!$SERVICE->enabled) {
             $alttxt = str_replace("'", "&rsquo;", $SERVICE->error);
             $alttxt = str_replace("\"", "&quot;", $SERVICE->error);
             $services_content = $services_content . "<br/><input type='button' value='" . getTranslation('view problems', $_GET) . "' onClick=\"alert('{$alttxt}')\" style='margin:0px;font-size:8px;' />";
         }
         $services_content = $services_content . "</td>";
         if (($SIDX + 1) % 4 == 1) {
             $services_content = $services_content . "</tr>";
         }
     }
     // end foreach (service)
     $services_content = $services_content . "</table>";
     echo $services_content;
     //echo $PAGE->content();
 }
开发者ID:hisapi,项目名称:his,代码行数:76,代码来源:view.public.php

示例14: alert

      if($('rest'+draggable.id.replace('subject_','')).innerHTML<=0) {
        alert("<?php 
    echo getTranslation(535, $_GET['lang']);
    ?>
");
        deleteLesson(droppedIntoDate);
        return false;
      }
      
      xajax_moveLesson(draggable.id.replace('subject_',''),Math.floor(droppedIntoDate.getTime()/1000));
      $('rest'+draggable.id.replace('subject_','')).innerHTML = parseInt($('rest'+draggable.id.replace('subject_','')).innerHTML) - 2;
    } else {
      // moved old lesson
      if(!moveTermin(droppedIntoDate,color,lesson,draggable.firstChild.id.replace('plan_',''))) {
        alert("<?php 
    echo getTranslation(536, $_GET['lang']);
    ?>
");
        //deleteLesson(droppedIntoDate);
        return false;
      }
      xajax_moveLesson(draggable.firstChild.id.replace('plan_',''),Math.floor(droppedIntoDate.getTime()/1000),Math.floor(oldDropDate.getTime()/1000), draggable.id);
    }
    
    if(oldDropDate) {
      deleteLesson(oldDropDate);
    }
  }});
}
<?php 
}
开发者ID:BackupTheBerlios,项目名称:unisched-svn,代码行数:31,代码来源:timetable.php

示例15: getSkills

    case 'skills':
        // Gets the list of available skills
        $output = getSkills();
        break;
    case 'subskills':
    case 'backgrounds':
        // Gets the list of available subskills
        $output = getSubskills();
        break;
    case 'request':
        // Gets a recommendation according to the request
        $output = getRecommendation();
        break;
    case 'translate':
        // Translate the request to specific requirements
        $output = getTranslation();
        break;
    case 'getUserInfo':
        // Gets basic info about the candidate
        $output = getUserInfo($_REQUEST['user']);
        break;
    case 'deleteUser':
        // Deletes the user
        $userToDelete = isset($_REQUEST['userToDelete']) ? $_REQUEST['userToDelete'] : null;
        $output = deleteCandidate($userToDelete);
        break;
    default:
        $output = 'empty request';
        $op = 'nothing';
        break;
}
开发者ID:Peaso,项目名称:CER,代码行数:31,代码来源:er.php


注:本文中的getTranslation函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。