\hypertarget{execute_8php}{}\doxysection{sfcode/backend/execute.php File Reference}
\label{execute_8php}\index{sfcode/backend/execute.php@{sfcode/backend/execute.php}}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{execute_8php_ab1d99e9211e0764ab2dcf25497fa40e4}{\$post\+Data}} = file\+\_\+get\+\_\+contents(\char`\"{}php\+://input\char`\"{})
\item 
\mbox{\hyperlink{execute_8php_a227a9443cabbe5e23cfc10c4371e09d1}{\$uname}} = \$post\+Data\mbox{[}\textquotesingle{}file\textquotesingle{}\mbox{]}\mbox{[}\textquotesingle{}username\textquotesingle{}\mbox{]}
\item 
\mbox{\hyperlink{execute_8php_a0722441477f957078ee2437054556cbc}{\$filename}} = \$post\+Data\mbox{[}\textquotesingle{}file\textquotesingle{}\mbox{]}\mbox{[}\textquotesingle{}filename\textquotesingle{}\mbox{]}
\item 
\mbox{\hyperlink{execute_8php_a83170d318260a5a2e2a79dccdd371b10}{\$language}} = \$post\+Data\mbox{[}\textquotesingle{}file\textquotesingle{}\mbox{]}\mbox{[}\textquotesingle{}language\textquotesingle{}\mbox{]}
\item 
\mbox{\hyperlink{execute_8php_a6533a3606e58291459e9dfec2ad7da21}{\$input\+\_\+data}} = \$post\+Data\mbox{[}\textquotesingle{}input\+\_\+data\textquotesingle{}\mbox{]}
\item 
\mbox{\hyperlink{execute_8php_a8a081d1b9ae6e0379850a3996564bb3f}{\$ret\+\_\+stat}} = 0
\item 
\mbox{\hyperlink{execute_8php_aa3e9534005fd516d941f6a5569896e01}{\$template}} = strval(rand(1, 1000000))
\item 
\mbox{\hyperlink{execute_8php_a8b91f75933847c37e369bf9ffb5d4959}{\$in\+\_\+fname}} = \char`\"{}../users/\char`\"{} . \$uname . \char`\"{}/\char`\"{} . \char`\"{}temp\+\_\+in\char`\"{} . \$template
\item 
\mbox{\hyperlink{execute_8php_aa1bfbd27060176201b271918dff57e8f}{\$file}} = fopen(\$in\+\_\+fname, \textquotesingle{}w\textquotesingle{})
\item 
\mbox{\hyperlink{execute_8php_a4605dfe484d22f02e4ed7c9ad88262de}{\$out\+\_\+fname}} = \char`\"{}../users/\char`\"{} . \$uname . \char`\"{}/\char`\"{} . \char`\"{}temp\+\_\+out\char`\"{} . \$template
\item 
\mbox{\hyperlink{compile_8php_a247cbbb16ae0aa6b9c0376f9e758f6fb}{if}}(strcmp(\$language, \char`\"{}.cpp\char`\"{})==0) else \mbox{\hyperlink{compile_8php_a247cbbb16ae0aa6b9c0376f9e758f6fb}{if}}(strcmp(\$language, \char`\"{}.java\char`\"{})==0) else \mbox{\hyperlink{compile_8php_a247cbbb16ae0aa6b9c0376f9e758f6fb}{if}}(strcmp(\$language, \char`\"{}.py\char`\"{})==0) if(\$ret\+\_\+stat !=0) \mbox{\hyperlink{execute_8php_a215383748692ec568ed9ac6a2155f079}{else}}
\end{DoxyCompactItemize}


\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{execute_8php_aa1bfbd27060176201b271918dff57e8f}\label{execute_8php_aa1bfbd27060176201b271918dff57e8f}} 
\index{execute.php@{execute.php}!\$file@{\$file}}
\index{\$file@{\$file}!execute.php@{execute.php}}
\doxysubsubsection{\texorpdfstring{\$file}{$file}}
{\footnotesize\ttfamily \$file = fopen(\$in\+\_\+fname, \textquotesingle{}w\textquotesingle{})}

\mbox{\Hypertarget{execute_8php_a0722441477f957078ee2437054556cbc}\label{execute_8php_a0722441477f957078ee2437054556cbc}} 
\index{execute.php@{execute.php}!\$filename@{\$filename}}
\index{\$filename@{\$filename}!execute.php@{execute.php}}
\doxysubsubsection{\texorpdfstring{\$filename}{$filename}}
{\footnotesize\ttfamily \$filename = \$post\+Data\mbox{[}\textquotesingle{}file\textquotesingle{}\mbox{]}\mbox{[}\textquotesingle{}filename\textquotesingle{}\mbox{]}}

\mbox{\Hypertarget{execute_8php_a8b91f75933847c37e369bf9ffb5d4959}\label{execute_8php_a8b91f75933847c37e369bf9ffb5d4959}} 
\index{execute.php@{execute.php}!\$in\_fname@{\$in\_fname}}
\index{\$in\_fname@{\$in\_fname}!execute.php@{execute.php}}
\doxysubsubsection{\texorpdfstring{\$in\_fname}{$in\_fname}}
{\footnotesize\ttfamily \$in\+\_\+fname = \char`\"{}../users/\char`\"{} . \$uname . \char`\"{}/\char`\"{} . \char`\"{}temp\+\_\+in\char`\"{} . \$template}

\mbox{\Hypertarget{execute_8php_a6533a3606e58291459e9dfec2ad7da21}\label{execute_8php_a6533a3606e58291459e9dfec2ad7da21}} 
\index{execute.php@{execute.php}!\$input\_data@{\$input\_data}}
\index{\$input\_data@{\$input\_data}!execute.php@{execute.php}}
\doxysubsubsection{\texorpdfstring{\$input\_data}{$input\_data}}
{\footnotesize\ttfamily \$input\+\_\+data = \$post\+Data\mbox{[}\textquotesingle{}input\+\_\+data\textquotesingle{}\mbox{]}}

\mbox{\Hypertarget{execute_8php_a83170d318260a5a2e2a79dccdd371b10}\label{execute_8php_a83170d318260a5a2e2a79dccdd371b10}} 
\index{execute.php@{execute.php}!\$language@{\$language}}
\index{\$language@{\$language}!execute.php@{execute.php}}
\doxysubsubsection{\texorpdfstring{\$language}{$language}}
{\footnotesize\ttfamily \$language = \$post\+Data\mbox{[}\textquotesingle{}file\textquotesingle{}\mbox{]}\mbox{[}\textquotesingle{}language\textquotesingle{}\mbox{]}}

\mbox{\Hypertarget{execute_8php_a4605dfe484d22f02e4ed7c9ad88262de}\label{execute_8php_a4605dfe484d22f02e4ed7c9ad88262de}} 
\index{execute.php@{execute.php}!\$out\_fname@{\$out\_fname}}
\index{\$out\_fname@{\$out\_fname}!execute.php@{execute.php}}
\doxysubsubsection{\texorpdfstring{\$out\_fname}{$out\_fname}}
{\footnotesize\ttfamily \$out\+\_\+fname = \char`\"{}../users/\char`\"{} . \$uname . \char`\"{}/\char`\"{} . \char`\"{}temp\+\_\+out\char`\"{} . \$template}

\mbox{\Hypertarget{execute_8php_ab1d99e9211e0764ab2dcf25497fa40e4}\label{execute_8php_ab1d99e9211e0764ab2dcf25497fa40e4}} 
\index{execute.php@{execute.php}!\$postData@{\$postData}}
\index{\$postData@{\$postData}!execute.php@{execute.php}}
\doxysubsubsection{\texorpdfstring{\$postData}{$postData}}
{\footnotesize\ttfamily \$post\+Data = file\+\_\+get\+\_\+contents(\char`\"{}php\+://input\char`\"{})}

\mbox{\Hypertarget{execute_8php_a8a081d1b9ae6e0379850a3996564bb3f}\label{execute_8php_a8a081d1b9ae6e0379850a3996564bb3f}} 
\index{execute.php@{execute.php}!\$ret\_stat@{\$ret\_stat}}
\index{\$ret\_stat@{\$ret\_stat}!execute.php@{execute.php}}
\doxysubsubsection{\texorpdfstring{\$ret\_stat}{$ret\_stat}}
{\footnotesize\ttfamily \$ret\+\_\+stat = 0}

\mbox{\Hypertarget{execute_8php_aa3e9534005fd516d941f6a5569896e01}\label{execute_8php_aa3e9534005fd516d941f6a5569896e01}} 
\index{execute.php@{execute.php}!\$template@{\$template}}
\index{\$template@{\$template}!execute.php@{execute.php}}
\doxysubsubsection{\texorpdfstring{\$template}{$template}}
{\footnotesize\ttfamily \$template = strval(rand(1, 1000000))}

\mbox{\Hypertarget{execute_8php_a227a9443cabbe5e23cfc10c4371e09d1}\label{execute_8php_a227a9443cabbe5e23cfc10c4371e09d1}} 
\index{execute.php@{execute.php}!\$uname@{\$uname}}
\index{\$uname@{\$uname}!execute.php@{execute.php}}
\doxysubsubsection{\texorpdfstring{\$uname}{$uname}}
{\footnotesize\ttfamily \$uname = \$post\+Data\mbox{[}\textquotesingle{}file\textquotesingle{}\mbox{]}\mbox{[}\textquotesingle{}username\textquotesingle{}\mbox{]}}

\mbox{\Hypertarget{execute_8php_a215383748692ec568ed9ac6a2155f079}\label{execute_8php_a215383748692ec568ed9ac6a2155f079}} 
\index{execute.php@{execute.php}!else@{else}}
\index{else@{else}!execute.php@{execute.php}}
\doxysubsubsection{\texorpdfstring{else}{else}}
{\footnotesize\ttfamily \mbox{\hyperlink{compile_8php_a247cbbb16ae0aa6b9c0376f9e758f6fb}{if}} (filesize( \$out\+\_\+fname)==0) else}

{\bfseries Initial value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\{}
\DoxyCodeLine{  \mbox{\hyperlink{execute_8php_aa1bfbd27060176201b271918dff57e8f}{\$file}} = fopen(\mbox{\hyperlink{execute_8php_a4605dfe484d22f02e4ed7c9ad88262de}{\$out\_fname}}, \textcolor{charliteral}{'r'})}

\end{DoxyCode}
