mirror of https://github.com/rusefi/msqur.git
Update splash page. Fix license formatting. Update readme.
This commit is contained in:
parent
15958c8105
commit
aa501e80ad
88
LICENSE.md
88
LICENSE.md
|
@ -3,7 +3,7 @@ GNU GENERAL PUBLIC LICENSE
|
|||
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright © 2007 Free Software Foundation, Inc. <<http://fsf.org/>>
|
||||
Copyright © 2007 Free Software Foundation, Inc. <<http://fsf.org/>>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license
|
||||
document, but changing it is not allowed.
|
||||
|
@ -68,34 +68,34 @@ The precise terms and conditions for copying, distribution and modification foll
|
|||
|
||||
### 0. Definitions.
|
||||
|
||||
“This License” refers to version 3 of the GNU General Public License.
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
“Copyright” also means copyright-like laws that apply to other kinds of
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
“The Program” refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as “you”. “Licensees” and
|
||||
“recipients” may be individuals or organizations.
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To “modify” a work means to copy from or adapt all or part of the work in
|
||||
To "modify" a work means to copy from or adapt all or part of the work in
|
||||
a fashion requiring copyright permission, other than the making of an exact copy. The
|
||||
resulting work is called a “modified version” of the earlier work or a
|
||||
work “based on” the earlier work.
|
||||
resulting work is called a "modified version" of the earlier work or a
|
||||
work "based on" the earlier work.
|
||||
|
||||
A “covered work” means either the unmodified Program or a work based on
|
||||
A "covered work" means either the unmodified Program or a work based on
|
||||
the Program.
|
||||
|
||||
To “propagate” a work means to do anything with it that, without
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for infringement under
|
||||
applicable copyright law, except executing it on a computer or modifying a private
|
||||
copy. Propagation includes copying, distribution (with or without modification),
|
||||
making available to the public, and in some countries other activities as well.
|
||||
|
||||
To “convey” a work means any kind of propagation that enables other
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through a computer
|
||||
network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays “Appropriate Legal Notices” to the
|
||||
An interactive user interface displays "Appropriate Legal Notices" to the
|
||||
extent that it includes a convenient and prominently visible feature that (1)
|
||||
displays an appropriate copyright notice, and (2) tells the user that there is no
|
||||
warranty for the work (except to the extent that warranties are provided), that
|
||||
|
@ -105,26 +105,26 @@ menu, a prominent item in the list meets this criterion.
|
|||
|
||||
### 1. Source Code.
|
||||
|
||||
The “source code” for a work means the preferred form of the work for
|
||||
making modifications to it. “Object code” means any non-source form of a
|
||||
The "source code" for a work means the preferred form of the work for
|
||||
making modifications to it. "Object code" means any non-source form of a
|
||||
work.
|
||||
|
||||
A “Standard Interface” means an interface that either is an official
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of interfaces
|
||||
specified for a particular programming language, one that is widely used among
|
||||
developers working in that language.
|
||||
|
||||
The “System Libraries” of an executable work include anything, other than
|
||||
The "System Libraries" of an executable work include anything, other than
|
||||
the work as a whole, that (a) is included in the normal form of packaging a Major
|
||||
Component, but which is not part of that Major Component, and (b) serves only to
|
||||
enable use of the work with that Major Component, or to implement a Standard
|
||||
Interface for which an implementation is available to the public in source code form.
|
||||
A “Major Component”, in this context, means a major essential component
|
||||
A "Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system (if any) on which
|
||||
the executable work runs, or a compiler used to produce the work, or an object code
|
||||
interpreter used to run it.
|
||||
|
||||
The “Corresponding Source” for a work in object code form means all the
|
||||
The "Corresponding Source" for a work in object code form means all the
|
||||
source code needed to generate, install, and (for an executable work) run the object
|
||||
code and to modify the work, including scripts to control those activities. However,
|
||||
it does not include the work's System Libraries, or general-purpose tools or
|
||||
|
@ -198,7 +198,7 @@ you also meet all of these conditions:
|
|||
relevant date.
|
||||
* **b)** The work must carry prominent notices stating that it is released under this
|
||||
License and any conditions added under section 7. This requirement modifies the
|
||||
requirement in section 4 to “keep intact all notices”.
|
||||
requirement in section 4 to "keep intact all notices".
|
||||
* **c)** You must license the entire work, as a whole, under this License to anyone who
|
||||
comes into possession of a copy. This License will therefore apply, along with any
|
||||
applicable section 7 additional terms, to the whole of the work, and all its parts,
|
||||
|
@ -212,7 +212,7 @@ Appropriate Legal Notices, your work need not make them do so.
|
|||
A compilation of a covered work with other separate and independent works, which are
|
||||
not by their nature extensions of the covered work, and which are not combined with
|
||||
it such as to form a larger program, in or on a volume of a storage or distribution
|
||||
medium, is called an “aggregate” if the compilation and its resulting
|
||||
medium, is called an "aggregate" if the compilation and its resulting
|
||||
copyright are not used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work in an aggregate
|
||||
does not cause this License to apply to the other parts of the aggregate.
|
||||
|
@ -257,19 +257,19 @@ A separable portion of the object code, whose source code is excluded from the
|
|||
Corresponding Source as a System Library, need not be included in conveying the
|
||||
object code work.
|
||||
|
||||
A “User Product” is either (1) a “consumer product”, which
|
||||
A "User Product" is either (1) a "consumer product", which
|
||||
means any tangible personal property which is normally used for personal, family, or
|
||||
household purposes, or (2) anything designed or sold for incorporation into a
|
||||
dwelling. In determining whether a product is a consumer product, doubtful cases
|
||||
shall be resolved in favor of coverage. For a particular product received by a
|
||||
particular user, “normally used” refers to a typical or common use of
|
||||
particular user, "normally used" refers to a typical or common use of
|
||||
that class of product, regardless of the status of the particular user or of the way
|
||||
in which the particular user actually uses, or expects or is expected to use, the
|
||||
product. A product is a consumer product regardless of whether the product has
|
||||
substantial commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
“Installation Information” for a User Product means any methods,
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install and execute
|
||||
modified versions of a covered work in that User Product from a modified version of
|
||||
its Corresponding Source. The information must suffice to ensure that the continued
|
||||
|
@ -299,7 +299,7 @@ special password or key for unpacking, reading or copying.
|
|||
|
||||
### 7. Additional Terms.
|
||||
|
||||
“Additional permissions” are terms that supplement the terms of this
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions. Additional
|
||||
permissions that are applicable to the entire Program shall be treated as though they
|
||||
were included in this License, to the extent that they are valid under applicable
|
||||
|
@ -334,8 +334,8 @@ who conveys the material (or modified versions of it) with contractual assumptio
|
|||
liability to the recipient, for any liability that these contractual assumptions
|
||||
directly impose on those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered “further
|
||||
restrictions” within the meaning of section 10. If the Program as you received
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you received
|
||||
it, or any part of it, contains a notice stating that it is governed by this License
|
||||
along with a term that is a further restriction, you may remove that term. If a
|
||||
license document contains a further restriction but permits relicensing or conveying
|
||||
|
@ -392,7 +392,7 @@ from the original licensors, to run, modify and propagate that work, subject to
|
|||
License. You are not responsible for enforcing compliance by third parties with this
|
||||
License.
|
||||
|
||||
An “entity transaction” is a transaction transferring control of an
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an organization, or
|
||||
merging organizations. If propagation of a covered work results from an entity
|
||||
transaction, each party to that transaction who receives a copy of the work also
|
||||
|
@ -410,16 +410,16 @@ importing the Program or any portion of it.
|
|||
|
||||
### 11. Patents.
|
||||
|
||||
A “contributor” is a copyright holder who authorizes use under this
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The work thus
|
||||
licensed is called the contributor's “contributor version”.
|
||||
licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's “essential patent claims” are all patent claims owned or
|
||||
A contributor's "essential patent claims" are all patent claims owned or
|
||||
controlled by the contributor, whether already acquired or hereafter acquired, that
|
||||
would be infringed by some manner, permitted by this License, of making, using, or
|
||||
selling its contributor version, but do not include claims that would be infringed
|
||||
only as a consequence of further modification of the contributor version. For
|
||||
purposes of this definition, “control” includes the right to grant patent
|
||||
purposes of this definition, "control" includes the right to grant patent
|
||||
sublicenses in a manner consistent with the requirements of this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license
|
||||
|
@ -427,10 +427,10 @@ under the contributor's essential patent claims, to make, use, sell, offer for s
|
|||
import and otherwise run, modify and propagate the contents of its contributor
|
||||
version.
|
||||
|
||||
In the following three paragraphs, a “patent license” is any express
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent (such as an
|
||||
express permission to practice a patent or covenant not to sue for patent
|
||||
infringement). To “grant” such a patent license to a party means to make
|
||||
infringement). To "grant" such a patent license to a party means to make
|
||||
such an agreement or commitment not to enforce a patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license, and the
|
||||
|
@ -440,7 +440,7 @@ other readily accessible means, then you must either (1) cause the Corresponding
|
|||
Source to be so available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner consistent with
|
||||
the requirements of this License, to extend the patent license to downstream
|
||||
recipients. “Knowingly relying” means you have actual knowledge that, but
|
||||
recipients. "Knowingly relying" means you have actual knowledge that, but
|
||||
for the patent license, your conveying the covered work in a country, or your
|
||||
recipient's use of the covered work in a country, would infringe one or more
|
||||
identifiable patents in that country that you have reason to believe are valid.
|
||||
|
@ -452,7 +452,7 @@ propagate, modify or convey a specific copy of the covered work, then the patent
|
|||
license you grant is automatically extended to all recipients of the covered work and
|
||||
works based on it.
|
||||
|
||||
A patent license is “discriminatory” if it does not include within the
|
||||
A patent license is "discriminatory" if it does not include within the
|
||||
scope of its coverage, prohibits the exercise of, or is conditioned on the
|
||||
non-exercise of one or more of the rights that are specifically granted under this
|
||||
License. You may not convey a covered work if you are a party to an arrangement with
|
||||
|
@ -496,8 +496,8 @@ General Public License from time to time. Such new versions will be similar in s
|
|||
to the present version, but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program specifies that
|
||||
a certain numbered version of the GNU General Public License “or any later
|
||||
version” applies to it, you have the option of following the terms and
|
||||
a certain numbered version of the GNU General Public License "or any later
|
||||
version" applies to it, you have the option of following the terms and
|
||||
conditions either of that numbered version or of any later version published by the
|
||||
Free Software Foundation. If the Program does not specify a version number of the GNU
|
||||
General Public License, you may choose any version ever published by the Free
|
||||
|
@ -515,7 +515,7 @@ your choosing to follow a later version.
|
|||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
|
||||
EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE
|
||||
QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE
|
||||
|
@ -550,7 +550,7 @@ can redistribute and change under these terms.
|
|||
|
||||
To do so, attach the following notices to the program. It is safest to attach them
|
||||
to the start of each source file to most effectively state the exclusion of warranty;
|
||||
and each file should have at least the “copyright” line and a pointer to
|
||||
and each file should have at least the "copyright" line and a pointer to
|
||||
where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
|
@ -581,16 +581,16 @@ when it starts in an interactive mode:
|
|||
|
||||
The hypothetical commands 'show w' and 'show c' should show the appropriate parts of
|
||||
the General Public License. Of course, your program's commands might be different;
|
||||
for a GUI interface, you would use an “about box”.
|
||||
for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school, if any, to
|
||||
sign a “copyright disclaimer” for the program, if necessary. For more
|
||||
sign a "copyright disclaimer" for the program, if necessary. For more
|
||||
information on this, and how to apply and follow the GNU GPL, see
|
||||
<<http://www.gnu.org/licenses/>>.
|
||||
<<http://www.gnu.org/licenses/>>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may consider it
|
||||
more useful to permit linking proprietary applications with the library. If this is
|
||||
what you want to do, use the GNU Lesser General Public License instead of this
|
||||
License. But first, please read
|
||||
<<http://www.gnu.org/philosophy/why-not-lgpl.html>>.
|
||||
<<http://www.gnu.org/philosophy/why-not-lgpl.html>>.
|
||||
|
|
21
README.md
21
README.md
|
@ -14,19 +14,22 @@ Parses MSQ "XML" in tandem with an associated INI (config) file and displays it
|
|||
|
||||
### Installation ###
|
||||
|
||||
Needed software:
|
||||
#### Needed software ####
|
||||
|
||||
* AMP Stack
|
||||
|
||||
Recommended software:
|
||||
#### Recommended software ####
|
||||
|
||||
* phpMyAdmin
|
||||
|
||||
Process:
|
||||
#### Process ####
|
||||
|
||||
* Create database user and database itself.
|
||||
* Upload & deploy files.
|
||||
* Setup script.config with details.
|
||||
* Run db scripts.
|
||||
|
||||
### hgrc ##
|
||||
#### hgrc ####
|
||||
To display a fancy version string, modify your .hgrc to have this hook:
|
||||
|
||||
```
|
||||
|
@ -37,10 +40,10 @@ post-update = hg log -r . --template "v{latesttag}-{latesttagdistance}-{node|sho
|
|||
```
|
||||
|
||||
### Update & Deployment Instructions ###
|
||||
* Pull updates on host.
|
||||
* Update any configuration files (config.php, script.config) if needed.
|
||||
* Run any new DB scripts.
|
||||
* Run deploy.sh to copy web files to web server.
|
||||
* Pull updates on host.
|
||||
* Update any configuration files (config.php, script.config) if needed.
|
||||
* Run any new DB scripts.
|
||||
* Run deploy.sh to copy web files to web server.
|
||||
|
||||
### License ###
|
||||
|
||||
|
@ -58,4 +61,4 @@ jQuery, jQuery UI,
|
|||
jquery.tablesorter http://tablesorter.com/docs/,
|
||||
Chart.js,
|
||||
Tango Icon Theme
|
||||
Geany/Notepad++
|
||||
Geany/Notepad++
|
||||
|
|
11
src/view.php
11
src/view.php
|
@ -18,8 +18,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|||
require "msqur.php";
|
||||
|
||||
if (isset($_GET['msq'])) {
|
||||
?>
|
||||
<div id="settings">
|
||||
<img id="settingsIcon" src="view/img/settings3.png"/>
|
||||
<div id="settingsPanel" style="display:none;">
|
||||
<label><input id="colorizeData" type="checkbox" />Colorize</label>
|
||||
<label><input id="normalizeData" type="checkbox" title="Recalculate VE table values to a 5-250 unit scale"/>Normalize Data</label>
|
||||
<label><input id="normalizeAxis" type="checkbox" disabled />Normalize Axis</label>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
echo $msqur->view($_GET['msq']);
|
||||
}
|
||||
else include "index.php";
|
||||
|
||||
?>
|
||||
|
|
|
@ -52,11 +52,3 @@
|
|||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div id="settings">
|
||||
<img id="settingsIcon" src="view/img/settings3.png"/>
|
||||
<div id="settingsPanel" style="display:none;">
|
||||
<label><input id="colorizeData" type="checkbox" />Colorize</label>
|
||||
<label><input id="normalizeData" type="checkbox" title="Recalculate VE table values to a 5-250 unit scale"/>Normalize Data</label>
|
||||
<label><input id="normalizeAxis" type="checkbox" disabled />Normalize Axis</label>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
Binary file not shown.
After Width: | Height: | Size: 149 KiB |
Binary file not shown.
After Width: | Height: | Size: 8.1 KiB |
|
@ -59,6 +59,10 @@ div#navigation a:visited {
|
|||
color: red;
|
||||
}
|
||||
|
||||
div#splash img.tutorial {
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
div.footer {
|
||||
font-size: 0.66em;
|
||||
text-align: right;
|
||||
|
|
|
@ -1,2 +1,38 @@
|
|||
<div class="info">Upload your .msq files to view and share them.</div>
|
||||
<div class="warn">This website is in beta. It only officially supports TunerStudio tune files, and currently is known working with MS2 and MS2-Extra firmware.</div>
|
||||
<div class="info"></div>
|
||||
<div class="info" id="splash">
|
||||
<div>
|
||||
<h3>Overview</h3>
|
||||
<div>View MSQ files online. Upload your Tuner Studio .msq files to view and share them.</div>
|
||||
<h3>How to use this site:</h3>
|
||||
<div>
|
||||
To add your MSQ file to share and view online:
|
||||
Click on the upload button:
|
||||
<div><img class="tutorial" id="tutorial1" src="view/img/tutorial1.png"/></div>
|
||||
</div>
|
||||
<div>
|
||||
Click the "Browse" button (or area) and select the MSQ file you want to upload. Note that you can upload more than one at a time, using the same engine information for each:
|
||||
<div><img class="tutorial" id="tutorial2" src="view/img/tutorial2.png"/></div>
|
||||
</div>
|
||||
<div>
|
||||
Now enter in the engine information for the MSQ file(s):
|
||||
<div><img class="tutorial" id="tutorial3" src="view/img/tutorial3.png"/></div>
|
||||
</div>
|
||||
<div>
|
||||
Click upload, and you should see links to your MSQ file(s) if successful. You can copy (right-click and select "Copy Link Location" or something like that), or click on it to view the file.
|
||||
<div><img class="tutorial" id="tutorial4" src="view/img/tutorial4.png"/></div>
|
||||
</div>
|
||||
<div>
|
||||
Now you can browse the various sections of your MSQ file:
|
||||
<div><img class="tutorial" id="tutorial5" src="view/img/tutorial5.png"/></div>
|
||||
</div>
|
||||
<div>
|
||||
Since I don't have the configuration files for every single Megasquirt version, you might see an error like this:
|
||||
<div><img class="tutorial" id="tutorial6" src="view/img/tutorial6.png"/></div>
|
||||
<div>
|
||||
If so, please email me (nearwood@gmail.com) with your "INI" file (msqur tries to give you a hint as to the version it needs).
|
||||
</div>
|
||||
<h3>Developers</h3>
|
||||
<div>
|
||||
Interested in contributing? Check out msqur's <a href="https://bitbucket.org/nearwood/msqur">repository</a>. Msqur's source is licensed under the GPL.
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue