Spustanie EXE z HMTL suboru (bez downloadu) – HTML / XHTML – Fórum – Programujte.com
 x   TIP: Přetáhni ikonu na hlavní panel pro připnutí webu

Spustanie EXE z HMTL suboru (bez downloadu) – HTML / XHTML – Fórum – Programujte.comSpustanie EXE z HMTL suboru (bez downloadu) – HTML / XHTML – Fórum – Programujte.com

 

marek17
~ Anonymní uživatel
115 příspěvků
18. 3. 2017   #1
-
0
-

Ako mam spustit urcite pozadovane subory ,ked kliknem na Solve a ukaze mi ulozit subor xxx.exe

Solve.html

<!--
  solve.html
  Mcube by Eric Dietz (c) 2005
  HTML interface for CGI application.
-->
<html>
<head>
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<meta name="keywords" content="4x4x4 Rubik's Cube, Master Cube, Rubik's Revenge">
<meta name="description" value="4x4x4 Rubik's Cube Solver">
<title>4x4x4 Rubik's Cube Solver</title>
</head>
<frameset rows="100%,*" framespacing="0" border="0">
<frame src="../cgi-bin/mcube/mcubecgiin.exe?!withgraphics" name="mcube" frameborder="0" scrolling="auto" noresize>
<noframes>
<body bgcolor="#FFFFFF" text="#000040" link="#000080" vlink="#800080" alink="#800080">
<font face="Arial">
<font size="2"><p align="center">
4x4x4 Rubik's Cube Solver by Eric Dietz<br>
<a href="../cgi-bin/mcube/mcubecgiin.exe?!withgraphics">Enter Here</a>.<br>
</body>
</noframes>
</frameset>
</html>

  mcubecgiin.htm (vacsi subor) 

<html>
<!--
  (Generated from:)
  mcubecgiin.htm
  Mcube by Eric Dietz (c) 2005
  HTML template for CGI generator inputter.
-->
<head>
  <title>4x4x4 Rubik's Cube Solver</title>
  <meta name="generator" content="Mcube_by_Eric_Dietz">
  <meta name="keywords" content="4x4x4 Rubik's Cube, Master Cube, Rubik's Revenge">
  <meta name="description" content="4x4x4 Rubik's Cube Solver">
</head>
<body bgcolor=#FFFFFF text=#000040 link=#000080 vlink=#800080 alink=#800080>
  <font face=Arial>
  <table border=0 width=90% align=center><tr><td>
    <font size=3><p align=left>
    4x4x4 Rubik's Cube Solver by <a href=mailto:root@wrongway.org>Eric Dietz</a> (c) 2005
    <!-- version <label id=version>beta</label><br> -->
    version
    beta <!-- %version% -->
    <br>
    Enter your cube's configuration in the space provided below, and hit Solve.<br>
    <noscript>
      <b>NOTE: You have JavaScripts DISABLED, and must reenable them for this to work.</b><br>
    </noscript>
    <a href=http://www.wrongway.org/ target=_blank>Home</a> -
    <a href=http://www.wrongway.org/mcube/mcubeiscool.html target=_blank>About</a> -
    <a href=http://www.wrongway.org/?rubiksource target=_blank>Source Code</a> -
    <a href=http://www.wrongway.org/?rubik target=_blank>Instructions</a> -
    <a href=http://www.wrongway.org/cu2/solve.html target=_blank>2x2x2 Solver</a> -
    <a href=http://www.wrongway.org/cube/solve.html target=_blank>3x3x3 Solver</a> -
    <a href=http://www.wrongway.org/pcube/solve.html target=_blank>5x5x5 Solver</a> -
    <a href=http://www.wrongway.org/?donate target=_blank>Make a donation</a><br>
    <b><label id=debug></label></b><br>
    <table border=0><tr><td valign=top>
      <table border=0><tr><td>
        <table border=0 cellpadding=0 cellspacing=1><tr><td valign=top>
          <font size=3>top<br>
          </td><td>
          <table border=1 width=102 height=102 bordercolor=#000000 cellpadding=0 cellspacing=0><tr>
            <td id=n154 onClick=sq(1,5,4)><table><tr><td></td></tr></table></td>
            <td id=n254 onClick=sq(2,5,4)><table><tr><td></td></tr></table></td>
            <td id=n354 onClick=sq(3,5,4)><table><tr><td></td></tr></table></td>
            <td id=n454 onClick=sq(4,5,4)><table><tr><td></td></tr></table></td>
            </tr><tr>
            <td id=n153 onClick=sq(1,5,3)><table><tr><td></td></tr></table></td>
            <td id=n253 onClick=sq(2,5,3)><table><tr><td></td></tr></table></td>
            <td id=n353 onClick=sq(3,5,3)><table><tr><td></td></tr></table></td>
            <td id=n453 onClick=sq(4,5,3)><table><tr><td></td></tr></table></td>
            </tr><tr>
            <td id=n152 onClick=sq(1,5,2)><table><tr><td></td></tr></table></td>
            <td id=n252 onClick=sq(2,5,2)><table><tr><td></td></tr></table></td>
            <td id=n352 onClick=sq(3,5,2)><table><tr><td></td></tr></table></td>
            <td id=n452 onClick=sq(4,5,2)><table><tr><td></td></tr></table></td>
            </tr><tr>
            <td id=n151 onClick=sq(1,5,1)><table><tr><td></td></tr></table></td>
            <td id=n251 onClick=sq(2,5,1)><table><tr><td></td></tr></table></td>
            <td id=n351 onClick=sq(3,5,1)><table><tr><td></td></tr></table></td>
            <td id=n451 onClick=sq(4,5,1)><table><tr><td></td></tr></table></td>
          </tr></table>
          </td><td></td><td></td></tr><tr><td>
          <table border=1 width=102 height=102 bordercolor=#000000 cellpadding=0 cellspacing=0><tr>
            <td id=n044 onClick=sq(0,4,4)><table><tr><td></td></tr></table></td>
            <td id=n043 onClick=sq(0,4,3)><table><tr><td></td></tr></table></td>
            <td id=n042 onClick=sq(0,4,2)><table><tr><td></td></tr></table></td>
            <td id=n041 onClick=sq(0,4,1)><table><tr><td></td></tr></table></td>
            </tr><tr>
            <td id=n034 onClick=sq(0,3,4)><table><tr><td></td></tr></table></td>
            <td id=n033 onClick=sq(0,3,3)><table><tr><td></td></tr></table></td>
            <td id=n032 onClick=sq(0,3,2)><table><tr><td></td></tr></table></td>
            <td id=n031 onClick=sq(0,3,1)><table><tr><td></td></tr></table></td>
            </tr><tr>
            <td id=n024 onClick=sq(0,2,4)><table><tr><td></td></tr></table></td>
            <td id=n023 onClick=sq(0,2,3)><table><tr><td></td></tr></table></td>
            <td id=n022 onClick=sq(0,2,2)><table><tr><td></td></tr></table></td>
            <td id=n021 onClick=sq(0,2,1)><table><tr><td></td></tr></table></td>
            </tr><tr>
            <td id=n014 onClick=sq(0,1,4)><table><tr><td></td></tr></table></td>
            <td id=n013 onClick=sq(0,1,3)><table><tr><td></td></tr></table></td>
            <td id=n012 onClick=sq(0,1,2)><table><tr><td></td></tr></table></td>
            <td id=n011 onClick=sq(0,1,1)><table><tr><td></td></tr></table></td>
          </tr></table>
          </td><td>
          <table border=1 width=102 height=102 bordercolor=#000000 cellpadding=0 cellspacing=0><tr>
            <td id=n140 onClick=sq(1,4,0)><table><tr><td></td></tr></table></td>
            <td id=n240 onClick=sq(2,4,0)><table><tr><td></td></tr></table></td>
            <td id=n340 onClick=sq(3,4,0)><table><tr><td></td></tr></table></td>
            <td id=n440 onClick=sq(4,4,0)><table><tr><td></td></tr></table></td>
            </tr><tr>
            <td id=n130 onClick=sq(1,3,0)><table><tr><td></td></tr></table></td>
            <td id=n230 onClick=sq(2,3,0)><table><tr><td></td></tr></table></td>
            <td id=n330 onClick=sq(3,3,0)><table><tr><td></td></tr></table></td>
            <td id=n430 onClick=sq(4,3,0)><table><tr><td></td></tr></table></td>
            </tr><tr>
            <td id=n120 onClick=sq(1,2,0)><table><tr><td></td></tr></table></td>
            <td id=n220 onClick=sq(2,2,0)><table><tr><td></td></tr></table></td>
            <td id=n320 onClick=sq(3,2,0)><table><tr><td></td></tr></table></td>
            <td id=n420 onClick=sq(4,2,0)><table><tr><td></td></tr></table></td>
            </tr><tr>
            <td id=n110 onClick=sq(1,1,0)><table><tr><td></td></tr></table></td>
            <td id=n210 onClick=sq(2,1,0)><table><tr><td></td></tr></table></td>
            <td id=n310 onClick=sq(3,1,0)><table><tr><td></td></tr></table></td>
            <td id=n410 onClick=sq(4,1,0)><table><tr><td></td></tr></table></td>
          </tr></table>
          </td><td>
          <table border=1 width=102 height=102 bordercolor=#000000 cellpadding=0 cellspacing=0><tr>
            <td id=n541 onClick=sq(5,4,1)><table><tr><td></td></tr></table></td>
            <td id=n542 onClick=sq(5,4,2)><table><tr><td></td></tr></table></td>
            <td id=n543 onClick=sq(5,4,3)><table><tr><td></td></tr></table></td>
            <td id=n544 onClick=sq(5,4,4)><table><tr><td></td></tr></table></td>
            </tr><tr>
            <td id=n531 onClick=sq(5,3,1)><table><tr><td></td></tr></table></td>
            <td id=n532 onClick=sq(5,3,2)><table><tr><td></td></tr></table></td>
            <td id=n533 onClick=sq(5,3,3)><table><tr><td></td></tr></table></td>
            <td id=n534 onClick=sq(5,3,4)><table><tr><td></td></tr></table></td>
            </tr><tr>
            <td id=n521 onClick=sq(5,2,1)><table><tr><td></td></tr></table></td>
            <td id=n522 onClick=sq(5,2,2)><table><tr><td></td></tr></table></td>
            <td id=n523 onClick=sq(5,2,3)><table><tr><td></td></tr></table></td>
            <td id=n524 onClick=sq(5,2,4)><table><tr><td></td></tr></table></td>
            </tr><tr>
            <td id=n511 onClick=sq(5,1,1)><table><tr><td></td></tr></table></td>
            <td id=n512 onClick=sq(5,1,2)><table><tr><td></td></tr></table></td>
            <td id=n513 onClick=sq(5,1,3)><table><tr><td></td></tr></table></td>
            <td id=n514 onClick=sq(5,1,4)><table><tr><td></td></tr></table></td>
          </tr></table>
          </td><td>
          <table border=1 width=102 height=102 bordercolor=#000000 cellpadding=0 cellspacing=0><tr>
            <td id=n445 onClick=sq(4,4,5)><table><tr><td></td></tr></table></td>
            <td id=n345 onClick=sq(3,4,5)><table><tr><td></td></tr></table></td>
            <td id=n245 onClick=sq(2,4,5)><table><tr><td></td></tr></table></td>
            <td id=n145 onClick=sq(1,4,5)><table><tr><td></td></tr></table></td>
            </tr><tr>
            <td id=n435 onClick=sq(4,3,5)><table><tr><td></td></tr></table></td>
            <td id=n335 onClick=sq(3,3,5)><table><tr><td></td></tr></table></td>
            <td id=n235 onClick=sq(2,3,5)><table><tr><td></td></tr></table></td>
            <td id=n135 onClick=sq(1,3,5)><table><tr><td></td></tr></table></td>
            </tr><tr>
            <td id=n425 onClick=sq(4,2,5)><table><tr><td></td></tr></table></td>
            <td id=n325 onClick=sq(3,2,5)><table><tr><td></td></tr></table></td>
            <td id=n225 onClick=sq(2,2,5)><table><tr><td></td></tr></table></td>
            <td id=n125 onClick=sq(1,2,5)><table><tr><td></td></tr></table></td>
            </tr><tr>
            <td id=n415 onClick=sq(4,1,5)><table><tr><td></td></tr></table></td>
            <td id=n315 onClick=sq(3,1,5)><table><tr><td></td></tr></table></td>
            <td id=n215 onClick=sq(2,1,5)><table><tr><td></td></tr></table></td>
            <td id=n115 onClick=sq(1,1,5)><table><tr><td></td></tr></table></td>
          </tr></table>
          </td></tr><tr><td valign=bottom>
          <font size=3>bottom<br>
          </td><td>
          <table border=1 width=102 height=102 bordercolor=#000000 cellpadding=0 cellspacing=0><tr>
            <td id=n101 onClick=sq(1,0,1)><table><tr><td></td></tr></table></td>
            <td id=n201 onClick=sq(2,0,1)><table><tr><td></td></tr></table></td>
            <td id=n301 onClick=sq(3,0,1)><table><tr><td></td></tr></table></td>
            <td id=n401 onClick=sq(4,0,1)><table><tr><td></td></tr></table></td>
            </tr><tr>
            <td id=n102 onClick=sq(1,0,2)><table><tr><td></td></tr></table></td>
            <td id=n202 onClick=sq(2,0,2)><table><tr><td></td></tr></table></td>
            <td id=n302 onClick=sq(3,0,2)><table><tr><td></td></tr></table></td>
            <td id=n402 onClick=sq(4,0,2)><table><tr><td></td></tr></table></td>
            </tr><tr>
            <td id=n103 onClick=sq(1,0,3)><table><tr><td></td></tr></table></td>
            <td id=n203 onClick=sq(2,0,3)><table><tr><td></td></tr></table></td>
            <td id=n303 onClick=sq(3,0,3)><table><tr><td></td></tr></table></td>
            <td id=n403 onClick=sq(4,0,3)><table><tr><td></td></tr></table></td>
            </tr><tr>
            <td id=n104 onClick=sq(1,0,4)><table><tr><td></td></tr></table></td>
            <td id=n204 onClick=sq(2,0,4)><table><tr><td></td></tr></table></td>
            <td id=n304 onClick=sq(3,0,4)><table><tr><td></td></tr></table></td>
            <td id=n404 onClick=sq(4,0,4)><table><tr><td></td></tr></table></td>
          </tr></table>
          </td><td colspan=2 valign=top>
        </td></tr></table>
        </td></tr><tr><td>
        <input type=button value="Scramble" onClick=Scramble()>
        <input type=button value="Reset" onClick=ResetCube()>
        <br>
        </td></tr><tr><td>
        <table border=0><tr><td>
          <table border=1 width=152 height=27 bordercolor=#000000 cellpadding=0 cellspacing=0><tr>
            <td id=p1 onClick=set(1)><table><tr><td></td></tr></table></td>
            <td id=p2 onClick=set(2)><table><tr><td></td></tr></table></td>
            <td id=p3 onClick=set(3)><table><tr><td></td></tr></table></td>
            <td id=p4 onClick=set(4)><table><tr><td></td></tr></table></td>
            <td id=p5 onClick=set(5)><table><tr><td></td></tr></table></td>
            <td id=p6 onClick=set(6)><table><tr><td></td></tr></table></td>
          </tr></table>
          </td><td width=27></td><td>
          <table border=1 align=right width=27 height=27 bordercolor=#000000 cellpadding=0 cellspacing=0><tr>
            <td id=palette><table><tr><td></td></tr></table></td>
          </tr></table>
          </td><td width=98></td><td>
          <font size=2>
          <!-- counter - you probably want to remove this if you're putting the solver on your own site -->
          <!-- <script language="JavaScript" src="../../cgi-bin/counter/counter.cgi?id=mcube"></script><br> -->
          <!-- end of counter -->
        </td></tr></table>
        <font size=3>
        <div id=solveto style="display: none;">
          <table border=0><tr><td>
            <font size=3>
            <br>
            <b>Solve to this position:</b><br>
            <table border=0 cellpadding=0 cellspacing=1><tr><td valign=top>
              <font size=3>top<br>
              </td><td>
              <table border=1 width=102 height=102 bordercolor=#000000 cellpadding=0 cellspacing=0><tr>
                <td id=m154 onClick=sq2(1,5,4)><table><tr><td></td></tr></table></td>
                <td id=m254 onClick=sq2(2,5,4)><table><tr><td></td></tr></table></td>
                <td id=m354 onClick=sq2(3,5,4)><table><tr><td></td></tr></table></td>
                <td id=m454 onClick=sq2(4,5,4)><table><tr><td></td></tr></table></td>
                </tr><tr>
                <td id=m153 onClick=sq2(1,5,3)><table><tr><td></td></tr></table></td>
                <td id=m253 onClick=sq2(2,5,3)><table><tr><td></td></tr></table></td>
                <td id=m353 onClick=sq2(3,5,3)><table><tr><td></td></tr></table></td>
                <td id=m453 onClick=sq2(4,5,3)><table><tr><td></td></tr></table></td>
                </tr><tr>
                <td id=m152 onClick=sq2(1,5,2)><table><tr><td></td></tr></table></td>
                <td id=m252 onClick=sq2(2,5,2)><table><tr><td></td></tr></table></td>
                <td id=m352 onClick=sq2(3,5,2)><table><tr><td></td></tr></table></td>
                <td id=m452 onClick=sq2(4,5,2)><table><tr><td></td></tr></table></td>
                </tr><tr>
                <td id=m151 onClick=sq2(1,5,1)><table><tr><td></td></tr></table></td>
                <td id=m251 onClick=sq2(2,5,1)><table><tr><td></td></tr></table></td>
                <td id=m351 onClick=sq2(3,5,1)><table><tr><td></td></tr></table></td>
                <td id=m451 onClick=sq2(4,5,1)><table><tr><td></td></tr></table></td>
              </tr></table>
              </td><td></td><td></td></tr><tr><td>
              <table border=1 width=102 height=102 bordercolor=#000000 cellpadding=0 cellspacing=0><tr>
                <td id=m044 onClick=sq2(0,4,4)><table><tr><td></td></tr></table></td>
                <td id=m043 onClick=sq2(0,4,3)><table><tr><td></td></tr></table></td>
                <td id=m042 onClick=sq2(0,4,2)><table><tr><td></td></tr></table></td>
                <td id=m041 onClick=sq2(0,4,1)><table><tr><td></td></tr></table></td>
                </tr><tr>
                <td id=m034 onClick=sq2(0,3,4)><table><tr><td></td></tr></table></td>
                <td id=m033 onClick=sq2(0,3,3)><table><tr><td></td></tr></table></td>
                <td id=m032 onClick=sq2(0,3,2)><table><tr><td></td></tr></table></td>
                <td id=m031 onClick=sq2(0,3,1)><table><tr><td></td></tr></table></td>
                </tr><tr>
                <td id=m024 onClick=sq2(0,2,4)><table><tr><td></td></tr></table></td>
                <td id=m023 onClick=sq2(0,2,3)><table><tr><td></td></tr></table></td>
                <td id=m022 onClick=sq2(0,2,2)><table><tr><td></td></tr></table></td>
                <td id=m021 onClick=sq2(0,2,1)><table><tr><td></td></tr></table></td>
                </tr><tr>
                <td id=m014 onClick=sq2(0,1,4)><table><tr><td></td></tr></table></td>
                <td id=m013 onClick=sq2(0,1,3)><table><tr><td></td></tr></table></td>
                <td id=m012 onClick=sq2(0,1,2)><table><tr><td></td></tr></table></td>
                <td id=m011 onClick=sq2(0,1,1)><table><tr><td></td></tr></table></td>
              </tr></table>
              </td><td>
              <table border=1 width=102 height=102 bordercolor=#000000 cellpadding=0 cellspacing=0><tr>
                <td id=m140 onClick=sq2(1,4,0)><table><tr><td></td></tr></table></td>
                <td id=m240 onClick=sq2(2,4,0)><table><tr><td></td></tr></table></td>
                <td id=m340 onClick=sq2(3,4,0)><table><tr><td></td></tr></table></td>
                <td id=m440 onClick=sq2(4,4,0)><table><tr><td></td></tr></table></td>
                </tr><tr>
                <td id=m130 onClick=sq2(1,3,0)><table><tr><td></td></tr></table></td>
                <td id=m230 onClick=sq2(2,3,0)><table><tr><td></td></tr></table></td>
                <td id=m330 onClick=sq2(3,3,0)><table><tr><td></td></tr></table></td>
                <td id=m430 onClick=sq2(4,3,0)><table><tr><td></td></tr></table></td>
                </tr><tr>
                <td id=m120 onClick=sq2(1,2,0)><table><tr><td></td></tr></table></td>
                <td id=m220 onClick=sq2(2,2,0)><table><tr><td></td></tr></table></td>
                <td id=m320 onClick=sq2(3,2,0)><table><tr><td></td></tr></table></td>
                <td id=m420 onClick=sq2(4,2,0)><table><tr><td></td></tr></table></td>
                </tr><tr>
                <td id=m110 onClick=sq2(1,1,0)><table><tr><td></td></tr></table></td>
                <td id=m210 onClick=sq2(2,1,0)><table><tr><td></td></tr></table></td>
                <td id=m310 onClick=sq2(3,1,0)><table><tr><td></td></tr></table></td>
                <td id=m410 onClick=sq2(4,1,0)><table><tr><td></td></tr></table></td>
              </tr></table>
              </td><td>
              <table border=1 width=102 height=102 bordercolor=#000000 cellpadding=0 cellspacing=0><tr>
                <td id=m541 onClick=sq2(5,4,1)><table><tr><td></td></tr></table></td>
                <td id=m542 onClick=sq2(5,4,2)><table><tr><td></td></tr></table></td>
                <td id=m543 onClick=sq2(5,4,3)><table><tr><td></td></tr></table></td>
                <td id=m544 onClick=sq2(5,4,4)><table><tr><td></td></tr></table></td>
                </tr><tr>
                <td id=m531 onClick=sq2(5,3,1)><table><tr><td></td></tr></table></td>
                <td id=m532 onClick=sq2(5,3,2)><table><tr><td></td></tr></table></td>
                <td id=m533 onClick=sq2(5,3,3)><table><tr><td></td></tr></table></td>
                <td id=m534 onClick=sq2(5,3,4)><table><tr><td></td></tr></table></td>
                </tr><tr>
                <td id=m521 onClick=sq2(5,2,1)><table><tr><td></td></tr></table></td>
                <td id=m522 onClick=sq2(5,2,2)><table><tr><td></td></tr></table></td>
                <td id=m523 onClick=sq2(5,2,3)><table><tr><td></td></tr></table></td>
                <td id=m524 onClick=sq2(5,2,4)><table><tr><td></td></tr></table></td>
                </tr><tr>
                <td id=m511 onClick=sq2(5,1,1)><table><tr><td></td></tr></table></td>
                <td id=m512 onClick=sq2(5,1,2)><table><tr><td></td></tr></table></td>
                <td id=m513 onClick=sq2(5,1,3)><table><tr><td></td></tr></table></td>
                <td id=m514 onClick=sq2(5,1,4)><table><tr><td></td></tr></table></td>
              </tr></table>
              </td><td>
              <table border=1 width=102 height=102 bordercolor=#000000 cellpadding=0 cellspacing=0><tr>
                <td id=m445 onClick=sq2(4,4,5)><table><tr><td></td></tr></table></td>
                <td id=m345 onClick=sq2(3,4,5)><table><tr><td></td></tr></table></td>
                <td id=m245 onClick=sq2(2,4,5)><table><tr><td></td></tr></table></td>
                <td id=m145 onClick=sq2(1,4,5)><table><tr><td></td></tr></table></td>
                </tr><tr>
                <td id=m435 onClick=sq2(4,3,5)><table><tr><td></td></tr></table></td>
                <td id=m335 onClick=sq2(3,3,5)><table><tr><td></td></tr></table></td>
                <td id=m235 onClick=sq2(2,3,5)><table><tr><td></td></tr></table></td>
                <td id=m135 onClick=sq2(1,3,5)><table><tr><td></td></tr></table></td>
                </tr><tr>
                <td id=m425 onClick=sq2(4,2,5)><table><tr><td></td></tr></table></td>
                <td id=m325 onClick=sq2(3,2,5)><table><tr><td></td></tr></table></td>
                <td id=m225 onClick=sq2(2,2,5)><table><tr><td></td></tr></table></td>
                <td id=m125 onClick=sq2(1,2,5)><table><tr><td></td></tr></table></td>
                </tr><tr>
                <td id=m415 onClick=sq2(4,1,5)><table><tr><td></td></tr></table></td>
                <td id=m315 onClick=sq2(3,1,5)><table><tr><td></td></tr></table></td>
                <td id=m215 onClick=sq2(2,1,5)><table><tr><td></td></tr></table></td>
                <td id=m115 onClick=sq2(1,1,5)><table><tr><td></td></tr></table></td>
              </tr></table>
              </td></tr><tr><td valign=bottom>
              <font size=3>bottom<br>
              </td><td>
              <table border=1 width=102 height=102 bordercolor=#000000 cellpadding=0 cellspacing=0><tr>
                <td id=m101 onClick=sq2(1,0,1)><table><tr><td></td></tr></table></td>
                <td id=m201 onClick=sq2(2,0,1)><table><tr><td></td></tr></table></td>
                <td id=m301 onClick=sq2(3,0,1)><table><tr><td></td></tr></table></td>
                <td id=m401 onClick=sq2(4,0,1)><table><tr><td></td></tr></table></td>
                </tr><tr>
                <td id=m102 onClick=sq2(1,0,2)><table><tr><td></td></tr></table></td>
                <td id=m202 onClick=sq2(2,0,2)><table><tr><td></td></tr></table></td>
                <td id=m302 onClick=sq2(3,0,2)><table><tr><td></td></tr></table></td>
                <td id=m402 onClick=sq2(4,0,2)><table><tr><td></td></tr></table></td>
                </tr><tr>
                <td id=m103 onClick=sq2(1,0,3)><table><tr><td></td></tr></table></td>
                <td id=m203 onClick=sq2(2,0,3)><table><tr><td></td></tr></table></td>
                <td id=m303 onClick=sq2(3,0,3)><table><tr><td></td></tr></table></td>
                <td id=m403 onClick=sq2(4,0,3)><table><tr><td></td></tr></table></td>
                </tr><tr>
                <td id=m104 onClick=sq2(1,0,4)><table><tr><td></td></tr></table></td>
                <td id=m204 onClick=sq2(2,0,4)><table><tr><td></td></tr></table></td>
                <td id=m304 onClick=sq2(3,0,4)><table><tr><td></td></tr></table></td>
                <td id=m404 onClick=sq2(4,0,4)><table><tr><td></td></tr></table></td>
              </tr></table>
              </td><td colspan=2 valign=top>
            </td></tr></table>
            </td></tr><tr><td>
            <input type=button value="Scramble" onClick=ScrambleDest()>
            <input type=button value="Reset" onClick=ResetDest()>
            Destination
            <br>
            <br>
            <center>
              <input type=button value="Scramble Both" onClick=ScrambleBoth()>
              <input type=button value="Reset Both" onClick=ResetBoth()>
              <br>
            </center>
            <br>
          </td></tr></table>
        </div>
        </td></tr><tr><td>
        <center>
          <input type=button value=Solve onClick=GetSolution()>
          <br>
        </center>
        <br>
      </td></tr></table>
      </td><td width=25></td><td valign=top>
      <font size=2>
      <div id=basic>
        <input type=button value=Advanced onClick=GoAdvanced()><br>
      </div>
      <div id=advanced style="display: none;">
        <input type=button value=Basic onClick=GoBasic()><br>
        <div id=disp_graphics_off>
          <input type=button value="Output" onClick=DisplayGraphicsOn()>
          : <b>text-only</b><br>
        </div>
        <div id=disp_graphics_on style="display: none;">
          <input type=button value="Output" onClick=DisplayGraphicsOff()>
          : <b>graphical (recommended)</b><br>
        </div>
        <div id=disp_diagrams_off>
          <input type=button value="Diagrams" onClick=DisplayDiagramsOn()>
          : <b>disabled (fast load)</b><br>
        </div>
        <div id=disp_diagrams_on style="display: none;">
          <input type=button value="Diagrams" onClick=DisplayDiagramsOff()>
          : <b>enabled (slow load, high bandwidth)</b><br>
        </div>
        <!-- <div id=nodest> -->
        <div id=nodest style="display: none;">
          <input type=button value="Destination" onClick=DestTrue()>
          : <b>solved</b><br>
        </div>
        <div id=yesdest style="display: none;">
          <input type=button value="Destination" onClick=DestFalse()>
          : <b>custom</b><br>
        </div>
        <div id=nocol>
          <input type=button value="Custom Colors" onClick=YesColors()><br>
        </div>
        <div id=yescol style="display: none;">
          <input type=button value="Custom Colors" onClick=NoColors()><br>
          Customize Colors:<br>
          Use 6-digit HTML color codes.<br>
          <form name="col">
            #<input type=text name=c1 value=FFFFFF size=6 maxlength=12> color 1 - top<br>
            #<input type=text name=c2 value=0000FF size=6 maxlength=12> color 2 - left<br>
            #<input type=text name=c3 value=FF8000 size=6 maxlength=12> color 3 - front<br>
            #<input type=text name=c4 value=00FF00 size=6 maxlength=12> color 4 - right<br>
            #<input type=text name=c5 value=FF0000 size=6 maxlength=12> color 5 - back<br>
            #<input type=text name=c6 value=FFFF00 size=6 maxlength=12> color 6 - bottom<br>
            <input type=button value=Set onClick=SetColors(this.form)>
            <input type=button value=Defaults onClick=ResetColors(this.form)><br>
          </form>
        </div>
      </div>
    </td></tr></table>
    <div id=nohelp>
      <input type=button value="Click here for Help" onClick=ShowHelp()><br>
    </div>
    <div id=help style="display: none;">
      <font size=2>
      <input type=button value="Hide Help" onClick=HideHelp()>
      <br>
      Help... the solver should be pretty intuitive.  Use the palette to select a color, then click a face
      to paint that color on the face.  Use custom colors (under Advanced) for cubes that don't use the
      default color scheme.
      <br>
      <a href="../../mcube/mcubeiscool.html" target="_blank">click here for info on the solver</a><br>
    </div>
  </td></tr></table>
  <script language=JavaScript>
// non-script <!--
// Mcube JavaScript by Eric Dietz (c) 2005
// JavaScript for inputting cubes to the solver.
var defcub = new Array(1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6);
var defcol = new Array( "0" , "FFFFFF" , "0000FF" , "FF8000" , "00FF00" , "FF0000" , "FFFF00" );
var ourcub = new Array(1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6);
var ourtocub = new Array(1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6);
var ourcol = new Array( "0" , "FFFFFF" , "0000FF" , "FF8000" , "00FF00" , "FF0000" , "FFFF00" );
var disp_graphics = 0;
var disp_diagrams = 0;
var solveto = 0;
var fixcol = 0;
var adv = 0;
var sel = 1;
var help = 0;
//var ver = "beta";
// DO NOT REMOVE - default generated javascript setting
// %javadefaults% //
// end of generated javascript setting
OnStart();
function ElementGet(xx) {
  return document.getElementById(xx);
}
function OnStart() {
  SetDefaults();
  if (disp_graphics == 1) DisplayGraphicsOn();
  if (disp_diagrams == 1) DisplayDiagramsOn();
  if (solveto == 1) DestTrue();
  if (fixcol == 1) YesColors();
  if (adv == 1) GoAdvanced();
  if (help == 1) ShowHelp();
  TextColors();
  //version.innerText = ver;
}
function SetDefaults() {
  var squ, i, j;
  for (i = 1; i <= 6; i++) {
    squ = ElementGet('p'+i);
    squ.style.backgroundColor = '#'+ourcol[i];
  }
  squ = ElementGet('palette');
  squ.style.backgroundColor = '#'+ourcol[sel];
  for (i = 1; i <= 4; i++) {
    for (j = 1; j <= 4; j++) {
      squ = ElementGet('n'+'0'+i+j);
      squ.style.backgroundColor = '#'+ourcol[ourcub[(4-i)*4+(4-j)  +16]];
      squ = ElementGet('n'+'5'+i+j);
      squ.style.backgroundColor = '#'+ourcol[ourcub[(4-i)*4+(j-1)  +48]];
      squ = ElementGet('n'+i+'0'+j);
      squ.style.backgroundColor = '#'+ourcol[ourcub[(i-1)  +(j-1)*4+80]];
      squ = ElementGet('n'+i+'5'+j);
      squ.style.backgroundColor = '#'+ourcol[ourcub[(i-1)  +(4-j)*4   ]];
      squ = ElementGet('n'+i+j+'0');
      squ.style.backgroundColor = '#'+ourcol[ourcub[(i-1)  +(4-j)*4+32]];
      squ = ElementGet('n'+i+j+'5');
      squ.style.backgroundColor = '#'+ourcol[ourcub[(4-i)  +(4-j)*4+64]];
    }
  }
  for (i = 1; i <= 4; i++) {
    for (j = 1; j <= 4; j++) {
      squ = ElementGet('m'+'0'+i+j);
      squ.style.backgroundColor = '#'+ourcol[ourtocub[(4-i)*4+(4-j)  +16]];
      squ = ElementGet('m'+'5'+i+j);
      squ.style.backgroundColor = '#'+ourcol[ourtocub[(4-i)*4+(j-1)  +48]];
      squ = ElementGet('m'+i+'0'+j);
      squ.style.backgroundColor = '#'+ourcol[ourtocub[(i-1)  +(j-1)*4+80]];
      squ = ElementGet('m'+i+'5'+j);
      squ.style.backgroundColor = '#'+ourcol[ourtocub[(i-1)  +(4-j)*4   ]];
      squ = ElementGet('m'+i+j+'0');
      squ.style.backgroundColor = '#'+ourcol[ourtocub[(i-1)  +(4-j)*4+32]];
      squ = ElementGet('m'+i+j+'5');
      squ.style.backgroundColor = '#'+ourcol[ourtocub[(4-i)  +(4-j)*4+64]];
    }
  }
}
function sq(a,b,c) {
  var squ = ElementGet('n'+a+b+c);
  if (a == 0) {
    ourcub[(4-b)*4+(4-c)  +16] = sel;
  } else if (a == 5) {
    ourcub[(4-b)*4+(c-1)  +48] = sel;
  } else if (b == 0) {
    ourcub[(a-1)  +(c-1)*4+80] = sel;
  } else if (b == 5) {
    ourcub[(a-1)  +(4-c)*4   ] = sel;
  } else if (c == 0) {
    ourcub[(a-1)  +(4-b)*4+32] = sel;
  } else if (c == 5) {
    ourcub[(4-a)  +(4-b)*4+64] = sel;
  }
  squ.style.backgroundColor = '#'+ourcol[sel];
  //SetDefaults();
}
function sq2(a,b,c) {
  var squ = ElementGet('m'+a+b+c);
  if (a == 0) {
    ourtocub[(4-b)*4+(4-c)  +16] = sel;
  } else if (a == 5) {
    ourtocub[(4-b)*4+(c-1)  +48] = sel;
  } else if (b == 0) {
    ourtocub[(a-1)  +(c-1)*4+80] = sel;
  } else if (b == 5) {
    ourtocub[(a-1)  +(4-c)*4   ] = sel;
  } else if (c == 0) {
    ourtocub[(a-1)  +(4-b)*4+32] = sel;
  } else if (c == 5) {
    ourtocub[(4-a)  +(4-b)*4+64] = sel;
  }
  squ.style.backgroundColor = '#'+ourcol[sel];
  //SetDefaults();
}
function set(nn) {
  sel = nn;
  var squ = ElementGet('palette');
  squ.style.backgroundColor = '#'+ourcol[sel];
}
function GetSolution() {
  var s = "mcubecgiout.exe?cube-", c = "_blank", n, i;
  for (i = 0; i <= 95; i++) {
    s += ourcub[i];
  }
  if (solveto == 1) {
    s += "!tocube-";
    for (i = 0; i <= 95; i++) {
      s += ourtocub[i];
    }
  }
  n = 0;
  for (i = 1; i <= 6; i++) {
    if (ourcol[i] != defcol[i]) {
      n = 1;
    }
  }
  if (n == 1) {
    s += "!colors-";
    for (i = 1; i <= 6; i++) {
      s += ourcol[i];
    }
  }
  n = 0;
  if (disp_graphics == 1) s += "!withgraphics";
  if (disp_diagrams == 1) s += "!withdiagrams";
  window.open(s, c);
  //debug.innerText = s;
}
function ScrambleBoth() {
  var s = "mcubecgiin.exe?", n, i;
  s += "!scramble";
  n = 0;
  for (i = 1; i <= 6; i++) {
    if (ourcol[i] != defcol[i]) {
      n = 1;
    }
  }
  if (n == 1) {
    s += "!colors-";
    for (i = 1; i <= 6; i++) {
      s += ourcol[i];
    }
  }
  if (disp_graphics == 1) s += "!withgraphics";
  if (disp_diagrams == 1) s += "!withdiagrams";
  if (solveto == 1) s += "!solveto";
  if (fixcol == 1) s += "!fixcol";
  if (adv == 1) s += "!adv";
  if (sel != 1) s += "!sel-" + sel;
  if (help == 1) s += "!help";
  window.self.location = s;
  //debug.innerText = s;
}
function Scramble() {
  var s = "mcubecgiin.exe?", n, i;
  s += "!scrambl1";
  if (solveto == 1) {
    s += "!tocube-";
    for (i = 0; i <= 95; i++) {
      s += ourtocube[i];
    }
  }
  n = 0;
  for (i = 1; i <= 6; i++) {
    if (ourcol[i] != defcol[i]) {
      n = 1;
    }
  }
  if (n == 1) {
    s += "!colors-";
    for (i = 1; i <= 6; i++) {
      s += ourcol[i];
    }
  }
  if (disp_graphics == 1) s += "!withgraphics";
  if (disp_diagrams == 1) s += "!withdiagrams";
  if (solveto == 1) s += "!solveto";
  if (fixcol == 1) s += "!fixcol";
  if (adv == 1) s += "!adv";
  if (sel != 1) s += "!sel-" + sel;
  if (help == 1) s += "!help";
  window.self.location = s;
  //debug.innerText = s;
}
function ScrambleDest() {
  var s = "mcubecgiin.exe?", n, i;
  s += "!scrambl2";
  if (solveto == 1) {
    s += "!cube-";
    for (i = 0; i <= 95; i++) {
      s += ourcube[i];
    }
  }
  n = 0;
  for (i = 1; i <= 6; i++) {
    if (ourcol[i] != defcol[i]) {
      n = 1;
    }
  }
  if (n == 1) {
    s += "!colors-";
    for (i = 1; i <= 6; i++) {
      s += ourcol[i];
    }
  }
  if (disp_graphics == 1) s += "!withgraphics";
  if (disp_diagrams == 1) s += "!withdiagrams";
  if (solveto == 1) s += "!solveto";
  if (fixcol == 1) s += "!fixcol";
  if (adv == 1) s += "!adv";
  if (sel != 1) s += "!sel-" + sel;
  if (help == 1) s += "!help";
  window.self.location = s;
  //debug.innerText = s;
}
function ResetBoth() {
  var i;
  for (i = 0; i <= 95; i++) {
    ourcub[i] = defcub[i];
  }
  for (i = 0; i <= 95; i++) {
    ourtocub[i] = defcub[i];
  }
  SetDefaults();
  // redundant
  var s = "mcubecgiin.exe?", n;
  n = 0;
  for (i = 1; i <= 6; i++) {
    if (ourcol[i] != defcol[i]) {
      n = 1;
    }
  }
  if (n == 1) {
    s += "!colors-";
    for (i = 1; i <= 6; i++) {
      s += ourcol[i];
    }
  }
  if (disp_graphics == 1) s += "!withgraphics";
  if (disp_diagrams == 1) s += "!withgraphics";
  if (solveto == 1) s += "!solveto";
  if (fixcol == 1) s += "!fixcol";
  if (adv == 1) s += "!adv";
  if (sel != 1) s += "!sel-" + sel;
  if (help == 1) s += "!help";
  window.self.location = s;
  //debug.innerText = s;
}
function ResetCube() {
  var i;
  for (i = 0; i <= 95; i++) {
    ourcub[i] = defcub[i];
  }
  SetDefaults();
  // redundant
  var s = "mcubecgiin.exe?", n;
  if (solveto == 1) {
    s += "!tocube-";
    for (i = 0; i <= 95; i++) {
      s += ourtocub[i];
    }
  }
  n = 0;
  for (i = 1; i <= 6; i++) {
    if (ourcol[i] != defcol[i]) {
      n = 1;
    }
  }
  if (n == 1) {
    s += "!colors-";
    for (i = 1; i <= 6; i++) {
      s += ourcol[i];
    }
  }
  if (disp_graphics == 1) s += "!withgraphics";
  if (disp_diagrams == 1) s += "!withgraphics";
  if (solveto == 1) s += "!solveto";
  if (fixcol == 1) s += "!fixcol";
  if (adv == 1) s += "!adv";
  if (sel != 1) s += "!sel-" + sel;
  if (help == 1) s += "!help";
  window.self.location = s;
  //debug.innerText = s;
}
function ResetDest() {
  var i;
  for (i = 0; i <= 95; i++) {
    ourtocub[i] = defcub[i];
  }
  SetDefaults();
  // redundant
  var s = "mcubecgiin.exe?", n;
  if (solveto == 1) {
    s += "!cube-";
    for (i = 0; i <= 95; i++) {
      s += ourcub[i];
    }
  }
  n = 0;
  for (i = 1; i <= 6; i++) {
    if (ourcol[i] != defcol[i]) {
      n = 1;
    }
  }
  if (n == 1) {
    s += "!colors-";
    for (i = 1; i <= 6; i++) {
      s += ourcol[i];
    }
  }
  if (disp_graphics == 1) s += "!withgraphics";
  if (disp_diagrams == 1) s += "!withgraphics";
  if (solveto == 1) s += "!solveto";
  if (fixcol == 1) s += "!fixcol";
  if (adv == 1) s += "!adv";
  if (sel != 1) s += "!sel-" + sel;
  if (help == 1) s += "!help";
  window.self.location = s;
  //debug.innerText = s;
}
function SetColors(col) {
  var i, j, n, s, c;
  for (i = 1; i <= 6; i++) {
    s = eval('col.c'+i+'.value');
    if (s.length == 6) {
      s = s.toUpperCase();
      n = 1;
      for (j = 0; j <= 5; j++) {
        c = s.charAt(j);
        if (c != '0' && c != '1' && c != '2' && c != '3' &&
         c != '4' && c != '5' && c != '6' && c != '7' &&
         c != '8' && c != '9' && c != 'A' && c != 'B' &&
         c != 'C' && c != 'D' && c != 'E' && c != 'F')
          n = 0;
      }
      if (n == 1) ourcol[i] = s;
    }
  }
  SetDefaults();
  TextColors();
}
function ResetColors(col) {
  var i;
  for (i = 1; i <= 6; i++) {
    ourcol[i] = defcol[i];
  }
  SetDefaults();
  TextColors();
}
function TextColors() {
  for (i = 1; i <= 6; i++) {
    squ = ElementGet('c'+i);
    squ.innerText = ourcol[i];
  }
}
function DestTrue() {
  solveto = 1;
  var dest = ElementGet('solveto');
  var ydst = ElementGet('yesdest');
  var ndst = ElementGet('nodest');
  dest.style.display = '';
  ndst.style.display = 'none';
  ydst.style.display = '';
}
function DestFalse() {
  solveto = 0;
  var dest = ElementGet('solveto');
  var ydst = ElementGet('yesdest');
  var ndst = ElementGet('nodest');
  dest.style.display = 'none';
  ydst.style.display = 'none';
  ndst.style.display = '';
}
function DisplayGraphicsOff() {
  disp_graphics = 0;
  var disp_on = ElementGet('disp_graphics_on');
  var disp_off = ElementGet('disp_graphics_off');
  disp_on.style.display = 'none';
  disp_off.style.display = '';
}
function DisplayGraphicsOn() {
  disp_graphics = 1;
  var disp_on = ElementGet('disp_graphics_on');
  var disp_off = ElementGet('disp_graphics_off');
  disp_off.style.display = 'none';
  disp_on.style.display = '';
}
function DisplayDiagramsOff() {
  disp_diagrams = 0;
  var disp_on = ElementGet('disp_diagrams_on');
  var disp_off = ElementGet('disp_diagrams_off');
  disp_on.style.display = 'none';
  disp_off.style.display = '';
}
function DisplayDiagramsOn() {
  disp_diagrams = 1;
  var disp_on = ElementGet('disp_diagrams_on');
  var disp_off = ElementGet('disp_diagrams_off');
  disp_off.style.display = 'none';
  disp_on.style.display = '';
}
function YesColors() {
  fixcol = 1;
  var cols = ElementGet('yescol');
  var ncol = ElementGet('nocol');
  ncol.style.display = 'none';
  cols.style.display = '';
}
function NoColors() {
  fixcol = 0;
  var cols = ElementGet('yescol');
  var ncol = ElementGet('nocol');
  cols.style.display = 'none';
  ncol.style.display = '';
}
function GoAdvanced() {
  adv = 1;
  var basc = ElementGet('basic');
  var advn = ElementGet('advanced');
  basc.style.display = 'none';
  advn.style.display = '';
}
function GoBasic() {
  adv = 0;
  var basc = ElementGet('basic');
  var advn = ElementGet('advanced');
  advn.style.display = 'none';
  basc.style.display = '';
}
function ShowHelp() {
  help = 1;
  var yhlp = ElementGet('help');
  var nhlp = ElementGet('nohelp');
  nhlp.style.display = 'none';
  yhlp.style.display = '';
}
function HideHelp() {
  help = 0;
  var yhlp = ElementGet('help');
  var nhlp = ElementGet('nohelp');
  yhlp.style.display = 'none';
  nhlp.style.display = '';
}
// -->
  </script>
</body>
</html>

Upravit tie mcubecgiout.exe a Mcubecgiin.exe aby isli spustit nie stahovat.

 

Nahlásit jako SPAM
IP: 84.245.95.–
Kit+15
Guru
18. 3. 2017   #2
-
0
-

To ti nebude fungovat, je tomu úmyslně zabráněno.

Proč zrovna EXE, které na většině počítačů nejedou?

Nahlásit jako SPAM
IP: 194.228.68.–
Komentáře označují místa, kde programátor udělal chybu nebo něco nedodělal.
marek17
~ Anonymní uživatel
115 příspěvků
18. 3. 2017   #3
-
0
-

je nejaka ina moznost ako skompilovat tie dva subory okrem exe?

Nahlásit jako SPAM
IP: 84.245.95.–
Kit+15
Guru
18. 3. 2017   #4
-
0
-

#3 marek17
Zkus Javascript.

Ten program má běžet na serveru nebo na klientovi?

Nahlásit jako SPAM
IP: 194.228.68.–
Komentáře označují místa, kde programátor udělal chybu nebo něco nedodělal.
marek17
~ Anonymní uživatel
115 příspěvků
18. 3. 2017   #5
-
0
-

toto je vystup z makefile32

# makefile for mcubecgi with MSVS on win32 by Eric

CC=cl
CPP=cl
LINK=link
RC=rc
CFLAGS=/nologo /EHsc /O2
LFLAGS=/nologo
RFLAGS=
RM=del /Q
INCLUDES=mcube.h
OBJS=mcube.obj
RESS=
LIBS=

all: build

build: $(OBJS) $(RESS) mcubecgiout.obj mcubecgiin.obj
	$(LINK) $(LFLAGS)  /out:mcubecgiout.exe  $(OBJS) mcubecgiout.obj $(RESS) $(LIBS)
	$(LINK) $(LFLAGS)  /out:mcubecgiin.exe  $(OBJS) mcubecgiin.obj $(RESS) $(LIBS)

clean:
	$(RM) $(OBJS) $(RESS) mcubecgiout.obj mcubecgiin.obj

mcube.obj: mcube.cpp $(INCLUDES)
	$(CPP) $(CFLAGS) /c mcube.cpp

mcubecgiout.obj: mcubecgiout.cpp $(INCLUDES)
	$(CPP) $(CFLAGS) /c mcubecgiout.cpp

mcubecgiin.obj: mcubecgiin.cpp $(INCLUDES)
	$(CPP) $(CFLAGS) /c mcubecgiin.cpp

dummy:


uvadza tam nejaku volitelnu stranku then to access the solver, just go to:
http://your.web.site/…r/solve.html (zjreme server)

Nahlásit jako SPAM
IP: 84.245.95.–
marek17
~ Anonymní uživatel
115 příspěvků
18. 3. 2017   #6
-
0
-

CGI 4x4x4 Rubik's Cube Solver version 1
(c) 2005 by Eric Dietz - root@wrongway.org


Notes
.....

Well, this is the 2nd attempt at my 4x4 solver (the first version was lost in a
hard-disk failure when i hadn't backed it up :()

Compilation
...........

The cgi solver will compile on win32 or *nix.

WIN32
 Requires Visual studio to do it the easy way. Go to the visual studio command
 prompt and type
  nmake -f makefile.win32
 It will also compile with MinGW and Borland C++ Builder, but I haven't included
 Makefiles for them since I don't really use them and there's no demand for
 them.

*nix
 Requires GCC's C++ compiler (G++).  To build just type
  make

Installation
............

Now that you've compiled you need to edit a few files and disperse them into
various directories.

Files to edit:

solve.html -> if running win32 change "mcubecgiin" to "mcubecgiin.exe"
mcube.ini -> change sitepath and execname if applicable (again check for .exe)
mcubecgiin.htm -> search the document for "mcubecgiin" and "mcubecgiout" and add
                  ".exe" (or change path) if necessary

Note: at some point in the future I will make a configure-like script to make
 these changes automatically (if anyone else would like to make these scripts
 and send them to me I'd <3 you.)

Destination directories:
the files should be dispersed like so:

*.gif             HTMLDIR
mcubeiscool.html  HTMLDIR
solve.html        HTMLDIR
mcubecgiin.htm    CGIDIR
mcubecgiin        CGIDIR
(or mcubecgiin.exe on win32)
mcubecgiout       CGIDIR
(or mcubecgiout.exe on win32)
mcube.ini         CGIDIR
<everything else> SRCDIR

HTLMDIR would be a directory on your website with http get access.
CGIDIR  would be a directory on your website with CGI-BIN execute access.
SRCDIR  would be some directory for building

Example (this is how it's set up on my website):
HTMLDIR = /home/fez/public_html/mcube/
CGIDIR  = /home/fez/public_html/cgi-bin/mcube/
SRCDIR  = /home/fez/dev/mcube/

then to access the solver, just go to:
http://your.web.site/…r/solve.html


 -- Eric
root@wrongway.org

Nahlásit jako SPAM
IP: 84.245.95.–
marek17
~ Anonymní uživatel
115 příspěvků
18. 3. 2017   #7
-
0
-

nasiel som aj ten isty program ,ale spusta sa z CMD riadka,nie cez Web.

Nahlásit jako SPAM
IP: 84.245.95.–
peter
~ Anonymní uživatel
4016 příspěvků
20. 3. 2017   #8
-
0
-

Nevim, jestli uplne chapu tvuj problem, ale prohlizec by exe nebel vubec dovolit spustit. Pouze by mel nabidnout stazeni.

Ale nejspis jde obejit exe pres jinou spustitelnou prilohu, jako byl flash aplikace, java aplikace, wmf video a podobne, kde se dal propasovat virovy kod.

A nejspis jde obejit spusteni exe v dot-net/asp frameworku v IE.

Pokud to spoustis na localhostu nebo serveru, tak by ti to mohlo dovolit spustit mistni aplikace. Jako treba s php serverem lze spoustet imagemagic, iconv a podobne. Tak nejspis win server umoznuje spoustet i exe.

No, a jestli bys delal neco jako EET uctenky, tak se da pouzit aplikace s curl, free. Jakoze je to command-line program, ktery pres prikazy se chova jako webovy prohlizec, otevira stranky, vraci data. To lze navazat na planovac uloh pripadne pomoci exe spoustet a zobrazovat vystup. Pokud ti stranka treba vrati xml/txt vysledek misto html, tak ten xml muzes v tom exe nejak zobrazit. Html by to umelo take, kdyz si tam pridas modul weboveho prohlizece. Podobne nejspis funguje klient Lol hry.

Nahlásit jako SPAM
IP: 2001:718:2601:26c:d8ee:fd...–
marek17
~ Anonymní uživatel
115 příspěvků
20. 3. 2017   #9
-
0
-

asi bude treba ten zdrojovy kod skonvertovat do Javascriptu (alebo inej formy). inak to nepojde.

Nahlásit jako SPAM
IP: 84.245.95.–
Ovrscout
~ Anonymní uživatel
113 příspěvků
21. 3. 2017   #10
-
0
-

ehm, podle nápisu CGI v prvním příspěvku soudím že jde o spuštění CGI aplikace/skriptu, což znamená že se to spustí na serveru a teprve výstup ze skriptu(std out) se přes webový server předá do prohlížeče uživatele. Dřív se to docela používalo.

#1 marek17
je potřeba dát pozor na několik věcí, ale všechno se to odvíjí od toho jaký používáš server(win/linux/..) a webový server(appach/nginx..):

-soubor musí být platný spustitelný soubor pro dannou platformu (tj pokud máš na serveru windows tak exe, pokud tam běží linux tak to musí být binárka pro linux), pokud je to skript tak musí mít správnou hlavičku atp..)

-soubor jako takový musí mít nastaveno oprávnění ke spuštění

-ideálně, pokud máš na server přístup z příkazové řádky tak zkusit ten soubor spustit a kouknout že to co ti vrací je to co očekáváš (pravděpodobně html stránka, nebo její část)

-dalším krokem je nastavení webového serveru, to se může dost lišit, doporučuju vygooglit pro danný webový server. Může být vyžadováno aby byl ten cgi program/skript uložen v nějakém konkrétním adresáři, a případně s konkrétními oprávněními. viz dokumentace k webserveru. Může být nutné doinstalovat/povolit nějaké rozššíření atp.

Nahlásit jako SPAM
IP: 193.165.79.–
marek17
~ Anonymní uživatel
115 příspěvků
22. 3. 2017   #11
-
0
-
Nahlásit jako SPAM
IP: 84.245.95.–
marek17
~ Anonymní uživatel
115 příspěvků
24. 3. 2017   #12
-
0
-

Napada ma jedina moznost prepisat zdojovy kod alebo subory cpp do javascriptu. Tak aby prehliadavac mohol spustit,,,, *.js subory

Zasláno z mobilního telefonu.

Nahlásit jako SPAM
IP: 151.236.225.–
marek17
~ Anonymní uživatel
115 příspěvků
25. 3. 2017   #13
-
0
-

skusam to skonvertovat cez EMCC

Nahlásit jako SPAM
IP: 84.245.95.–
Zjistit počet nových příspěvků

Přidej příspěvek

Toto téma je starší jak čtvrt roku – přidej svůj příspěvek jen tehdy, máš-li k tématu opravdu co říct!

Ano, opravdu chci reagovat → zobrazí formulář pro přidání příspěvku

×Vložení zdrojáku

×Vložení obrázku

Vložit URL obrázku Vybrat obrázek na disku
Vlož URL adresu obrázku:
Klikni a vyber obrázek z počítače:

×Vložení videa

Aktuálně jsou podporována videa ze serverů YouTube, Vimeo a Dailymotion.
×
 
Podporujeme Gravatara.
Zadej URL adresu Avatara (40 x 40 px) nebo emailovou adresu pro použití Gravatara.
Email nikam neukládáme, po získání Gravatara je zahozen.
-
Pravidla pro psaní příspěvků, používej diakritiku. ENTER pro nový odstavec, SHIFT + ENTER pro nový řádek.
Sledovat nové příspěvky (pouze pro přihlášené)
Sleduj vlákno a v případě přidání nového příspěvku o tom budeš vědět mezi prvními.
Reaguješ na příspěvek:

Uživatelé prohlížející si toto vlákno

Uživatelé on-line: 0 registrovaných, 9 hostů

Podobná vlákna

Vloženie súboru do EXE — založil Benecore

Spustenie exe suboru — založil lolik

Vloženie .exe suboru ? — založil zonda

Spustenie .exe suboru — založil javac

 

Hostujeme u Českého hostingu       ISSN 1801-1586       ⇡ Nahoru Webtea.cz logo © 20032024 Programujte.com
Zasadilo a pěstuje Webtea.cz, šéfredaktor Lukáš Churý